Commit 46a262c7 by lijingjing

修改进场物资没有状态路径问题;

parent a75d69f3
...@@ -447,6 +447,12 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> ...@@ -447,6 +447,12 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if (null == entrust.getMaterialId() && null != materialId) { if (null == entrust.getMaterialId() && null != materialId) {
entrust.setMaterialId(materialId); entrust.setMaterialId(materialId);
} }
// 状态路径为空,物料ID不为空,查询样本库
if (StringUtils.isBlank(entrust.getStatusPath()) && Objects.nonNull(entrust.getMaterialId())) {
Material material = materialService.getById(entrust.getMaterialId());
entrust.setStatusPath(material.getEntrustStatusPath());
}
if (null == entrust.getEntrustTime()) { if (null == entrust.getEntrustTime()) {
entrust.setEntrustTime(new Date()); entrust.setEntrustTime(new Date());
} }
......
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