fix:重新报工,按Sn号查询
This commit is contained in:
@@ -122,6 +122,9 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
||||
throw new BadRequestException("MES推送需求单失败,需求单已存在");
|
||||
}
|
||||
for (PmDemandParam pmDemandParam : param) {
|
||||
if (Objects.equals(pmDemandParam.getStatus(), "1")){
|
||||
pmDemandParam.setStatus(DemandStatus.CANCEL.getValue());
|
||||
}
|
||||
this.create(pmDemandParam);
|
||||
}
|
||||
}
|
||||
@@ -173,6 +176,9 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
||||
if (demand == null) {
|
||||
throw new BadRequestException("需求单不存在");
|
||||
}
|
||||
if (Objects.equals(demand.getStatus(), DemandStatus.FINISH.getValue())){
|
||||
throw new BadRequestException("单据已完成不允许分配");
|
||||
}
|
||||
demand.setInventory_dis(inventoryDis);
|
||||
demand.setStatus(DemandStatus.DIS.getValue());
|
||||
this.updateById(demand);
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -151,7 +150,8 @@ public class ReceiveOutReturnController {
|
||||
}
|
||||
|
||||
@PostMapping("/reSubmit")
|
||||
public ResponseEntity reSubmit(HashSet<String> ids){
|
||||
@Log("重新提交报工")
|
||||
public ResponseEntity reSubmit(@RequestBody Set<String> ids){
|
||||
receiveOutReturnService.reSubmit(ids);
|
||||
return ResponseData.build();
|
||||
}
|
||||
|
||||
@@ -2,12 +2,16 @@ package org.nl.wms.warehouse_manage.stockReturn.receiveOutRetur.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ReceiveOutReturnQuery {
|
||||
private String billno;
|
||||
private String orgno;
|
||||
private String sn;
|
||||
private String status;
|
||||
private String requestId;
|
||||
private String beginTime;
|
||||
private String endTime;
|
||||
private List<String> workArea;
|
||||
}
|
||||
|
||||
@@ -109,6 +109,12 @@ public class ReceiveOutReturnServiceImpl extends ServiceImpl<ReceiveOutReturnMap
|
||||
if (StringUtils.hasText(query.getStatus())) {
|
||||
wrapper.lambda().eq(ReceiveOutReturn::getStatus, query.getStatus());
|
||||
}
|
||||
if (query.getWorkArea() != null && !query.getWorkArea().isEmpty()) {
|
||||
wrapper.lambda().in(ReceiveOutReturn::getWorkArea, query.getWorkArea());
|
||||
}
|
||||
if (StringUtils.hasText(query.getSn())) {
|
||||
wrapper.lambda().eq(ReceiveOutReturn::getSn, query.getSn());
|
||||
}
|
||||
if (StringUtils.hasText(query.getRequestId())) {
|
||||
wrapper.lambda().like(ReceiveOutReturn::getRequestId, query.getRequestId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user