Compare commits

..

No commits in common. "179322612bae96173bb8b9a86cf17a0d6b42edc3" and "bd0c4a4482eaf5e9f4471b62439373e582d0485c" have entirely different histories.

5 changed files with 9 additions and 35 deletions

View File

@ -221,6 +221,7 @@ public class IncomingInspectionTaskControllerService {
.setCalculatedAqlType(aqlType.getLeft())
.setUsedAqlType(aqlType.getLeft())
.setTriggerCategory(aqlType.getRight())
.setTriggerTime(LocalDateTime.now())
);
}
@ -341,6 +342,7 @@ public class IncomingInspectionTaskControllerService {
.setCalculatedAqlType(aqlType.getLeft())
.setUsedAqlType(aqlType.getLeft())
.setTriggerCategory(aqlType.getRight())
.setTriggerTime(LocalDateTime.now())
);
}
@ -989,8 +991,8 @@ public class IncomingInspectionTaskControllerService {
updateWrapper.update();
if (request.getQualified()) {
wmsIncomingInspectionTaskCallbackService.processAsync(task.getId(), (short) 0);
if (task.getInspectionResult()) {
wmsIncomingInspectionTaskCallbackService.process(task.getId());
} else {
issueTicketControllerService.initiate(task.getId());
}

View File

@ -46,6 +46,7 @@ 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));

View File

@ -28,16 +28,4 @@ public class DepartmentAddQO {
* 是否启用
*/
private Boolean enable;
/**
* 部门负责人id
*/
@NotNull
private Long headUserId;
/**
* 部门负责人姓名
*/
@NotBlank
private String headUserName;
}

View File

@ -1,7 +1,5 @@
package com.nflg.wms.common.pojo.vo;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.time.LocalDateTime;
@ -48,16 +46,6 @@ public class DepartmentVO {
*/
private Boolean enable;
/**
* 部门负责人id
*/
private Long headUserId;
/**
* 部门负责人姓名
*/
private String headUserName;
/**
* 创建人
*/

View File

@ -770,15 +770,10 @@ public class MaterialCodeController extends BaseController {
.toList();
VUtil.trueThrowBusinessError(materialIds.isEmpty()).throwMessage("物料ID不能为空");
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("未查询到物料信息");
// 根据前端传入的物料ID查询对应的物料编号再查询物料主数据
List<WmsShipmentMaterialCodeItem> materialCodeItems = materialCodeItemService.lambdaQuery()
.in(WmsShipmentMaterialCodeItem::getId, materialIds)
.list();
List<String> materialNos = materialCodeItems.stream()
.map(WmsShipmentMaterialCodeItem::getMaterialNo)