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
7ec985b3
Commit
7ec985b3
authored
Mar 21, 2024
by
liulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增厂区的查询条件
parent
8ae1f816
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
ServiceHPKC001.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
+1
-1
HPKC001.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC001.xml
+15
-0
HPKCTools.java
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
+2
-2
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
View file @
7ec985b3
...
...
@@ -214,7 +214,7 @@ public class ServiceHPKC001 extends ServiceBase {
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 入库单号
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"
otherEnter
No"
);
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"
purchase
No"
);
// 锁记录
HPKCTools
.
HpKc001
.
lock
(
otherEnterNos
);
// 查询数据库记录
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC001.xml
View file @
7ec985b3
...
...
@@ -103,6 +103,9 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
FACTORY_NAME = #factoryName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purchaseNos"
>
PURCHASE_NO IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"purchaseNos"
>
#purchaseNos[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
...
...
@@ -190,6 +193,18 @@
WHERE ID = #id#
</update>
<update
id=
"lock"
>
UPDATE ${hpjxSchema}.t_hpkc001
SET CREATED_TIME = CREATED_TIME
WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"purchaseNo"
>
PURCHASE_NO = #purchaseNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purchaseNos"
>
PURCHASE_NO IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"purchaseNos"
>
#purchaseNos[]#
</iterate>
</isNotEmpty>
</update>
<!-- 统计库存 -->
<select
id=
"statDate"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC001"
>
SELECT
...
...
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
View file @
7ec985b3
...
...
@@ -49,7 +49,7 @@ public class HPKCTools {
return
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"
otherEnter
Nos"
,
otherEnterNos
);
queryMap
.
put
(
"
purchase
Nos"
,
otherEnterNos
);
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC001
.
LOCK
,
queryMap
);
}
...
...
@@ -64,7 +64,7 @@ public class HPKCTools {
return
null
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"
otherEnter
Nos"
,
otherEnterNos
);
queryMap
.
put
(
"
purchase
Nos"
,
otherEnterNos
);
return
DaoBase
.
getInstance
().
query
(
HPKC001
.
QUERY
,
queryMap
);
}
...
...
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