Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
eae028f3
Commit
eae028f3
authored
Jan 26, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料清单新增层级
parent
b9215186
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
25 deletions
+25
-25
HPSC002.java
src/main/java/com/baosight/hpjx/hp/sc/domain/HPSC002.java
+8
-8
ServiceHPSC002.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
+3
-3
HPSC002.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
+12
-12
HPSC002.js
src/main/webapp/HP/SC/HPSC002.js
+2
-2
No files found.
src/main/java/com/baosight/hpjx/hp/sc/domain/HPSC002.java
View file @
eae028f3
...
@@ -52,7 +52,7 @@ public class HPSC002 extends DaoEPBase {
...
@@ -52,7 +52,7 @@ public class HPSC002 extends DaoEPBase {
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedTime
;
/* 更新时间*/
private
String
updatedTime
;
/* 更新时间*/
private
String
remark
=
" "
;
/* 备注*/
private
String
remark
=
" "
;
/* 备注*/
private
Integer
l
evel
=
0
;
/*层级*/
private
Integer
l
v
=
0
;
/*层级*/
/**
/**
* initialize the metadata
* initialize the metadata
...
@@ -187,7 +187,7 @@ public class HPSC002 extends DaoEPBase {
...
@@ -187,7 +187,7 @@ public class HPSC002 extends DaoEPBase {
eiColumn
.
setDescName
(
"备注"
);
eiColumn
.
setDescName
(
"备注"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"l
evel
"
);
eiColumn
=
new
EiColumn
(
"l
v
"
);
eiColumn
.
setDescName
(
"层级"
);
eiColumn
.
setDescName
(
"层级"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
...
@@ -649,12 +649,12 @@ public class HPSC002 extends DaoEPBase {
...
@@ -649,12 +649,12 @@ public class HPSC002 extends DaoEPBase {
this
.
remark
=
remark
;
this
.
remark
=
remark
;
}
}
public
Integer
getL
evel
()
{
public
Integer
getL
v
()
{
return
l
evel
;
return
l
v
;
}
}
public
void
setL
evel
(
Integer
level
)
{
public
void
setL
v
(
Integer
lv
)
{
this
.
l
evel
=
level
;
this
.
l
v
=
lv
;
}
}
/**
/**
...
@@ -692,7 +692,7 @@ public class HPSC002 extends DaoEPBase {
...
@@ -692,7 +692,7 @@ public class HPSC002 extends DaoEPBase {
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"remark"
)),
remark
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"remark"
)),
remark
));
setL
evel
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"level"
)),
level
));
setL
v
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"lv"
)),
lv
));
}
}
/**
/**
...
@@ -731,7 +731,7 @@ public class HPSC002 extends DaoEPBase {
...
@@ -731,7 +731,7 @@ public class HPSC002 extends DaoEPBase {
map
.
put
(
"updatedBy"
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
"updatedBy"
)));
map
.
put
(
"updatedBy"
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
"updatedBy"
)));
map
.
put
(
"updatedTime"
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
"updatedTime"
)));
map
.
put
(
"updatedTime"
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
"updatedTime"
)));
map
.
put
(
"remark"
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
"remark"
)));
map
.
put
(
"remark"
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
"remark"
)));
map
.
put
(
"l
evel"
,
StringUtils
.
toString
(
level
,
eiMetadata
.
getMeta
(
"level
"
)));
map
.
put
(
"l
v"
,
StringUtils
.
toString
(
lv
,
eiMetadata
.
getMeta
(
"lv
"
)));
return
map
;
return
map
;
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
View file @
eae028f3
...
@@ -87,10 +87,10 @@ public class ServiceHPSC002 extends ServiceBase {
...
@@ -87,10 +87,10 @@ public class ServiceHPSC002 extends ServiceBase {
hppz002
.
setPrdtName
(
HPPZTools
.
getPz004ByCode
(
hppz002
.
getPrdtCode
()).
getInventName
());
hppz002
.
setPrdtName
(
HPPZTools
.
getPz004ByCode
(
hppz002
.
getPrdtCode
()).
getInventName
());
}
}
if
(
hppz002
.
getParentId
().
equals
(
"root"
)){
if
(
hppz002
.
getParentId
().
equals
(
"root"
)){
hppz002
.
setL
evel
(
new
Integer
(
1
));
hppz002
.
setL
v
(
new
Integer
(
1
));
}
else
{
}
else
{
Integer
l
evel
=
(
Integer
)
this
.
dao
.
get
(
"HPSC002.queryLevel
"
,
"id"
,
hppz002
.
getParentId
());
Integer
l
v
=
(
Integer
)
this
.
dao
.
get
(
"HPSC002.queryLv
"
,
"id"
,
hppz002
.
getParentId
());
hppz002
.
setL
evel
(
level
.
intValue
()+
1
);
hppz002
.
setL
v
(
lv
.
intValue
()+
1
);
}
}
DaoUtils
.
insert
(
"HPSC002.insert"
,
hppz002
.
toMap
());
DaoUtils
.
insert
(
"HPSC002.insert"
,
hppz002
.
toMap
());
// if (!hppz002.getParentId().equals("root")) {
// if (!hppz002.getParentId().equals("root")) {
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
View file @
eae028f3
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
REMARK as "remark",
<!-- 备注 -->
REMARK as "remark",
<!-- 备注 -->
L
EVEL as "level
"
L
V as "lv
"
FROM hpjx.t_hpsc002 WHERE 1=1
FROM hpjx.t_hpsc002 WHERE 1=1
AND PARENT_ID NOT IN ('root')
AND PARENT_ID NOT IN ('root')
AND DEL_STATUS = 0
AND DEL_STATUS = 0
...
@@ -96,8 +96,8 @@
...
@@ -96,8 +96,8 @@
<isNotEmpty
prepend=
" AND "
property=
"status"
>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
STATUS = #status#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"l
evel
"
>
<isNotEmpty
prepend=
" AND "
property=
"l
v
"
>
L
EVEL = #level
#
L
V = #lv
#
</isNotEmpty>
</isNotEmpty>
ORDER BY ID DESC
ORDER BY ID DESC
<!-- <dynamic prepend="ORDER BY">-->
<!-- <dynamic prepend="ORDER BY">-->
...
@@ -136,8 +136,8 @@
...
@@ -136,8 +136,8 @@
<isNotEmpty
prepend=
" AND "
property=
"status"
>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
STATUS = #status#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"l
evel
"
>
<isNotEmpty
prepend=
" AND "
property=
"l
v
"
>
L
EVEL = #level
#
L
V = #lv
#
</isNotEmpty>
</isNotEmpty>
</select>
</select>
...
@@ -259,9 +259,9 @@
...
@@ -259,9 +259,9 @@
UPDATED_BY,
<!-- 更新人 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME,
<!-- 更新时间 -->
UPDATED_TIME,
<!-- 更新时间 -->
REMARK,
<!-- 备注 -->
REMARK,
<!-- 备注 -->
L
EVEL
L
V
)
)
VALUES (#id#, #companyCode#, #deptCode#, #projCode#, #projName#, #parentId#, #parentPrdtName#, #type#, #leaf#, #sort#, #icon#, #prdtType#, #prdtCode#, #prdtName#, #inventRecordId#, #num#, #unitWt#, #totalWt#, #filePath1#, #filePath2#, #filePath3#, #filePath4#, #filePath5#, #status#, #delStatus#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#, #remark#, #l
evel
#)
VALUES (#id#, #companyCode#, #deptCode#, #projCode#, #projName#, #parentId#, #parentPrdtName#, #type#, #leaf#, #sort#, #icon#, #prdtType#, #prdtCode#, #prdtName#, #inventRecordId#, #num#, #unitWt#, #totalWt#, #filePath1#, #filePath2#, #filePath3#, #filePath4#, #filePath5#, #status#, #delStatus#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#, #remark#, #l
v
#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
LEAF as "leaf",
<!-- 是否有叶子节点 -->
LEAF as "leaf",
<!-- 是否有叶子节点 -->
SORT as "sort",
<!-- 排序字段 -->
SORT as "sort",
<!-- 排序字段 -->
ICON as "icon",
<!-- 图片地址 -->
ICON as "icon",
<!-- 图片地址 -->
L
EVEL as "level
"
L
V as "lv
"
FROM
FROM
hpjx.t_hpsc002
hpjx.t_hpsc002
WHERE
WHERE
...
@@ -368,7 +368,7 @@
...
@@ -368,7 +368,7 @@
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
REMARK as "remark",
<!-- 备注 -->
REMARK as "remark",
<!-- 备注 -->
L
EVEL as "level
"
L
V as "lv
"
FROM hpjx.t_hpsc002
FROM hpjx.t_hpsc002
WHERE 1 = 1
WHERE 1 = 1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
...
@@ -413,7 +413,7 @@
...
@@ -413,7 +413,7 @@
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
REMARK as "remark",
<!-- 备注 -->
REMARK as "remark",
<!-- 备注 -->
L
EVEL as "level
"
L
V as "lv
"
FROM hpjx.t_hpsc002 WHERE 1 = 1
FROM hpjx.t_hpsc002 WHERE 1 = 1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
...
@@ -446,8 +446,8 @@
...
@@ -446,8 +446,8 @@
</isNotEmpty>
</isNotEmpty>
</select>
</select>
<select
id=
"queryL
evel
"
resultClass=
"int"
>
<select
id=
"queryL
v
"
resultClass=
"int"
>
SELECT L
EVEL
from hpjx.t_hpsc002
SELECT L
V
from hpjx.t_hpsc002
WHERE ID = #id#
WHERE ID = #id#
</select>
</select>
...
...
src/main/webapp/HP/SC/HPSC002.js
View file @
eae028f3
...
@@ -190,13 +190,13 @@ $(function () {
...
@@ -190,13 +190,13 @@ $(function () {
template
:
function
(
item
)
{
template
:
function
(
item
)
{
console
.
log
(
item
)
console
.
log
(
item
)
let
auditStatus
=
item
.
status
;
let
auditStatus
=
item
.
status
;
let
l
evel
=
item
.
level
let
l
v
=
item
.
lv
let
template
=
''
;
let
template
=
''
;
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
// + 'onclick="openUploadFile(' + item.id + ',1)" >附件上传</a>';
// + 'onclick="openUploadFile(' + item.id + ',1)" >附件上传</a>';
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showUploadFile('
+
item
.
id
+
')" >附件清单</a>'
;
+
'onclick="showUploadFile('
+
item
.
id
+
')" >附件清单</a>'
;
if
(
l
evel
===
'3'
)
{
if
(
l
v
===
'3'
)
{
if
(
auditStatus
==
0
)
{
if
(
auditStatus
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="check('
+
item
.
id
+
',1)" >审核</a>'
;
'onclick="check('
+
item
.
id
+
',1)" >审核</a>'
;
...
...
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