Compare commits

..

No commits in common. "260e533cc0b20819f12ca672f7e881bcd0cde27f" and "66f732bf66f45b697d1881a3a1adee670326a786" have entirely different histories.

8 changed files with 19 additions and 19 deletions

View File

@ -187,7 +187,7 @@ public class IncomingInspectionTaskControllerService {
// 7. 构建并保存来料检测任务
QmsIncomingInspectionTask task = new QmsIncomingInspectionTask()
.setRequestNo(request.getRequestNo())
.setCheckNo(request.getCheckNo())
.setTaskNo(taskNo)
.setMaterialId(material.getId())
.setInspectionStandardId(standard.getId())
@ -312,7 +312,7 @@ public class IncomingInspectionTaskControllerService {
// 7. 构建并保存库存检测任务存入来料检测任务表dataType=1
QmsIncomingInspectionTask task = new QmsIncomingInspectionTask()
.setRequestNo(request.getRequestNo())
.setCheckNo(request.getCheckNo())
.setTaskNo(taskNo)
.setMaterialId(material.getId())
.setInspectionStandardId(standard.getId())

View File

@ -113,14 +113,13 @@ public class QmsQcMaterialControllerService {
// 构建当前节点完整路径parentTree.id parentTree 为空则直接取 id
String fullPath = StrUtil.isBlank(category.getParentTree())
? String.valueOf(category.getId())
: category.getParentTree();
: category.getParentTree() + "." + category.getId();
// 一次查询自身 + 直接子节点parentTree=fullPath+ 孙级及更深parentTree LIKE 'fullPath.%'
// parent_tree ltree 类型需显式转为 text 才能与 varchar 比较
return qcMaterialCategoryService.lambdaQuery()
.eq(QmsQcMaterialCategory::getCategoryCode, categoryCode)
.or().apply("parent_tree::text = {0}", fullPath)
.or().apply("parent_tree::text LIKE {0}", fullPath + ".%")
.or().eq(QmsQcMaterialCategory::getParentTree, fullPath)
.or().likeRight(QmsQcMaterialCategory::getParentTree, fullPath + ".")
.list()
.stream()
.map(QmsQcMaterialCategory::getCategoryCode)

View File

@ -104,7 +104,8 @@ public class WmsIncomingInspectionTaskCallbackService {
private void inventory(QmsIncomingInspectionTaskVO taskVO, Short processingResult) {
WmsInventoryInspectionTaskCallbackQO qo = new WmsInventoryInspectionTaskCallbackQO()
.setTaskNo(taskVO.getTaskNo())
.setRequestNo(taskVO.getRequestNo())
.setCheckNo(taskVO.getCheckNo())
.setCheckNo(taskVO.getCheckNo())
.setMaterialNo(taskVO.getMaterialNo())
.setFactory(taskVO.getFactory())
.setWarehouse(taskVO.getWarehouse())

View File

@ -12,10 +12,10 @@ import lombok.Data;
public class ExternalIncomingInspectionApplyQO {
/**
* 请求单号第三方唯一编号
* 检验单号第三方唯一编号
*/
@NotBlank(message = "请求单号不能为空")
private String requestNo;
@NotBlank(message = "检验单号不能为空")
private String checkNo;
/**
* 物料编号必填

View File

@ -12,10 +12,10 @@ import lombok.Data;
public class ExternalInventoryInspectionApplyQO {
/**
* 请求单号第三方唯一编号
* 检验单号第三方唯一编号
*/
@NotBlank(message = "请求单号不能为空")
private String requestNo;
@NotBlank(message = "检验单号不能为空")
private String checkNo;
/**
* 物料编号必填

View File

@ -16,9 +16,9 @@ public class WmsInventoryInspectionTaskCallbackQO {
private String taskNo;
/**
* 请求单号第三方唯一编号
* 检验单号第三方唯一编号
*/
private String requestNo;
private String checkNo;
/**
* 物料编号

View File

@ -18,9 +18,9 @@ public class QmsIncomingInspectionTaskVO {
private String taskNo;
/**
* 请求单号第三方唯一编号
* 检验单号第三方唯一编号
*/
private String requestNo;
private String checkNo;
/**
* 物料id

View File

@ -38,9 +38,9 @@ public class QmsIncomingInspectionTask implements Serializable {
private String taskNo;
/**
* 请求单号第三方唯一编号
* 检验单号第三方唯一编号
*/
private String requestNo;
private String checkNo;
/**
* 物料id关联质检物料表