处理单据时显示工位存量和拆零存量

dev_no_inv
yewj 10 months ago
parent 259a53f5fb
commit 6bee8dcc47

@ -213,6 +213,19 @@ public class IoCollectOrderBiz implements Serializable {
@ApiModelProperty(value = "autoTagStatus")
private Integer autoTagStatus;
/**
*
*/
@TableField(value = "tempWorkPlaceCount")
@ApiModelProperty(value = "tempWorkPlaceCount")
private Integer tempWorkPlaceCount;
/**
*
*/
@TableField(value = "tempSplitCount")
@ApiModelProperty(value = "tempSplitCount")
private Integer tempSplitCount;
@TableField(value = "searchRemark1")
@ApiModelProperty(value = "searchRemark1")
private String searchRemark1;

@ -1,5 +1,7 @@
package com.glxp.api.res.collect;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@ -132,4 +134,13 @@ public class CollectOrderBizResponse {
* 123:
*/
private Integer autoTagStatus;
/**
*
*/
private Integer tempWorkPlaceCount;
/**
*
*/
private Integer tempSplitCount;
}

@ -515,12 +515,13 @@ public class IoSplitCodeService extends ServiceImpl<IoSplitCodeMapper, IoSplitCo
int total = splitFifoCodeEntities.stream()
.mapToInt(IoSplitFifoCodeEntity::getTotalCount)
.sum();
collectOrderBiz.setTempWorkPlaceCount(total);
List<IoSplitCodeEntity> splitCodeEntities = splitCodeService.findSplitCodes(collectOrderBiz.getRelId()
, collectOrderBiz.getBatchNo(), collectOrder.getWorkPlaceCode());
int splitTotal = splitCodeEntities.stream()
.mapToInt(IoSplitCodeEntity::getRemainCount)
.sum();
collectOrderBiz.setTempSplitCount(splitTotal);
total = total + splitTotal;
if (total >= IntUtil.value(collectOrderBiz.getCount())) {
collectOrderBiz.setAutoTagStatus(2);

@ -4371,3 +4371,14 @@ CALL Pro_Temp_ColumnWork('sys_workplace_document', 'isPopular',
CALL Pro_Temp_ColumnWork('sys_workplace_document', 'number',
'int NULL DEFAULT NULL COMMENT ''顺序号''',
1);
CALL Pro_Temp_ColumnWork('io_collect_order_biz', 'tempWorkPlaceCount',
'int NULL DEFAULT NULL COMMENT ''临时工位存量''',
1);
CALL Pro_Temp_ColumnWork('io_collect_order_biz', 'tempSplitCount',
'int NULL DEFAULT NULL COMMENT ''临时拆零存量''',
1);

Loading…
Cancel
Save