Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
87381168
Commit
87381168
authored
Oct 18, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
969bed8d
d2bbee10
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
204 additions
and
229 deletions
+204
-229
ServiceHGWD001D.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
+6
-6
ServiceHGWD002A.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD002A.java
+5
-6
HGYX001A.java
src/main/java/com/baosight/hggp/hg/yx/domain/HGYX001A.java
+18
-0
HGYX002A.java
src/main/java/com/baosight/hggp/hg/yx/domain/HGYX002A.java
+18
-0
HGYX001A.xml
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX001A.xml
+8
-94
HGYX002A.xml
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX002A.xml
+8
-106
ServiceXS0105.java
...java/com/baosight/xservices/xs/service/ServiceXS0105.java
+119
-0
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+2
-1
HGWD002A.js
src/main/webapp/HG/WD/HGWD002A.js
+1
-0
HGWD002A.jsp
src/main/webapp/HG/WD/HGWD002A.jsp
+1
-0
HGYX001A.js
src/main/webapp/HG/YX/HGYX001A.js
+11
-10
HGYX001A.jsp
src/main/webapp/HG/YX/HGYX001A.jsp
+1
-1
HGYX001C.jsp
src/main/webapp/HG/YX/HGYX001C.jsp
+1
-1
HGYX002A.js
src/main/webapp/HG/YX/HGYX002A.js
+3
-2
HGYX002A.jsp
src/main/webapp/HG/YX/HGYX002A.jsp
+1
-1
HGYX002C.jsp
src/main/webapp/HG/YX/HGYX002C.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
View file @
87381168
...
@@ -349,17 +349,17 @@ public class ServiceHGWD001D extends TreeService {
...
@@ -349,17 +349,17 @@ public class ServiceHGWD001D extends TreeService {
return
;
return
;
}
}
List
<
String
>
labels
=
ObjectUtils
.
listKey
(
nodes
,
"label"
);
List
<
String
>
labels
=
ObjectUtils
.
listKey
(
nodes
,
"label"
);
Map
<
String
,
Integer
>
resultMap
=
null
;
Map
<
String
,
Integer
>
resultMap
=
HGWDTools
.
HgWd001
.
countByParent
(
labels
);
for
(
Map
node
:
nodes
)
{
if
(
isType
)
{
if
(
isType
)
{
resultMap
=
HGWDTools
.
HgWd001
.
countBySource
(
labels
);
node
.
put
(
"leaf"
,
0
);
}
else
{
}
else
{
resultMap
=
HGWDTools
.
HgWd001
.
countByParent
(
labels
);
String
label
=
MapUtils
.
getString
(
node
,
"label"
);
}
Integer
cnt
=
resultMap
==
null
?
null
:
resultMap
.
get
(
label
);
for
(
Map
node
:
nodes
)
{
Integer
cnt
=
resultMap
==
null
?
null
:
resultMap
.
get
(
node
.
get
(
"label"
));
node
.
put
(
"leaf"
,
cnt
==
null
||
cnt
==
0
?
1
:
0
);
node
.
put
(
"leaf"
,
cnt
==
null
||
cnt
==
0
?
1
:
0
);
}
}
}
}
}
/**
/**
* 构建叶子节点
* 构建叶子节点
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD002A.java
View file @
87381168
...
@@ -52,12 +52,12 @@ public class ServiceHGWD002A extends ServiceEPBase {
...
@@ -52,12 +52,12 @@ public class ServiceHGWD002A extends ServiceEPBase {
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
fileId
=
MapUtils
.
getString
(
queryMap
,
HGWD001
.
FIELD_FILE_ID
);
String
fileId
=
MapUtils
.
getString
(
queryMap
,
HGWD001
.
FIELD_FILE_ID
);
String
source
=
MapUtils
.
getString
(
queryMap
,
"source"
);
String
node
=
MapUtils
.
getString
(
queryMap
,
CommonConstant
.
Field
.
NODE
);
String
node
=
MapUtils
.
getString
(
queryMap
,
CommonConstant
.
Field
.
NODE
);
String
status
=
MapUtils
.
getString
(
queryMap
,
HGWD001
.
FIELD_STATUS
);
if
(
CommonConstant
.
Field
.
ROOT
.
equals
(
node
)
||
CommonConstant
.
Field
.
ROOT2
.
equals
(
node
))
{
if
(
CommonConstant
.
Field
.
ROOT
.
equals
(
node
)
||
CommonConstant
.
Field
.
ROOT2
.
equals
(
node
))
{
inInfo
.
addBlock
(
node
).
setRows
(
queryTopNode
(
node
,
fileId
));
inInfo
.
addBlock
(
node
).
setRows
(
queryTopNode
(
node
,
fileId
));
}
else
{
}
else
{
inInfo
.
addBlock
(
node
).
setRows
(
queryChildNode
(
node
,
status
));
inInfo
.
addBlock
(
node
).
setRows
(
queryChildNode
(
node
,
source
));
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询节点失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询节点失败"
);
...
@@ -91,9 +91,10 @@ public class ServiceHGWD002A extends ServiceEPBase {
...
@@ -91,9 +91,10 @@ public class ServiceHGWD002A extends ServiceEPBase {
* 查询叶子节点
* 查询叶子节点
*
*
* @param parentId
* @param parentId
* @param source 1=文档库,2=文件浏览
* @return
* @return
*/
*/
public
List
queryChildNode
(
String
parentId
,
String
s
tatus
)
{
public
List
queryChildNode
(
String
parentId
,
String
s
ource
)
{
List
<
Map
>
results
=
new
ArrayList
();
List
<
Map
>
results
=
new
ArrayList
();
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"fileId"
,
parentId
);
queryMap
.
put
(
"fileId"
,
parentId
);
...
@@ -103,11 +104,9 @@ public class ServiceHGWD002A extends ServiceEPBase {
...
@@ -103,11 +104,9 @@ public class ServiceHGWD002A extends ServiceEPBase {
if
(!(
isSpare
||
HgWdUtils
.
HgWd009
.
isManager
()))
{
if
(!(
isSpare
||
HgWdUtils
.
HgWd009
.
isManager
()))
{
queryMap
.
put
(
"userId"
,
UserSessionUtils
.
getLoginName
());
queryMap
.
put
(
"userId"
,
UserSessionUtils
.
getLoginName
());
}
}
if
(
StringUtils
.
isEmpty
(
status
)
||
!
status
.
equals
(
HgWdConstant
.
FileStatus
.
S_0
.
toString
()))
{
if
(
!
"0"
.
equals
(
source
))
{
queryMap
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
queryMap
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
}
}
queryMap
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
queryMap
.
put
(
"orderBy"
,
"B.DOC_TYPE ASC, B.DOC_NAME ASC"
);
queryMap
.
put
(
"orderBy"
,
"B.DOC_TYPE ASC, B.DOC_NAME ASC"
);
List
<
HGWD002
>
dbWd002s
=
dao
.
query
(
HGWD002
.
QUERY
,
queryMap
);
List
<
HGWD002
>
dbWd002s
=
dao
.
query
(
HGWD002
.
QUERY
,
queryMap
);
if
(
CollectionUtils
.
isEmpty
(
dbWd002s
))
{
if
(
CollectionUtils
.
isEmpty
(
dbWd002s
))
{
...
...
src/main/java/com/baosight/hggp/hg/yx/domain/HGYX001A.java
View file @
87381168
...
@@ -36,6 +36,7 @@ public class HGYX001A extends DaoEPBase {
...
@@ -36,6 +36,7 @@ public class HGYX001A extends DaoEPBase {
public
static
final
String
FIELD_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
public
static
final
String
FIELD_SPEC_ID
=
"specId"
;
/* 规格ID*/
public
static
final
String
FIELD_SPEC
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_SPEC
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长*/
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽*/
...
@@ -60,6 +61,7 @@ public class HGYX001A extends DaoEPBase {
...
@@ -60,6 +61,7 @@ public class HGYX001A extends DaoEPBase {
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
public
static
final
String
COL_SPEC_ID
=
"SPEC_ID"
;
/* 规格ID*/
public
static
final
String
COL_SPEC
=
"SPEC"
;
/* 规格*/
public
static
final
String
COL_SPEC
=
"SPEC"
;
/* 规格*/
public
static
final
String
COL_LENGTH
=
"LENGTH"
;
/* 长*/
public
static
final
String
COL_LENGTH
=
"LENGTH"
;
/* 长*/
public
static
final
String
COL_WIDTH
=
"WIDTH"
;
/* 宽*/
public
static
final
String
COL_WIDTH
=
"WIDTH"
;
/* 宽*/
...
@@ -91,6 +93,7 @@ public class HGYX001A extends DaoEPBase {
...
@@ -91,6 +93,7 @@ public class HGYX001A extends DaoEPBase {
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
Long
specId
=
new
Long
(
0
);
/* 规格ID*/
private
String
spec
=
" "
;
/* 规格*/
private
String
spec
=
" "
;
/* 规格*/
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
BigDecimal
width
=
new
BigDecimal
(
"0"
);
/* 宽*/
private
BigDecimal
width
=
new
BigDecimal
(
"0"
);
/* 宽*/
...
@@ -164,6 +167,10 @@ public class HGYX001A extends DaoEPBase {
...
@@ -164,6 +167,10 @@ public class HGYX001A extends DaoEPBase {
eiColumn
.
setDescName
(
"存货名称"
);
eiColumn
.
setDescName
(
"存货名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC_ID
);
eiColumn
.
setDescName
(
"规格ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
.
setDescName
(
"规格"
);
eiColumn
.
setDescName
(
"规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -451,6 +458,15 @@ public class HGYX001A extends DaoEPBase {
...
@@ -451,6 +458,15 @@ public class HGYX001A extends DaoEPBase {
public
void
setInventName
(
String
inventName
)
{
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
this
.
inventName
=
inventName
;
}
}
public
Long
getSpecId
()
{
return
specId
;
}
public
void
setSpecId
(
Long
specId
)
{
this
.
specId
=
specId
;
}
/**
/**
* get the spec - 规格.
* get the spec - 规格.
* @return the spec
* @return the spec
...
@@ -603,6 +619,7 @@ public class HGYX001A extends DaoEPBase {
...
@@ -603,6 +619,7 @@ public class HGYX001A extends DaoEPBase {
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setSpecId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC_ID
)),
specId
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC
)),
spec
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC
)),
spec
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LENGTH
)),
length
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LENGTH
)),
length
));
setWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WIDTH
)),
width
));
setWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WIDTH
)),
width
));
...
@@ -635,6 +652,7 @@ public class HGYX001A extends DaoEPBase {
...
@@ -635,6 +652,7 @@ public class HGYX001A extends DaoEPBase {
map
.
put
(
FIELD_INVENT_TYPE
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE
)));
map
.
put
(
FIELD_INVENT_TYPE
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE
)));
map
.
put
(
FIELD_INVENT_CODE
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
FIELD_INVENT_CODE
)));
map
.
put
(
FIELD_INVENT_CODE
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
FIELD_INVENT_CODE
)));
map
.
put
(
FIELD_INVENT_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
map
.
put
(
FIELD_INVENT_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
map
.
put
(
FIELD_SPEC_ID
,
StringUtils
.
toString
(
specId
,
eiMetadata
.
getMeta
(
FIELD_SPEC_ID
)));
map
.
put
(
FIELD_SPEC
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_SPEC
)));
map
.
put
(
FIELD_SPEC
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_SPEC
)));
map
.
put
(
FIELD_LENGTH
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_LENGTH
)));
map
.
put
(
FIELD_LENGTH
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_LENGTH
)));
map
.
put
(
FIELD_WIDTH
,
StringUtils
.
toString
(
width
,
eiMetadata
.
getMeta
(
FIELD_WIDTH
)));
map
.
put
(
FIELD_WIDTH
,
StringUtils
.
toString
(
width
,
eiMetadata
.
getMeta
(
FIELD_WIDTH
)));
...
...
src/main/java/com/baosight/hggp/hg/yx/domain/HGYX002A.java
View file @
87381168
...
@@ -36,6 +36,7 @@ public class HGYX002A extends DaoEPBase {
...
@@ -36,6 +36,7 @@ public class HGYX002A extends DaoEPBase {
public
static
final
String
FIELD_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
public
static
final
String
FIELD_SPEC_ID
=
"specId"
;
/* 规格ID*/
public
static
final
String
FIELD_SPEC
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_SPEC
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长*/
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽*/
...
@@ -62,6 +63,7 @@ public class HGYX002A extends DaoEPBase {
...
@@ -62,6 +63,7 @@ public class HGYX002A extends DaoEPBase {
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
public
static
final
String
COL_SPEC_ID
=
"SPEC_ID"
;
/* 规格ID*/
public
static
final
String
COL_SPEC
=
"SPEC"
;
/* 规格*/
public
static
final
String
COL_SPEC
=
"SPEC"
;
/* 规格*/
public
static
final
String
COL_LENGTH
=
"LENGTH"
;
/* 长*/
public
static
final
String
COL_LENGTH
=
"LENGTH"
;
/* 长*/
public
static
final
String
COL_WIDTH
=
"WIDTH"
;
/* 宽*/
public
static
final
String
COL_WIDTH
=
"WIDTH"
;
/* 宽*/
...
@@ -95,6 +97,7 @@ public class HGYX002A extends DaoEPBase {
...
@@ -95,6 +97,7 @@ public class HGYX002A extends DaoEPBase {
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
Long
specId
=
new
Long
(
0
);
/* 规格ID*/
private
String
spec
=
" "
;
/* 规格*/
private
String
spec
=
" "
;
/* 规格*/
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
BigDecimal
width
=
new
BigDecimal
(
"0"
);
/* 宽*/
private
BigDecimal
width
=
new
BigDecimal
(
"0"
);
/* 宽*/
...
@@ -170,6 +173,10 @@ public class HGYX002A extends DaoEPBase {
...
@@ -170,6 +173,10 @@ public class HGYX002A extends DaoEPBase {
eiColumn
.
setDescName
(
"存货名称"
);
eiColumn
.
setDescName
(
"存货名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC_ID
);
eiColumn
.
setDescName
(
"规格ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
=
new
EiColumn
(
FIELD_SPEC
);
eiColumn
.
setDescName
(
"规格"
);
eiColumn
.
setDescName
(
"规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -470,6 +477,15 @@ public class HGYX002A extends DaoEPBase {
...
@@ -470,6 +477,15 @@ public class HGYX002A extends DaoEPBase {
public
void
setInventName
(
String
inventName
)
{
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
this
.
inventName
=
inventName
;
}
}
public
Long
getSpecId
()
{
return
specId
;
}
public
void
setSpecId
(
Long
specId
)
{
this
.
specId
=
specId
;
}
/**
/**
* get the spec - 规格.
* get the spec - 规格.
* @return the spec
* @return the spec
...
@@ -661,6 +677,7 @@ public class HGYX002A extends DaoEPBase {
...
@@ -661,6 +677,7 @@ public class HGYX002A extends DaoEPBase {
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setSpecId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC_ID
)),
specId
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC
)),
spec
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC
)),
spec
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LENGTH
)),
length
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LENGTH
)),
length
));
setWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WIDTH
)),
width
));
setWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WIDTH
)),
width
));
...
@@ -695,6 +712,7 @@ public class HGYX002A extends DaoEPBase {
...
@@ -695,6 +712,7 @@ public class HGYX002A extends DaoEPBase {
map
.
put
(
FIELD_INVENT_TYPE
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE
)));
map
.
put
(
FIELD_INVENT_TYPE
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE
)));
map
.
put
(
FIELD_INVENT_CODE
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
FIELD_INVENT_CODE
)));
map
.
put
(
FIELD_INVENT_CODE
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
FIELD_INVENT_CODE
)));
map
.
put
(
FIELD_INVENT_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
map
.
put
(
FIELD_INVENT_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
map
.
put
(
FIELD_SPEC_ID
,
StringUtils
.
toString
(
specId
,
eiMetadata
.
getMeta
(
FIELD_SPEC_ID
)));
map
.
put
(
FIELD_SPEC
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_SPEC
)));
map
.
put
(
FIELD_SPEC
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_SPEC
)));
map
.
put
(
FIELD_LENGTH
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_LENGTH
)));
map
.
put
(
FIELD_LENGTH
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_LENGTH
)));
map
.
put
(
FIELD_WIDTH
,
StringUtils
.
toString
(
width
,
eiMetadata
.
getMeta
(
FIELD_WIDTH
)));
map
.
put
(
FIELD_WIDTH
,
StringUtils
.
toString
(
width
,
eiMetadata
.
getMeta
(
FIELD_WIDTH
)));
...
...
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX001A.xml
View file @
87381168
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
Generate time : 2024-06-04 9:20:26
Version : 1.0
schema : hggp
tableName : HGYX001A
ID BIGINT NOT NULL primarykey,
ACCOUNT_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
INVENT_RECORD_ID BIGINT,
INVENT_TYPE VARCHAR,
INVENT_CODE VARCHAR NOT NULL,
INVENT_NAME VARCHAR NOT NULL,
SPEC VARCHAR,
LENGTH DECIMAL,
WIDTH DECIMAL,
THICK DECIMAL,
QUANTITY DECIMAL,
WEIGHT DECIMAL,
PARENT_ID BIGINT
-->
<sqlMap
namespace=
"HGYX001A"
>
<sqlMap
namespace=
"HGYX001A"
>
<typeAlias
alias=
"HGYX001A"
type=
"com.baosight.hggp.hg.yx.domain.HGYX001A"
/>
<typeAlias
alias=
"HGYX001A"
type=
"com.baosight.hggp.hg.yx.domain.HGYX001A"
/>
...
@@ -44,6 +18,7 @@
...
@@ -44,6 +18,7 @@
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
SPEC as "spec",
<!-- 规格 -->
LENGTH as "length",
<!-- 长 -->
LENGTH as "length",
<!-- 长 -->
WIDTH as "width",
<!-- 宽 -->
WIDTH as "width",
<!-- 宽 -->
...
@@ -54,6 +29,7 @@
...
@@ -54,6 +29,7 @@
PARENT_ID as "parentId",
<!-- 销售发货ID -->
PARENT_ID as "parentId",
<!-- 销售发货ID -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
INVENT_TYPE_DETAIL as "inventTypeDetail"
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
...
@@ -148,72 +124,6 @@
...
@@ -148,72 +124,6 @@
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventRecordId">
INVENT_RECORD_ID = #inventRecordId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventType">
INVENT_TYPE = #inventType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName">
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="spec">
SPEC = #spec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="length">
LENGTH = #length#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="width">
WIDTH = #width#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thick">
THICK = #thick#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="weight">
WEIGHT = #weight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="parentId">
PARENT_ID = #parentId#
</isNotEmpty>
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGYX001A (ID,
<!-- ID -->
INSERT INTO ${hggpSchema}.HGYX001A (ID,
<!-- ID -->
ACCOUNT_CODE,
<!-- 企业编码 -->
ACCOUNT_CODE,
<!-- 企业编码 -->
...
@@ -229,6 +139,7 @@
...
@@ -229,6 +139,7 @@
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_NAME,
<!-- 存货名称 -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC_ID,
<!-- 规格ID -->
SPEC,
<!-- 规格 -->
SPEC,
<!-- 规格 -->
LENGTH,
<!-- 长 -->
LENGTH,
<!-- 长 -->
WIDTH,
<!-- 宽 -->
WIDTH,
<!-- 宽 -->
...
@@ -239,7 +150,10 @@
...
@@ -239,7 +150,10 @@
PARENT_ID,
<!-- 销售发货ID -->
PARENT_ID,
<!-- 销售发货ID -->
INVENT_TYPE_DETAIL
INVENT_TYPE_DETAIL
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #inventRecordId#, #inventType#, #inventCode#, #inventName#, #spec#, #length#, #width#, #thick#, #quantity#, #unitWeight#, #weight#, #parentId#,#inventTypeDetail#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#,
#updatedName#, #updatedTime#, #deleteFlag#, #inventRecordId#, #inventType#, #inventCode#,
#inventName#, #specId#, #spec#, #length#, #width#, #thick#, #quantity#, #unitWeight#,
#weight#, #parentId#,#inventTypeDetail#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
...
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX002A.xml
View file @
87381168
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
Generate time : 2024-06-07 14:37:36
Version : 1.0
schema : hggp
tableName : HGYX002A
ID BIGINT NOT NULL primarykey,
ACCOUNT_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
INVENT_RECORD_ID BIGINT,
INVENT_TYPE VARCHAR,
INVENT_CODE VARCHAR NOT NULL,
INVENT_NAME VARCHAR NOT NULL,
SPEC VARCHAR,
LENGTH DECIMAL,
WIDTH DECIMAL,
THICK DECIMAL,
QUANTITY DECIMAL,
UNIT_WEIGHT DECIMAL,
WEIGHT DECIMAL,
RETURN_QUANTITY DECIMAL,
RETURN_WEIGHT DECIMAL,
PARENT_ID BIGINT
-->
<sqlMap
namespace=
"HGYX002A"
>
<sqlMap
namespace=
"HGYX002A"
>
<typeAlias
alias=
"HGYX002A"
type=
"com.baosight.hggp.hg.yx.domain.HGYX002A"
/>
<typeAlias
alias=
"HGYX002A"
type=
"com.baosight.hggp.hg.yx.domain.HGYX002A"
/>
...
@@ -48,6 +19,7 @@
...
@@ -48,6 +19,7 @@
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
SPEC as "spec",
<!-- 规格 -->
LENGTH as "length",
<!-- 长 -->
LENGTH as "length",
<!-- 长 -->
WIDTH as "width",
<!-- 宽 -->
WIDTH as "width",
<!-- 宽 -->
...
@@ -60,6 +32,7 @@
...
@@ -60,6 +32,7 @@
PARENT_ID as "parentId",
<!-- 销售退货ID -->
PARENT_ID as "parentId",
<!-- 销售退货ID -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
INVENT_TYPE_DETAIL as "inventTypeDetail"
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
...
@@ -166,81 +139,6 @@
...
@@ -166,81 +139,6 @@
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventRecordId">
INVENT_RECORD_ID = #inventRecordId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventType">
INVENT_TYPE = #inventType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName">
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="spec">
SPEC = #spec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="length">
LENGTH = #length#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="width">
WIDTH = #width#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thick">
THICK = #thick#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="unitWeight">
UNIT_WEIGHT = #unitWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="weight">
WEIGHT = #weight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="returnQuantity">
RETURN_QUANTITY = #returnQuantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="returnWeight">
RETURN_WEIGHT = #returnWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="parentId">
PARENT_ID = #parentId#
</isNotEmpty>
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGYX002A (ID,
<!-- ID -->
INSERT INTO ${hggpSchema}.HGYX002A (ID,
<!-- ID -->
ACCOUNT_CODE,
<!-- 企业编码 -->
ACCOUNT_CODE,
<!-- 企业编码 -->
...
@@ -256,6 +154,7 @@
...
@@ -256,6 +154,7 @@
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_NAME,
<!-- 存货名称 -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC_ID,
<!-- 规格ID -->
SPEC,
<!-- 规格 -->
SPEC,
<!-- 规格 -->
LENGTH,
<!-- 长 -->
LENGTH,
<!-- 长 -->
WIDTH,
<!-- 宽 -->
WIDTH,
<!-- 宽 -->
...
@@ -268,7 +167,10 @@
...
@@ -268,7 +167,10 @@
PARENT_ID,
<!-- 销售退货ID -->
PARENT_ID,
<!-- 销售退货ID -->
INVENT_TYPE_DETAIL
INVENT_TYPE_DETAIL
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #inventRecordId#, #inventType#, #inventCode#, #inventName#, #spec#, #length#, #width#, #thick#, #quantity#, #unitWeight#, #weight#, #returnQuantity#, #returnWeight#, #parentId#,#inventTypeDetail#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#,
#updatedTime#, #deleteFlag#, #inventRecordId#, #inventType#, #inventCode#, #inventName#, #specId#, #spec#, #length#,
#width#, #thick#, #quantity#, #unitWeight#, #weight#, #returnQuantity#, #returnWeight#,
#parentId#,#inventTypeDetail#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS0105.java
0 → 100644
View file @
87381168
package
com
.
baosight
.
xservices
.
xs
.
service
;
import
com.baosight.iplat4j.core.cache.CacheManager
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext
;
import
com.baosight.iplat4j.core.log.xeye.entity.XEyeEntity
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.util.DateUtils
;
import
com.baosight.xservices.xs.authentication.SecurityBridgeFactory
;
import
com.baosight.xservices.xs.util.UserSession
;
import
java.util.GregorianCalendar
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
/**
*
* @author:songx
* @date:2024/10/18,17:45
*/
public
class
ServiceXS0105
extends
ServiceEPBase
{
private
static
Logger
logger
=
LogManager
.
getLogger
(
ServiceXS0105
.
class
);
private
static
String
defaultPasswordSwitch
=
StringUtils
.
defaultIfEmpty
(
PlatApplicationContext
.
getProperty
(
"xservices.security.default.password.switch"
),
"on"
);
private
static
final
String
loginFailCountCache
=
"iplat:security:loginFailCountCache"
;
private
Map
<
String
,
Integer
>
failCountCache
=
CacheManager
.
getCache
(
"iplat:security:loginFailCountCache"
);
public
ServiceXS0105
()
{
}
public
EiInfo
query
(
EiInfo
inInfo
)
{
String
loginName
=
inInfo
.
get
(
"loginName"
).
toString
();
Map
map
=
new
HashMap
();
map
.
put
(
"loginName"
,
loginName
);
List
resultList
=
this
.
dao
.
query
(
"XS0105.query"
,
map
);
if
(
null
!=
resultList
&&
resultList
.
size
()
==
1
)
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
Map
result
=
(
Map
)
resultList
.
get
(
0
);
inInfo
.
set
(
"loginName"
,
result
.
get
(
"loginName"
));
inInfo
.
set
(
"userName"
,
result
.
get
(
"userName"
));
inInfo
.
set
(
"mobile"
,
result
.
get
(
"mobile"
));
inInfo
.
set
(
"email"
,
result
.
get
(
"email"
));
}
else
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"请输入正确的登录账号!"
);
}
return
inInfo
;
}
public
EiInfo
resetPassword
(
EiInfo
inInfo
)
{
String
msg
=
""
;
int
status
=
-
1
;
String
revisor
=
UserSession
.
getUser
().
getUsername
();
String
loginName
=
inInfo
.
get
(
"loginName"
).
toString
();
try
{
Map
map
=
new
HashMap
();
map
.
put
(
"loginName"
,
loginName
);
List
resultList
=
this
.
dao
.
query
(
"XS0104.query"
,
map
);
if
(
resultList
!=
null
&&
resultList
.
size
()
>
0
)
{
Map
result
=
(
Map
)
resultList
.
get
(
0
);
String
newPassword
=
""
;
String
defaultPassword
;
if
(
"on"
.
equals
(
defaultPasswordSwitch
))
{
defaultPassword
=
StringUtils
.
defaultIfEmpty
(
PlatApplicationContext
.
getProperty
(
"xservices.security.default.password"
),
"admin123!@#"
);
if
(
StringUtils
.
isBlank
(
defaultPassword
))
{
defaultPassword
=
loginName
;
}
newPassword
=
SecurityBridgeFactory
.
getSecurityPasswordEncrypt
().
encode
(
loginName
);
}
else
{
newPassword
=
SecurityBridgeFactory
.
getSecurityPasswordEncrypt
().
encode
(
loginName
);
}
map
.
put
(
"password"
,
newPassword
);
map
.
put
(
"status"
,
"1"
);
map
.
put
(
"isLocked"
,
"1"
);
map
.
put
(
"recRevisor"
,
revisor
);
map
.
put
(
"recReviseTime"
,
DateUtils
.
curDateTimeStr14
());
map
.
put
(
"pwdRevisor"
,
revisor
);
map
.
put
(
"pwdReviseDate"
,
DateUtils
.
curDateTimeStr14
());
map
.
put
(
"userId"
,
result
.
get
(
"userId"
));
defaultPassword
=
StringUtils
.
defaultIfEmpty
(
PlatApplicationContext
.
getProperty
(
"xservices.security.accountExpireDays"
),
"90"
);
String
pwdExpireDays
=
StringUtils
.
defaultIfEmpty
(
PlatApplicationContext
.
getProperty
(
"xservices.security.pwdExpireDays"
),
"90"
);
GregorianCalendar
gc
=
new
GregorianCalendar
();
gc
.
setTime
(
DateUtils
.
toDate8
(
DateUtils
.
curDateStr8
()));
gc
.
add
(
5
,
Integer
.
parseInt
(
pwdExpireDays
));
map
.
put
(
"pwdExpireDate"
,
DateUtils
.
toDateStr8
(
gc
.
getTime
()));
gc
.
setTime
(
DateUtils
.
toDate8
(
DateUtils
.
curDateStr8
()));
gc
.
add
(
5
,
Integer
.
parseInt
(
defaultPassword
));
map
.
put
(
"accountExpireDate"
,
DateUtils
.
toDateStr8
(
gc
.
getTime
()));
this
.
dao
.
update
(
"XS0104.update"
,
map
);
this
.
failCountCache
.
remove
(
loginName
);
msg
=
"重置密码成功!"
;
status
=
1
;
XEyeEntity
xEyeEntity
=
new
XEyeEntity
();
xEyeEntity
.
setLogId
(
"1004"
);
xEyeEntity
.
setLogName
(
"重置密码"
);
xEyeEntity
.
setInvokeInfo
(
UserSession
.
getUser
().
getUsername
()
+
"在"
+
DateUtils
.
curDateStr
(
"yyyy-MM-dd HH:mm:ss"
)
+
"重置了登录名为:"
+
result
.
get
(
"loginName"
)
+
"的用户的密码"
);
xEyeEntity
.
setStatus
(
inInfo
.
getStatus
()
+
""
);
xEyeEntity
.
set
(
"x_xs_id"
,
result
.
get
(
"userId"
));
xEyeEntity
.
set
(
"x_xs_on"
,
UserSession
.
getUser
().
getUsername
());
xEyeEntity
.
set
(
"x_xs_ln"
,
result
.
get
(
"loginName"
));
this
.
log
(
xEyeEntity
);
}
}
catch
(
Exception
var14
)
{
msg
=
var14
.
getMessage
();
logger
.
error
(
var14
.
getCause
().
getMessage
());
}
inInfo
.
setMsg
(
msg
);
inInfo
.
setStatus
(
status
);
return
inInfo
;
}
}
src/main/webapp/HG/WD/HGWD001.js
View file @
87381168
...
@@ -1020,8 +1020,9 @@ function saveProtFunc() {
...
@@ -1020,8 +1020,9 @@ function saveProtFunc() {
* 预览
* 预览
*/
*/
let
preview
=
function
()
{
let
preview
=
function
()
{
// source:1=文档库
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
let
url
=
"HGWD002A?inqu_status-0-fileId="
+
fileId
+
"&inqu_status-0-s
tatus
=0"
;
let
url
=
"HGWD002A?inqu_status-0-fileId="
+
fileId
+
"&inqu_status-0-s
ource
=0"
;
window
.
open
(
url
,
'_blank'
);
window
.
open
(
url
,
'_blank'
);
}
}
...
...
src/main/webapp/HG/WD/HGWD002A.js
View file @
87381168
...
@@ -4,6 +4,7 @@ $(function () {
...
@@ -4,6 +4,7 @@ $(function () {
"docTree"
:
{
"docTree"
:
{
query
:
function
(
inInfo
,
model
)
{
query
:
function
(
inInfo
,
model
)
{
inInfo
.
set
(
"inqu_status-0-fileId"
,
$
(
"#inqu_status-0-fileId"
).
val
());
inInfo
.
set
(
"inqu_status-0-fileId"
,
$
(
"#inqu_status-0-fileId"
).
val
());
inInfo
.
set
(
"inqu_status-0-source"
,
$
(
"#inqu_status-0-source"
).
val
());
return
inInfo
;
return
inInfo
;
},
},
select
:
function
(
e
)
{
select
:
function
(
e
)
{
...
...
src/main/webapp/HG/WD/HGWD002A.jsp
View file @
87381168
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<EF:EFRegion
title=
"文件目录树"
id=
"tree"
fitHeight=
"true"
>
<EF:EFRegion
title=
"文件目录树"
id=
"tree"
fitHeight=
"true"
>
<EF:EFInput
ename=
"fileId"
cname=
"文件ID"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
ename=
"fileId"
cname=
"文件ID"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
ename=
"source"
cname=
"来源"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<div
id=
"menu"
style=
"margin-top: 12px; margin-bottom: 8px"
>
<div
id=
"menu"
style=
"margin-top: 12px; margin-bottom: 8px"
>
<EF:EFTree
bindId=
"docTree"
ename=
"node"
textField=
"text"
valueField=
"label"
hasChildren=
"leaf"
<EF:EFTree
bindId=
"docTree"
ename=
"node"
textField=
"text"
valueField=
"label"
hasChildren=
"leaf"
serviceName=
"HGWD002A"
methodName=
"queryTree"
expandLevel=
"1"
>
serviceName=
"HGWD002A"
methodName=
"queryTree"
expandLevel=
"1"
>
...
...
src/main/webapp/HG/YX/HGYX001A.js
View file @
87381168
...
@@ -23,7 +23,7 @@ $(function() {
...
@@ -23,7 +23,7 @@ $(function() {
columns
:
[{
columns
:
[{
field
:
"inventType"
,
field
:
"inventType"
,
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
return
_
.
filter
(
inventTypeBox
,
function
(
item
)
{
return
_
.
filter
(
INVENT_TYPE_BOX
,
function
(
item
)
{
return
item
[
"param1Field"
]
==
"true"
;
return
item
[
"param1Field"
]
==
"true"
;
})
})
},
},
...
@@ -36,18 +36,18 @@ $(function() {
...
@@ -36,18 +36,18 @@ $(function() {
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
let
inventType
=
options
.
model
[
"inventType"
];
let
inventType
=
options
.
model
[
"inventType"
];
if
(
inventType
){
if
(
inventType
){
return
_
.
filter
(
inventCodedBox
,
function
(
item
)
{
return
_
.
filter
(
INVENT_CODE_BOX
,
function
(
item
)
{
return
item
[
"param1Field"
]
===
inventType
;
return
item
[
"param1Field"
]
===
inventType
;
})
})
}
}
return
options
.
values
;
return
options
.
values
;
},
},
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
inventCodedBox
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
INVENT_CODE_BOX
.
length
;
i
++
)
{
if
(
inventCodedBox
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
]){
if
(
INVENT_CODE_BOX
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
]){
dataItem
[
'inventName'
]
=
inventCodedBox
[
i
][
'textField'
]
dataItem
[
'inventName'
]
=
INVENT_CODE_BOX
[
i
][
'textField'
]
dataItem
[
'inventRecordId'
]
=
inventCodedBox
[
i
][
'param2Field'
];
dataItem
[
'inventRecordId'
]
=
INVENT_CODE_BOX
[
i
][
'param2Field'
];
return
inventCodedBox
[
i
][
'textField'
];
return
INVENT_CODE_BOX
[
i
][
'textField'
];
}
}
}
}
return
dataItem
[
"inventCode"
];
return
dataItem
[
"inventCode"
];
...
@@ -57,7 +57,7 @@ $(function() {
...
@@ -57,7 +57,7 @@ $(function() {
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
let
specId
=
options
.
model
[
"inventRecordId"
];
let
specId
=
options
.
model
[
"inventRecordId"
];
if
(
specId
){
if
(
specId
){
return
_
.
filter
(
specIdBox
,
function
(
item
)
{
return
_
.
filter
(
SPEC_BOX
,
function
(
item
)
{
return
item
[
"param7Field"
]
===
specId
;
return
item
[
"param7Field"
]
===
specId
;
})
})
}
}
...
@@ -409,8 +409,9 @@ function detailCallback(result) {
...
@@ -409,8 +409,9 @@ function detailCallback(result) {
let
rows
=
resultGrid
.
getDataItems
();
let
rows
=
resultGrid
.
getDataItems
();
if
(
result
.
length
>
0
)
{
if
(
result
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
let
specId
=
rows
.
filter
(
row
=>
row
.
inventRecordId
==
result
[
i
].
specId
)
let
filters
=
rows
.
filter
(
row
=>
row
.
inventCode
==
result
[
i
].
inventCode
if
(
specId
.
length
>
0
){
&&
row
.
spec
==
result
[
i
].
spec
);
if
(
filters
.
length
>
0
){
message
(
"无法重复添加!"
);
message
(
"无法重复添加!"
);
return
false
;
return
false
;
}
}
...
...
src/main/webapp/HG/YX/HGYX001A.jsp
View file @
87381168
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
filter=
"contains"
>
filter=
"contains"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"
inventRecord
Id"
cname=
"规格ID"
width=
"120"
enable=
"true"
readonly=
"true"
align=
"center"
hidden=
"true"
maxLength=
"50"
/>
<EF:EFColumn
ename=
"
spec
Id"
cname=
"规格ID"
width=
"120"
enable=
"true"
readonly=
"true"
align=
"center"
hidden=
"true"
maxLength=
"50"
/>
<EF:EFColumn
ename=
"length"
cname=
"长度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"length"
cname=
"长度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
...
...
src/main/webapp/HG/YX/HGYX001C.jsp
View file @
87381168
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="true"
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="true"
filter="contains">
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="
inventRecord
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="
spec
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
...
...
src/main/webapp/HG/YX/HGYX002A.js
View file @
87381168
...
@@ -433,8 +433,9 @@ function detailCallback(result) {
...
@@ -433,8 +433,9 @@ function detailCallback(result) {
let
rows
=
resultGrid
.
getDataItems
();
let
rows
=
resultGrid
.
getDataItems
();
if
(
result
.
length
>
0
)
{
if
(
result
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
let
specId
=
rows
.
filter
(
row
=>
row
.
inventRecordId
==
result
[
i
].
inventRecordId
)
let
filters
=
rows
.
filter
(
row
=>
row
.
inventCode
==
result
[
i
].
inventCode
if
(
specId
.
length
>
0
){
&&
row
.
spec
==
result
[
i
].
spec
);
if
(
filters
.
length
>
0
){
message
(
"无法重复添加!"
);
message
(
"无法重复添加!"
);
return
false
;
return
false
;
}
}
...
...
src/main/webapp/HG/YX/HGYX002A.jsp
View file @
87381168
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="false"
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="false"
filter="contains">
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="
inventRecord
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="
spec
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
...
...
src/main/webapp/HG/YX/HGYX002C.jsp
View file @
87381168
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
filter="contains">
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="
inventRecord
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="
spec
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment