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
ccf1ac48
Commit
ccf1ac48
authored
Jun 07, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产入库逻辑功能提交,bug修改
parent
8cd3aec4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
ServiceHGKC003.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
+2
-2
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+15
-0
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
View file @
ccf1ac48
...
...
@@ -73,7 +73,7 @@ public class ServiceHGKC003 extends ServiceBase {
* @return
*/
@OperationLogAnnotation
(
operModul
=
"生产入库单"
,
operType
=
"保存"
,
operDesc
=
"保存"
)
public
EiInfo
sav
e
(
EiInfo
inInfo
)
{
public
EiInfo
updat
e
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 写入数据
...
...
@@ -108,7 +108,7 @@ public class ServiceHGKC003 extends ServiceBase {
for
(
Long
id
:
ids
){
HGKC003
hgkc003
=
HGKCTools
.
HgKc003
.
getId
(
id
);
//修改计划生产任务完工数量
HGSCTools
.
comp
lete
(
hgkc003
.
getQualityId
(),
hgkc003
.
getInvQty
().
negate
().
intValue
(),
hgkc003
.
getRectificationId
());
HGSCTools
.
hgkc003De
lete
(
hgkc003
.
getQualityId
(),
hgkc003
.
getInvQty
().
negate
().
intValue
(),
hgkc003
.
getRectificationId
());
DaoUtils
.
update
(
HGKC003
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
}
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
ccf1ac48
...
...
@@ -168,6 +168,21 @@ public class HGSCTools {
DaoUtils
.
update
(
HGSC005A
.
UPDATE
,
hgsc005A
);
}
public
static
void
hgkc003Delete
(
Long
checkId
,
Integer
completeNum
,
Long
rectificationId
){
HGZL002
hgzl002
=
HGZLTools
.
THGZL002
.
get
(
checkId
);
if
(
Objects
.
nonNull
(
rectificationId
)
&&
rectificationId
.
intValue
()
!=
0
){
//更新整改通知单状态,工序质检单与整改通知单是2条入库单数据
HGZL004
hgzl004
=
HGZLTools
.
THGZL004
.
get
(
rectificationId
);
hgzl004
.
setHandleStatus
(
HandleStatusEnum
.
UNPROCESS
.
getCode
());
DaoUtils
.
update
(
HGZL004
.
UPDATE
,
hgzl004
);
}
else
{
//整改通知单id为空的入库单才是工序质检单生成的入库单。
//更新工序质检单状态
hgzl002
.
setCheckStatus
(
CheckStatusEnum
.
CHECKING
.
getCode
());
DaoUtils
.
update
(
HGZL002
.
UPDATE
,
hgzl002
);
}
}
public
static
class
Hgsc001
{
public
static
HGSC001
queryByCode
(
String
code
)
{
AssertUtils
.
isNull
(
code
,
"项目Code不能为空!"
);
...
...
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