fix: 自动呼叫套轴,改切计划找不到计划
This commit is contained in:
@@ -6,7 +6,10 @@
|
|||||||
resultType="org.nl.b_lms.sch.tasks.slitter.mapper.dto.SlitterPlanDistinctDto">
|
resultType="org.nl.b_lms.sch.tasks.slitter.mapper.dto.SlitterPlanDistinctDto">
|
||||||
SELECT
|
SELECT
|
||||||
p.resource_name,
|
p.resource_name,
|
||||||
p.parent_container_name,
|
CASE
|
||||||
|
WHEN LENGTH(p.parent_container_name) > 0 THEN p.parent_container_name
|
||||||
|
ELSE p.restruct_container_name
|
||||||
|
END AS parent_container_name,
|
||||||
p.split_group,
|
p.split_group,
|
||||||
p.up_or_down,
|
p.up_or_down,
|
||||||
p.qzz_size,
|
p.qzz_size,
|
||||||
@@ -69,7 +72,7 @@
|
|||||||
AND IFNULL(p.left_or_right,'') <![CDATA[ <> ]]> ''
|
AND IFNULL(p.left_or_right,'') <![CDATA[ <> ]]> ''
|
||||||
GROUP BY
|
GROUP BY
|
||||||
p.resource_name,
|
p.resource_name,
|
||||||
p.parent_container_name,
|
parent_container_name,
|
||||||
p.split_group,
|
p.split_group,
|
||||||
p.up_or_down,
|
p.up_or_down,
|
||||||
p.qzz_size,
|
p.qzz_size,
|
||||||
@@ -82,7 +85,7 @@
|
|||||||
num,
|
num,
|
||||||
cn,
|
cn,
|
||||||
p.resource_name,
|
p.resource_name,
|
||||||
p.parent_container_name,
|
parent_container_name,
|
||||||
p.split_group,
|
p.split_group,
|
||||||
p.up_or_down
|
p.up_or_down
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -156,6 +156,16 @@ public class AutoCallAirShaftTask {
|
|||||||
.eq(PdmBiSlittingproductionplan::getSplit_group, planDto.getSplit_group())
|
.eq(PdmBiSlittingproductionplan::getSplit_group, planDto.getSplit_group())
|
||||||
.eq(PdmBiSlittingproductionplan::getIs_delete, SlitterConstant.SLITTER_NO)
|
.eq(PdmBiSlittingproductionplan::getIs_delete, SlitterConstant.SLITTER_NO)
|
||||||
.eq(PdmBiSlittingproductionplan::getIs_paper_ok, SlitterConstant.SLITTER_YES));
|
.eq(PdmBiSlittingproductionplan::getIs_paper_ok, SlitterConstant.SLITTER_YES));
|
||||||
|
if (needPlans.size() == 0) {
|
||||||
|
// 可能是改切,所以换成restruct_container_name来使用
|
||||||
|
needPlans = slittingproductionplanService.list(new LambdaQueryWrapper<PdmBiSlittingproductionplan>()
|
||||||
|
.eq(PdmBiSlittingproductionplan::getResource_name, planDto.getResource_name())
|
||||||
|
.eq(PdmBiSlittingproductionplan::getRestruct_container_name, planDto.getParent_container_name())
|
||||||
|
.eq(PdmBiSlittingproductionplan::getUp_or_down, planDto.getUp_or_down())
|
||||||
|
.eq(PdmBiSlittingproductionplan::getSplit_group, planDto.getSplit_group())
|
||||||
|
.eq(PdmBiSlittingproductionplan::getIs_delete, SlitterConstant.SLITTER_NO)
|
||||||
|
.eq(PdmBiSlittingproductionplan::getIs_paper_ok, SlitterConstant.SLITTER_YES));
|
||||||
|
}
|
||||||
// 获取其中一条
|
// 获取其中一条
|
||||||
PdmBiSlittingproductionplan needPlan = needPlans.get(0);
|
PdmBiSlittingproductionplan needPlan = needPlans.get(0);
|
||||||
String qzzSize = needPlan.getQzz_size();
|
String qzzSize = needPlan.getQzz_size();
|
||||||
|
|||||||
Reference in New Issue
Block a user