Compare commits

...

6 Commits

Author SHA1 Message Date
funny 179322612b Merge branch 'qms/yf' into qms/develop
# Conflicts:
#	nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/Department.java
2026-05-06 10:45:48 +08:00
曹鹏飞 f78efcabf0 Merge branch 'develop' into qms/develop 2026-05-06 10:40:43 +08:00
曹鹏飞 b2f1b60f3d feat(department): 添加部门负责人信息字段
- 在Department实体中新增headUserId和headUserName字段
- 在DepartmentAddQO中添加负责人id和姓名,分别标注@NotNull和@NotBlank校验
- 在DepartmentVO中新增部门负责人相关属性
- 更新相关注释以说明新增字段含义
2026-05-06 09:24:42 +08:00
曹鹏飞 7ed82ff904 fix(service): 修正入库检验任务处理逻辑和HTTP请求头部
- 根据请求合格状态异步处理入库检验任务回调
- 修正旧逻辑中无条件同步处理回调的问题
- 移除HTTP请求中不必要的Authorization头部设置
- 优化相关服务调用流程,避免潜在的授权问题
2026-04-30 15:17:41 +08:00
曹鹏飞 0a9d8e91a8 refactor(service): 移除 IncomingInspectionTaskControllerService 中无用的 triggerTime 设置
- 删除了多处对 triggerTime 属性的赋值代码
- 简化了 IncomingInspectionTaskControllerService 的代码逻辑
- 避免了不必要的时间戳设置操作
- 保持代码一致性和清晰度
2026-04-29 16:58:41 +08:00
funny 593aa7518d 新增一个数据判断 2026-04-24 09:15:37 +08:00
5 changed files with 35 additions and 9 deletions

View File

@ -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());
}

View File

@ -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));

View File

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

View File

@ -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;
/**
* 创建人
*/

View File

@ -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)