bug尝试修复

This commit is contained in:
2025-08-01 14:25:14 +08:00
parent e329f3a48c
commit 7fd3a235eb
2 changed files with 6 additions and 1 deletions

View File

@@ -340,6 +340,11 @@ public class IndustryStepServiceImpl implements IIndustryStepService {
s7PLC.writeBoolean("DB15.0.3", false);
}
// 将此批次所有的进行中全部更新成 operation = 0
IndustryStep newStep = new IndustryStep();
newStep.setBatchId(industryMaterial.getBatchId());
newStep.setOperation(0L);
industryStepMapper.updateAllIndustryStepByBatchId(newStep);
industryStep.setStep(smallStep.getStep());
industryStep.setOperation(1L);
industryStep.setState(null);

View File

@@ -267,7 +267,7 @@
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where step = #{step} and del_flag = 1
where step = #{step} and del_flag = 1 and batch_id = #{batchId}
</update>
<update id="start" parameterType="IndustryStep">
update industry_step