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
682fc1de
Commit
682fc1de
authored
Jun 28, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生产入库代码,以及退回、提交操作逻辑
parent
935a54d9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
57 deletions
+7
-57
HGKC003.java
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC003.java
+0
-0
ServiceHGKC003.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
+2
-2
HGKC003.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
+1
-51
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+4
-4
No files found.
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC003.java
View file @
682fc1de
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
View file @
682fc1de
...
...
@@ -158,7 +158,7 @@ public class ServiceHGKC003 extends ServiceBase {
DaoUtils
.
update
(
HGKC003
.
UPDATE_SUBMIT_STATUS
,
hgkc003
);
//修改计划生产任务完工数量
HGSCTools
.
complete
(
hgkc003
.
getQualityId
(),
hgkc003
.
getInvQty
().
intValue
(),
hgkc003
.
getRectificationId
());
HGSCTools
.
complete
(
hgkc003
.
getQualityId
(),
hgkc003
.
getInvQty
().
intValue
(),
hgkc003
.
getRectificationId
()
,
HGConstant
.
StorageType
.
RK
);
// 修改库存
HGKCUtils
.
HgKc010
.
updateInv
(
hgkc003
.
getCompanyCode
(),
hgkc003
.
getWhCode
(),
hgkc003
.
getPartCode
(),
hgkc003
.
getInvQty
(),
hgkc003
.
getInvWeight
());
...
...
@@ -244,7 +244,7 @@ public class ServiceHGKC003 extends ServiceBase {
newKc003
.
setIsReturn
(
CommonConstant
.
YesNo
.
YES_1
);
DaoUtils
.
insert
(
HGKC003
.
INSERT
,
newKc003
);
//修改计划生产任务完工数量
HGSCTools
.
complete
(
fKc003
.
getQualityId
(),
newKc003
.
getInvQty
().
intValue
(),
fKc003
.
getRectificationId
());
HGSCTools
.
complete
(
fKc003
.
getQualityId
(),
newKc003
.
getInvQty
().
intValue
(),
fKc003
.
getRectificationId
()
,
HGConstant
.
StorageType
.
TH
);
// 修改库存
HGKCUtils
.
HgKc010
.
updateInv
(
newKc003
.
getCompanyCode
(),
newKc003
.
getWhCode
(),
newKc003
.
getPartCode
(),
newKc003
.
getInvQty
(),
newKc003
.
getInvWeight
());
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
View file @
682fc1de
...
...
@@ -81,27 +81,6 @@
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtType"
>
PRDT_TYPE = #prdtType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
PRDT_CODE = #prdtCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtName"
>
PRDT_NAME = #prdtName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtLength"
>
PRDT_LENGTH = #prdtLength#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtWidth"
>
PRDT_WIDTH = #prdtWidth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtThick"
>
PRDT_THICK = #prdtThick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtSpec"
>
PRDT_SPEC = #prdtSpec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partType"
>
PART_TYPE = #partType#
</isNotEmpty>
...
...
@@ -191,13 +170,6 @@
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRDT_TYPE as "prdtType",
<!-- 产品类型 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PRDT_LENGTH as "prdtLength",
<!-- 产品-长 -->
PRDT_WIDTH as "prdtWidth",
<!-- 产品-宽 -->
PRDT_THICK as "prdtThick",
<!-- 产品-厚 -->
PRDT_SPEC as "prdtSpec",
<!-- 产品规格 -->
PART_TYPE as "partType",
<!-- 零件类型 -->
PART_CODE as "partCode",
<!-- 零件编码 -->
PART_NAME as "partName",
<!-- 零件名称 -->
...
...
@@ -261,13 +233,6 @@
PROD_TASK_NO,
<!-- 生产任务号 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
PRDT_TYPE,
<!-- 产品类型 -->
PRDT_CODE,
<!-- 产品编码 -->
PRDT_NAME,
<!-- 产品名称 -->
PRDT_LENGTH,
<!-- 产品-长 -->
PRDT_WIDTH,
<!-- 产品-宽 -->
PRDT_THICK,
<!-- 产品-厚 -->
PRDT_SPEC,
<!-- 产品规格 -->
PART_TYPE,
<!-- 零件类型 -->
PART_CODE,
<!-- 零件编码 -->
PART_NAME,
<!-- 零件名称 -->
...
...
@@ -288,8 +253,7 @@
#companyName#, #depositDate#, #depositNo#, #whCode#, #whName#,
#invQty#, #invUnitWeight#, #invWeight#, #depositNoOld#, #remark#,
#factoryCode#, #prodOrderNo#, #prodTaskNo#, #projCode#, #projName#,
#prdtType#, #prdtCode#, #prdtName#, #prdtLength#, #prdtWidth#, #prdtThick#,
#prdtSpec#, #partType#, #partCode#, #partName#, #partLength#, #partWidth#,
#partType#, #partCode#, #partName#, #partLength#, #partWidth#,
#partThick#, #partSpec#, #price#, #amount#, #storageType#, #isReturn#,#submitStatus#,#inventTypeDetail#)
</insert>
...
...
@@ -334,13 +298,6 @@
PROD_TASK_NO = #prodTaskNo#,
<!-- 生产任务号 -->
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
PRDT_TYPE = #prdtType#,
<!-- 产品类型 -->
PRDT_CODE = #prdtCode#,
<!-- 产品编码 -->
PRDT_NAME = #prdtName#,
<!-- 产品名称 -->
PRDT_LENGTH = #prdtLength#,
<!-- 产品-长 -->
PRDT_WIDTH = #prdtWidth#,
<!-- 产品-宽 -->
PRDT_THICK = #prdtThick#,
<!-- 产品-厚 -->
PRDT_SPEC = #prdtSpec#,
<!-- 产品规格 -->
PART_TYPE = #partType#,
<!-- 零件类型 -->
PART_CODE = #partCode#,
<!-- 零件编码 -->
PART_NAME = #partName#,
<!-- 零件名称 -->
...
...
@@ -424,13 +381,6 @@
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRDT_TYPE as "prdtType",
<!-- 产品类型 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PRDT_LENGTH as "prdtLength",
<!-- 产品-长 -->
PRDT_WIDTH as "prdtWidth",
<!-- 产品-宽 -->
PRDT_THICK as "prdtThick",
<!-- 产品-厚 -->
PRDT_SPEC as "prdtSpec",
<!-- 产品规格 -->
PART_TYPE as "partType",
<!-- 零件类型 -->
PART_CODE as "partCode",
<!-- 零件编码 -->
PART_NAME as "partName",
<!-- 零件名称 -->
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
682fc1de
package
com
.
baosight
.
hggp
.
hg
.
sc
.
tools
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.lang.copier.SrcToDestCopier
;
import
com.baosight.hggp.common.*
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoBase
;
...
...
@@ -16,7 +15,6 @@ import com.baosight.hggp.hg.pz.tools.HGPZTools;
import
com.baosight.hggp.hg.sc.domain.*
;
import
com.baosight.hggp.hg.sj.domain.HGSJ001
;
import
com.baosight.hggp.hg.sj.tools.HGSJTools
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.zl.domain.HGZL002
;
import
com.baosight.hggp.hg.zl.domain.HGZL004
;
import
com.baosight.hggp.hg.zl.tools.HGZLTools
;
...
...
@@ -36,7 +34,6 @@ import org.apache.commons.lang3.StringUtils;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.stream.Collector
;
import
java.util.stream.Collectors
;
import
static
com
.
baosight
.
hggp
.
common
.
AssignStatusEnum
.*;
...
...
@@ -132,8 +129,10 @@ public class HGSCTools {
}
public
static
void
complete
(
Long
checkId
,
Integer
completeNum
,
Long
rectificationId
){
public
static
void
complete
(
Long
checkId
,
Integer
completeNum
,
Long
rectificationId
,
Integer
storageType
){
HGZL002
hgzl002
=
HGZLTools
.
THGZL002
.
get
(
checkId
);
//如果是退回,需要修改整改通知单状态,工序质检单状态
if
(
storageType
.
intValue
()
==
HGConstant
.
StorageType
.
TH
){
if
(
Objects
.
nonNull
(
rectificationId
)
&&
rectificationId
.
intValue
()
!=
0
){
//更新整改通知单状态,工序质检单与整改通知单是2条入库单数据
HGZL004
hgzl004
=
HGZLTools
.
THGZL004
.
get
(
rectificationId
);
...
...
@@ -145,6 +144,7 @@ public class HGSCTools {
hgzl002
.
setCheckStatus
(
CheckStatusEnum
.
CHECKING
.
getCode
());
DaoUtils
.
update
(
HGZL002
.
UPDATE
,
hgzl002
);
}
}
HGSC008
hgsc008
=
THGSC008
.
getById
(
hgzl002
.
getWorkId
());
HGSC007
hgsc007
=
THGSC007
.
getById
(
hgsc008
.
getTaskId
());
//更新生产任务完工数量
...
...
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