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

View File

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

View File

@ -28,16 +28,4 @@ public class DepartmentAddQO {
* 是否启用 * 是否启用
*/ */
private Boolean enable; 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; 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;
@ -48,16 +46,6 @@ public class DepartmentVO {
*/ */
private Boolean enable; private Boolean enable;
/**
* 部门负责人id
*/
private Long headUserId;
/**
* 部门负责人姓名
*/
private String headUserName;
/** /**
* 创建人 * 创建人
*/ */

View File

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