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
91b55b68
Commit
91b55b68
authored
Jul 31, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交校验修改
parent
744e2566
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
ServiceHGCG003.java
.../java/com/baosight/hggp/hg/cg/service/ServiceHGCG003.java
+17
-14
No files found.
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG003.java
View file @
91b55b68
...
...
@@ -321,32 +321,20 @@ public class ServiceHGCG003 extends ServiceBase {
/**
* 修改状态
*/
@OperationLogAnnotation
(
operModul
=
"
工艺流程"
,
operType
=
"修改
"
,
operDesc
=
"修改状态操作"
)
@OperationLogAnnotation
(
operModul
=
"
采购收货"
,
operType
=
"确认收货
"
,
operDesc
=
"修改状态操作"
)
public
EiInfo
updateStatus
(
EiInfo
inInfo
){
int
i
=
0
;
try
{
HGCG003
hgcg003
=
new
HGCG003
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
List
<
Long
>
primaryIds
=
new
LinkedList
<>();
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hgcg003
.
fromMap
(
map
);
primaryIds
.
add
(
hgcg003
.
getId
());
HGCG003
old
=
HGCGTools
.
HgCg003
.
get
(
hgcg003
.
getId
());
hgcg003
.
setReceiveNo
(
old
.
getReceiveNo
());
DaoUtils
.
update
(
HGCG003
.
UPDATE_STATUS
,
hgcg003
);
this
.
putInStorageData
(
old
);
}
List
<
HGCG003B
>
hgcg003BList
=
HGCGTools
.
HgCg003B
.
listByPrimaryIds
(
primaryIds
);
hgcg003BList
.
forEach
(
o
->{
Map
<
String
,
Object
>
paramDetailMap
=
new
HashMap
<>();
paramDetailMap
.
put
(
HGCG003B
.
FIELD_ID
,
o
.
getId
());
paramDetailMap
.
put
(
HGCG003B
.
FIELD_STATUS
,
HGConstant
.
CgReceiveStatus
.
S_2
);
paramDetailMap
.
put
(
HGCG003B
.
FIELD_DELIVER_QTY
,
0
);
paramDetailMap
.
put
(
HGCG003B
.
FIELD_DEPOSIT_QTY
,
o
.
getReceiveQty
());
DaoUtils
.
update
(
HGSqlConstant
.
HgCg003B
.
UPDATE_CONFIRM
,
paramDetailMap
);
//采购入库
HGKCTools
.
HgKc001
.
putInStorageData
(
o
.
getId
());
});
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsgByKey
(
"ep.1000"
,
new
String
[]{
String
.
valueOf
(
i
),
I18nMessages
.
getText
(
"label.update"
,
"修改"
)});
}
catch
(
PlatException
e
)
{
...
...
@@ -359,4 +347,19 @@ public class ServiceHGCG003 extends ServiceBase {
return
inInfo
;
}
private
void
putInStorageData
(
HGCG003
hgcg003
)
{
List
<
HGCG003B
>
hgcg003BList
=
HGCGTools
.
HgCg003B
.
listByPrimaryId
(
hgcg003
.
getId
());
AssertUtils
.
isTrue
(
CollectionUtils
.
isEmpty
(
hgcg003BList
),
String
.
format
(
"收货单明细[%s]为空"
,
hgcg003
.
getReceiveNo
()));
hgcg003BList
.
forEach
(
o
->{
Map
<
String
,
Object
>
paramDetailMap
=
new
HashMap
<>();
paramDetailMap
.
put
(
HGCG003B
.
FIELD_ID
,
o
.
getId
());
paramDetailMap
.
put
(
HGCG003B
.
FIELD_STATUS
,
HGConstant
.
CgReceiveStatus
.
S_2
);
paramDetailMap
.
put
(
HGCG003B
.
FIELD_DELIVER_QTY
,
0
);
paramDetailMap
.
put
(
HGCG003B
.
FIELD_DEPOSIT_QTY
,
o
.
getReceiveQty
());
DaoUtils
.
update
(
HGSqlConstant
.
HgCg003B
.
UPDATE_CONFIRM
,
paramDetailMap
);
//采购入库
HGKCTools
.
HgKc001
.
putInStorageData
(
o
.
getId
());
});
}
}
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