feat(wms): 在操作记录中添加合卷之后的钢卷
- 在 IWmsMaterialCoilService 中新增 mergeCoils 方法实现合卷操作 - 扩展 WmsMaterialCoilBo 类添加 actionId、actionType 和 mergedCoilId 字段 - 在 WmsMaterialCoilController 中添加 /merge 接口支持合卷新功能 - 实现合卷逻辑为 newCoils 中每个被合的卷添加 actionId 和 actionType - 支持通过 actionId 更新操作记录状态并设置完成时间 - 实现合卷后新钢卷 ID 的返回和操作记录的自动创建更新
This commit is contained in:
@@ -126,6 +126,21 @@ public class WmsMaterialCoilBo extends BaseEntity {
|
||||
*/
|
||||
private List<WmsMaterialCoilBo> newCoils;
|
||||
|
||||
/**
|
||||
* 操作记录ID(用于合卷操作关联)
|
||||
*/
|
||||
private Long actionId;
|
||||
|
||||
/**
|
||||
* 操作类型(1=分卷,2=合卷,3=更新)
|
||||
*/
|
||||
private Integer actionType;
|
||||
|
||||
/**
|
||||
* 合卷后的新钢卷ID(用于返回)
|
||||
*/
|
||||
private Long mergedCoilId;
|
||||
|
||||
//时间格式化
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
|
||||
Reference in New Issue
Block a user