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
60d6ee29
Commit
60d6ee29
authored
Jan 23, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.逻辑删除
parent
fa1e81c1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
64 additions
and
16 deletions
+64
-16
ServiceHPPZ004.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ004.java
+10
-0
HPPZ002.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ002.xml
+6
-2
HPPZ003.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ003.xml
+6
-2
HPPZ004.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ004.xml
+5
-2
HPPZ006.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ006.xml
+12
-4
HPPZ007.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ007.xml
+8
-3
HPPZ009.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ009.xml
+1
-1
HPPZ006.js
src/main/webapp/HP/PZ/HPPZ006.js
+15
-0
HPPZ006.jsp
src/main/webapp/HP/PZ/HPPZ006.jsp
+1
-2
No files found.
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ004.java
View file @
60d6ee29
...
...
@@ -6,6 +6,8 @@ import com.baosight.hpjx.core.dao.DaoUtils;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ003
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ004
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ006
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
...
@@ -117,6 +119,14 @@ public class ServiceHPPZ004 extends ServiceBase {
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPPZ004
fPz004
=
new
HPPZ004
();
fPz004
.
fromMap
(
resultRows
.
get
(
i
));
// 校验是否已经配置规格信息
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
"inventCode"
,
fPz004
.
getInventCode
());
List
<
HPPZ006
>
dbPz006
=
dao
.
query
(
HPPZ006
.
QUERY
,
paramMap
);
AssertUtils
.
isNotEmpty
(
dbPz006
,
String
.
format
(
"存货编码[%s]已存在档案信息,请先删除对应档案"
,
fPz004
.
getInventCode
()));
DaoUtils
.
update
(
HPPZ004
.
DELETE
,
resultRows
.
get
(
i
));
}
inInfo
=
this
.
query
(
inInfo
);
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ002.xml
View file @
60d6ee29
...
...
@@ -20,6 +20,7 @@
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
...
...
@@ -89,8 +90,9 @@
)
</insert>
<!-- 逻辑删除 -->
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz002
WHERE ID = #id#
UPDATE hpjx.T_HPPZ002 SET DELETE_FLAG = 1
WHERE ID = #id#
</delete>
<update
id=
"update"
>
...
...
@@ -113,7 +115,9 @@
SELECT DISTINCT
CUST_CODE as "custCode",
CUST_NAME as "custName"
FROM hpjx.t_hppz002 WHERE STATUS=1
FROM hpjx.t_hppz002
WHERE DELETE_FLAG = 0
AND STATUS=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ003.xml
View file @
60d6ee29
...
...
@@ -20,6 +20,7 @@
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
...
...
@@ -88,8 +89,9 @@
)
</insert>
<!-- 逻辑删除 -->
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz003
WHERE ID = #id#
UPDATE hpjx.T_HPPZ003 SET DELETE_FLAG = 1
WHERE ID = #id#
</delete>
<update
id=
"update"
>
...
...
@@ -109,7 +111,9 @@
SELECT DISTINCT
CUST_CODE as "custCode",
CUST_NAME as "custName"
FROM hpjx.t_hppz003 WHERE STATUS=1
FROM hpjx.t_hppz003
WHERE DELETE_FLAG = 0
AND STATUS=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ004.xml
View file @
60d6ee29
...
...
@@ -19,6 +19,7 @@
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
...
...
@@ -91,8 +92,9 @@
)
</insert>
<!-- 逻辑删除 -->
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz004
WHERE ID = #id#
UPDATE hpjx.T_HPPZ004 SET DELETE_FLAG = 1
WHERE ID = #id#
</delete>
<update
id=
"update"
>
...
...
@@ -113,7 +115,8 @@
INVENT_CODE as "inventCode",
INVENT_NAME as "inventName"
FROM hpjx.t_hppz004
WHERE STATUS = 1
WHERE DELETE_FLAG
AND STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ006.xml
View file @
60d6ee29
...
...
@@ -26,6 +26,7 @@
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
...
...
@@ -101,8 +102,9 @@
)
</insert>
<!-- 逻辑删除 -->
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz006
WHERE ID = #id#
UPDATE hpjx.T_HPPZ006 SET DELETE_FLAG = 1
WHERE ID = #id#
</delete>
<update
id=
"update"
>
...
...
@@ -126,7 +128,9 @@
SELECT DISTINCT
ID as "id",
CONCAT(INVENT_CODE,'-',INVENT_NAME,'[',SPEC,']') as "inventName"
FROM hpjx.t_hppz006 WHERE STATUS=1
FROM hpjx.t_hppz006
WHERE DELETE_FLAG = 1
AND STATUS=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -141,7 +145,9 @@
SELECT DISTINCT
INVENT_CODE as "inventCode",
INVENT_NAME as "inventName"
FROM hpjx.t_hppz006 WHERE STATUS=1
FROM hpjx.t_hppz006
WHERE DELETE_FLAG = 0
AND STATUS=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -156,7 +162,9 @@
SELECT DISTINCT
ID AS "id",
(CASE WHEN SPEC = '' THEN '无规格' ELSE SPEC END) AS "spec"
FROM hpjx.t_hppz006 WHERE STATUS=1
FROM hpjx.t_hppz006
WHERE DELETE_FLAG = 0
AND STATUS=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ007.xml
View file @
60d6ee29
...
...
@@ -26,6 +26,7 @@
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
...
...
@@ -96,8 +97,9 @@
)
</insert>
<!-- 逻辑删除 -->
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz007
WHERE ID = #id#
UPDATE hpjx.T_HPPZ007 SET DELETE_FLAG = 1
WHERE ID = #id#
</delete>
<update
id=
"update"
>
...
...
@@ -118,7 +120,9 @@
SELECT DISTINCT
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName"
<!-- 仓库名称 -->
FROM hpjx.t_hppz007 WHERE STATUS=1
FROM hpjx.t_hppz007
WHERE DELETE_FLAG = 0
AND STATUS=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -130,7 +134,8 @@
<select
id=
"queryByWhCode"
resultClass=
"com.baosight.hpjx.hp.pz.domain.HPPZ007"
>
SELECT WH_NAME as "whName"
FROM hpjx.t_hppz007 WHERE 1=1
FROM hpjx.t_hppz007
WHERE DELETE_FLAG = 0
AND WH_CODE = #whCode#
</select>
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ009.xml
View file @
60d6ee29
...
...
@@ -17,7 +17,7 @@
</sql>
<sql
id=
"conditions"
>
AND DELETE_FLAG =
'0'
AND DELETE_FLAG =
0
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
src/main/webapp/HP/PZ/HPPZ006.js
View file @
60d6ee29
...
...
@@ -10,6 +10,21 @@ $(function() {
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
]
},
columns
:
[{
field
:
"length"
,
template
:
function
(
options
)
{
return
options
.
length
==
0
?
"-"
:
options
.
length
;
}
},
{
field
:
"wide"
,
template
:
function
(
options
)
{
return
options
.
length
==
0
?
"-"
:
options
.
length
;
}
},
{
field
:
"thick"
,
template
:
function
(
options
)
{
return
options
.
length
==
0
?
"-"
:
options
.
length
;
}
},
{
field
:
"inventCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
inventNameGlobalData
.
length
;
i
++
)
{
...
...
src/main/webapp/HP/PZ/HPPZ006.jsp
View file @
60d6ee29
...
...
@@ -38,8 +38,7 @@
<EF:EFColumn
ename=
"wide"
cname=
"宽"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
width=
"100"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"coefficient"
cname=
"系数"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
required=
"true"
/>
<EF:EFColumn
ename=
"coefficient"
cname=
"系数"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
width=
"100"
align=
"center"
required=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
width=
"100"
required=
"true"
columnTemplate=
"#=valueField#-#=textField#"
itemTemplate=
"#=valueField#-#=textField#"
>
...
...
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