Commit 3d2a9de4 by 王志超

feat: 根据商品查询供应商并集

parent 5041ed5e
Pipeline #86040 passed with stages
in 1 minute 23 seconds
...@@ -249,14 +249,11 @@ public class ChangeFlowBiz { ...@@ -249,14 +249,11 @@ public class ChangeFlowBiz {
List<ChangeExecConfigReq> changeExecProject = changeFlowCreateReq.getChangeExecProject(); List<ChangeExecConfigReq> changeExecProject = changeFlowCreateReq.getChangeExecProject();
Assert.isTrue(changeExecProject.size() <= appConfig.getChangeExecLimit(), Assert.isTrue(changeExecProject.size() <= appConfig.getChangeExecLimit(),
"变更行动方案配置数超限"); "变更行动方案配置数超限");
// 校验变更行动方案中是否有重复的变更行动人
validateDuplicateChangeExecUser(changeExecProject);
// 结束时间不可晚于第二天定时任务执行时间 // 结束时间不可晚于第二天定时任务执行时间
Long tomorrowSpecificTime = DateUtils.getTomorrowSpecificTime("00:00:00"); Long tomorrowSpecificTime = DateUtils.getTomorrowSpecificTime("00:00:00");
if (changeFlowCreateReq.getCreateSource() != 2) {
if (changeFlowCreateReq.getChangeConfirmResultTime() == null) {
throw ExceptionFactory.createBiz(ResponseCode.BAD_REQUEST, "变更结果确认时间不能为空");
}
Assert.isTrue(changeFlowCreateReq.getChangeConfirmResultTime() >= tomorrowSpecificTime, "时间不可晚于下次执行时间"); Assert.isTrue(changeFlowCreateReq.getChangeConfirmResultTime() >= tomorrowSpecificTime, "时间不可晚于下次执行时间");
}
// 构建工单内容 // 构建工单内容
Map<String, Object> content = buildFlowContent(uid); Map<String, Object> content = buildFlowContent(uid);
// 构建变更类型 // 构建变更类型
......
...@@ -29,7 +29,7 @@ public class ChangeExecConfigReq { ...@@ -29,7 +29,7 @@ public class ChangeExecConfigReq {
private Long changeTemplateId; private Long changeTemplateId;
/** /**
* 变更执行部门名 * 变更行动部门,(历史字段:变更执行部门名),改
*/ */
@NotBlank(message = "变更执行部门名不能为空") @NotBlank(message = "变更执行部门名不能为空")
private String changeExecDepartment; private String changeExecDepartment;
...@@ -65,7 +65,7 @@ public class ChangeExecConfigReq { ...@@ -65,7 +65,7 @@ public class ChangeExecConfigReq {
private String changeChecking; private String changeChecking;
/** /**
* 行动完成时间 * 变更完成时间(历史字段:行动完成时间),改
*/ */
private Long changeExecFinishTime; private Long changeExecFinishTime;
......
...@@ -120,9 +120,9 @@ public class ChangeFlowCreateReq { ...@@ -120,9 +120,9 @@ public class ChangeFlowCreateReq {
private String changeProfitDesc; private String changeProfitDesc;
/** /**
* 变更结果确认时间 * 预计变更切换时间,(历史字段:变更结果确认时间),改
*/ */
//@NotNull(message = "变更结果确认时间不能为空") @NotNull(message = "预计变更切换时间不能为空")
private Long changeConfirmResultTime; private Long changeConfirmResultTime;
/** /**
...@@ -152,4 +152,11 @@ public class ChangeFlowCreateReq { ...@@ -152,4 +152,11 @@ public class ChangeFlowCreateReq {
* 变更收益金额 * 变更收益金额
*/ */
private String changeProfitAmount; private String changeProfitAmount;
/**
* 批次说明,new
*/
@Size(max = 500, message = "批次说明限500字")
private String batchDescription
;
} }
\ No newline at end of file
...@@ -96,6 +96,9 @@ public class SupplierController { ...@@ -96,6 +96,9 @@ public class SupplierController {
log.info("[querySupplierByItemIds] 元数据 itemIds={}, itemSupplierList={}", log.info("[querySupplierByItemIds] 元数据 itemIds={}, itemSupplierList={}",
JSON.toJSONString(itemIds), JSON.toJSONString(itemSupplierList)); JSON.toJSONString(itemIds), JSON.toJSONString(itemSupplierList));
String detail = supplierSendService.queryGoodsPurchase(itemIds);
log.info("[queryGoodsCommander] purchase:{}", detail);
if (CollectionUtils.isEmpty(itemSupplierList)) { if (CollectionUtils.isEmpty(itemSupplierList)) {
return AjaxResult.success(new ArrayList<>()); return AjaxResult.success(new ArrayList<>());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment