Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6e76cd11
由
zshaohui
编写于
2025-04-29 15:59:27 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.隔口移转中 每个隔口的料盘 取最早的时间
1 个父辈
6139fd65
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
7 行删除
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualStorTransferController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
查看文件 @
6e76cd1
...
...
@@ -418,6 +418,10 @@ public class Barcode extends BasePo implements Serializable {
}
public
void
setPutInTime
(
Date
date
){
this
.
putInTime
=
date
.
getTime
();
}
public
void
setPutInTime
(
long
putInTime
,
boolean
needUpdateTime
)
{
this
.
putInTime
=
putInTime
;
this
.
putInDate
=
new
Date
(
putInTime
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualStorTransferController.java
查看文件 @
6e76cd1
...
...
@@ -32,10 +32,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.swing.*
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Locale
;
import
java.util.Map
;
import
java.util.*
;
@Slf4j
@ApiOperation
(
"手动储位移转"
)
...
...
@@ -177,7 +174,7 @@ public class ManualStorTransferController {
}
//获取最早的创建时间(转库的时候,每次转移的料盘,取当前隔口的最早创建时间)
Date
createDate
=
BoxHandleUtil
.
getCreateDate
(
boxBarcode
,
newPartition
);
Date
createDate
=
BoxHandleUtil
.
getCreateDate
(
boxBarcode
,
newPartition
,
barcode
.
getCreateDate
()
);
if
(
barcode
.
getCreateDate
()
==
null
){
barcode
.
setCreateDate
(
createDate
);
}
...
...
@@ -194,6 +191,16 @@ public class ManualStorTransferController {
generatePutInTask
(
barcode
,
boxBarcode
,
OP_STATUS
.
FINISHED
.
name
(),
""
);
boxBarcode
.
updateSubCodes
(
barcode
);
boxBarcode
.
setAmount
(
boxBarcode
.
getAmount
()
+
barcode
.
getAmount
());
//同时修改当前入库时间
for
(
Barcode
subCode
:
boxBarcode
.
getSubCodeList
())
{
if
(
newPartition
.
equals
(
subCode
.
getPosName
())){
subCode
.
setPutInTime
(
createDate
);
subCode
.
setCreateDate
(
createDate
);
barcodeManager
.
save
(
subCode
);
}
}
barcodeManager
.
save
(
boxBarcode
);
if
(
inPos
!=
null
)
{
//流程异常时,为保证数据一致性, pos中的box barcode也需要更新
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
查看文件 @
6e76cd1
...
...
@@ -633,9 +633,9 @@ public class BoxHandleUtil {
}
public
static
Date
getCreateDate
(
Barcode
boxBarcode
,
String
binCode
)
{
public
static
Date
getCreateDate
(
Barcode
boxBarcode
,
String
binCode
,
Date
createDate
)
{
Date
createDate
=
new
Date
();
//
Date createDate = new Date();
List
<
Barcode
>
subCodeList
=
boxBarcode
.
getSubCodeList
();
if
(
subCodeList
!=
null
&&
!
subCodeList
.
isEmpty
())
{
for
(
Barcode
barcode
:
subCodeList
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论