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