Browse Source
feat(inspection): 添加草稿编辑保存功能
feat(inspection): 添加草稿编辑保存功能
- 新增 editSave 接口支持验货申请草稿的完整编辑保存 - 创建 InspectionEditSaveVO 数据传输对象用于接收前端编辑数据 - 实现事务性操作确保删除/修改/新增明细的原子性处理 - 集成 PO 数量回滚机制避免库存锁定问题 - 支持基础信息(验货日期、地址、联系人)的同时更新 - 完善日志记录便于操作追踪和问题排查master
4 changed files with 118 additions and 0 deletions
-
9src/main/java/com/xujie/modules/inspection/controller/InspectionController.java
-
50src/main/java/com/xujie/modules/inspection/data/InspectionEditSaveVO.java
-
5src/main/java/com/xujie/modules/inspection/service/InspectionRequestService.java
-
54src/main/java/com/xujie/modules/inspection/service/impl/InspectionRequestServiceImpl.java
@ -0,0 +1,50 @@ |
|||
package com.xujie.modules.inspection.data; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 草稿编辑保存VO(前端传入编辑后的完整明细最终状态) |
|||
*/ |
|||
@Data |
|||
public class InspectionEditSaveVO { |
|||
|
|||
/** |
|||
* 申请单号 |
|||
*/ |
|||
private String requestNo; |
|||
|
|||
/** |
|||
* 站点/工厂编码 |
|||
*/ |
|||
private String site; |
|||
|
|||
/** |
|||
* 编辑后的完整PO明细列表(最终状态,包含所有保留和新增的明细) |
|||
*/ |
|||
private List<InspectionRequestItemVO> items; |
|||
|
|||
/** |
|||
* 建议验货日期 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date needInspectDate; |
|||
|
|||
/** |
|||
* 验货地址 |
|||
*/ |
|||
private String inspectAddress; |
|||
|
|||
/** |
|||
* 验货地址ID |
|||
*/ |
|||
private String inspectAddressId; |
|||
|
|||
/** |
|||
* 联系人 |
|||
*/ |
|||
private String inspectContract; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue