Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xnr-interface
Project
Project
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
heli_wms
xnr-interface
Commits
5082c6fd
Commit
5082c6fd
authored
Dec 06, 2019
by
tank.li@mushiny.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拣货任务完善,出库单与系统绑定 完成后反馈
parent
d28a2f35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
ICQAService.java
src/main/java/com/mushiny/heli/xnr/service/ICQAService.java
+10
-8
No files found.
src/main/java/com/mushiny/heli/xnr/service/ICQAService.java
View file @
5082c6fd
...
...
@@ -372,7 +372,9 @@ public class ICQAService {
* @param taskId
* @return
*/
public
MessageDTO
check
(
String
skuId
,
int
checked
,
String
containerId
,
String
factory
,
String
section
,
String
taskId
)
{
public
MessageDTO
check
(
String
skuId
,
int
checked
,
String
containerId
,
String
factory
,
String
section
,
String
taskId
)
{
MessageDTO
messageDTO
=
MessageDTO
.
success
();
List
<
Map
>
invs
=
this
.
jdbcRepository
.
queryBySql
(
Sql_Table
.
SQL_INV_UNITLOADID
,
containerId
);
if
(
invs
.
isEmpty
()){
...
...
@@ -380,33 +382,33 @@ public class ICQAService {
messageDTO
.
setMESSAGE
(
"没有找到该容器:"
+
containerId
);
return
messageDTO
;
}
List
<
Map
>
items
=
this
.
jdbcRepository
.
queryBySql
(
Sql_Table
.
SQL_QUERY
ITEM_BYSKUNO
,
sku
Id
);
List
<
Map
>
items
=
this
.
jdbcRepository
.
queryBySql
(
Sql_Table
.
SQL_QUERY
_ITEMINFO
,
skuId
,
container
Id
);
if
(
items
.
isEmpty
()){
messageDTO
.
setCODE
(
1
);
messageDTO
.
setMESSAGE
(
"没有找到该商品信息:"
+
skuId
);
return
messageDTO
;
}
Map
item
=
items
.
get
(
0
);
String
mID
=
CommonUtils
.
parseString
(
"ID"
,
item
);
//货位信息
Map
data
=
invs
.
get
(
0
);
String
uid
=
CommonUtils
.
parseString
(
"ID"
,
data
);
int
amount
=
CommonUtils
.
parseInteger
(
"AMOUNT"
,
item
);
//查询盘点的入库数量
Map
icqaOrderPosition
=
this
.
getIcqaOrderPosition
(
taskId
,
skuId
);
String
pId
=
CommonUtils
.
parseString
(
"ID"
,
icqaOrderPosition
);
//更新入库单状态
this
.
updateIcqaOrderStatus
(
pId
,
taskId
,
skuId
,
Sql_Table
.
FINISH
,
checked
);
this
.
updateIcqaOrderStatus
(
pId
,
taskId
,
skuId
,
Sql_Table
.
FINISH
,
checked
,
amount
);
return
messageDTO
;
}
private
void
updateIcqaOrderStatus
(
String
pId
,
String
taskId
,
String
skuId
,
String
finish
,
int
checked
)
{
private
void
updateIcqaOrderStatus
(
String
pId
,
String
taskId
,
String
skuId
,
String
finish
,
int
checked
,
int
amount
)
{
MessageDTO
messageDTO
=
MessageDTO
.
success
();
Map
newValue
=
new
HashMap
();
newValue
.
put
(
"STATE"
,
finish
);
newValue
.
put
(
"COUNT"
,
checked
);
newValue
.
put
(
"COUNT"
,
amount
);
CommonUtils
.
modifyUselessInfo
(
newValue
);
Map
con
=
new
HashMap
();
...
...
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