Compare commits
6 Commits
bd0c4a4482
...
179322612b
| Author | SHA1 | Date |
|---|---|---|
|
|
179322612b | |
|
|
f78efcabf0 | |
|
|
b2f1b60f3d | |
|
|
7ed82ff904 | |
|
|
0a9d8e91a8 | |
|
|
593aa7518d |
|
|
@ -221,7 +221,6 @@ public class IncomingInspectionTaskControllerService {
|
|||
.setCalculatedAqlType(aqlType.getLeft())
|
||||
.setUsedAqlType(aqlType.getLeft())
|
||||
.setTriggerCategory(aqlType.getRight())
|
||||
.setTriggerTime(LocalDateTime.now())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -342,7 +341,6 @@ public class IncomingInspectionTaskControllerService {
|
|||
.setCalculatedAqlType(aqlType.getLeft())
|
||||
.setUsedAqlType(aqlType.getLeft())
|
||||
.setTriggerCategory(aqlType.getRight())
|
||||
.setTriggerTime(LocalDateTime.now())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -991,8 +989,8 @@ public class IncomingInspectionTaskControllerService {
|
|||
|
||||
updateWrapper.update();
|
||||
|
||||
if (task.getInspectionResult()) {
|
||||
wmsIncomingInspectionTaskCallbackService.process(task.getId());
|
||||
if (request.getQualified()) {
|
||||
wmsIncomingInspectionTaskCallbackService.processAsync(task.getId(), (short) 0);
|
||||
} else {
|
||||
issueTicketControllerService.initiate(task.getId());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ public class WmsApiService {
|
|||
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||
headers.add("Authorization", StpUtil.getTokenValue());
|
||||
HttpEntity<T> requestEntity = new HttpEntity<>(body, headers);
|
||||
|
||||
log.info("{},URL: {},数据: {}", bizDesc, fullUrl, JSONUtil.toJsonStr(body));
|
||||
|
|
|
|||
|
|
@ -28,4 +28,16 @@ public class DepartmentAddQO {
|
|||
* 是否启用
|
||||
*/
|
||||
private Boolean enable;
|
||||
|
||||
/**
|
||||
* 部门负责人id
|
||||
*/
|
||||
@NotNull
|
||||
private Long headUserId;
|
||||
|
||||
/**
|
||||
* 部门负责人姓名
|
||||
*/
|
||||
@NotBlank
|
||||
private String headUserName;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
package com.nflg.wms.common.pojo.vo;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
|
@ -46,6 +48,16 @@ public class DepartmentVO {
|
|||
*/
|
||||
private Boolean enable;
|
||||
|
||||
/**
|
||||
* 部门负责人id
|
||||
*/
|
||||
private Long headUserId;
|
||||
|
||||
/**
|
||||
* 部门负责人姓名
|
||||
*/
|
||||
private String headUserName;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -770,10 +770,15 @@ public class MaterialCodeController extends BaseController {
|
|||
.toList();
|
||||
VUtil.trueThrowBusinessError(materialIds.isEmpty()).throwMessage("物料ID不能为空");
|
||||
|
||||
// 根据前端传入的物料ID查询对应的物料编号再查询物料主数据
|
||||
List<WmsShipmentMaterialCodeItem> materialCodeItems = materialCodeItemService.lambdaQuery()
|
||||
.in(WmsShipmentMaterialCodeItem::getId, materialIds)
|
||||
.list();
|
||||
List<WmsShipmentMaterialCodeItem> materialCodeItems;
|
||||
if (CollectionUtil.isNotEmpty(materialIds)) {
|
||||
materialCodeItems = materialCodeItemService.lambdaQuery()
|
||||
.in(WmsShipmentMaterialCodeItem::getId, materialIds)
|
||||
.list();
|
||||
} else {
|
||||
materialCodeItems = new ArrayList<>();
|
||||
}
|
||||
VUtil.trueThrowBusinessError(CollectionUtil.isEmpty(materialCodeItems)).throwMessage("未查询到物料信息");
|
||||
|
||||
List<String> materialNos = materialCodeItems.stream()
|
||||
.map(WmsShipmentMaterialCodeItem::getMaterialNo)
|
||||
|
|
|
|||
Loading…
Reference in New Issue