bug尝试修复
This commit is contained in:
@@ -340,6 +340,11 @@ public class IndustryStepServiceImpl implements IIndustryStepService {
|
|||||||
s7PLC.writeBoolean("DB15.0.3", false);
|
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.setStep(smallStep.getStep());
|
||||||
industryStep.setOperation(1L);
|
industryStep.setOperation(1L);
|
||||||
industryStep.setState(null);
|
industryStep.setState(null);
|
||||||
|
|||||||
@@ -267,7 +267,7 @@
|
|||||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
|
||||||
</trim>
|
</trim>
|
||||||
where step = #{step} and del_flag = 1
|
where step = #{step} and del_flag = 1 and batch_id = #{batchId}
|
||||||
</update>
|
</update>
|
||||||
<update id="start" parameterType="IndustryStep">
|
<update id="start" parameterType="IndustryStep">
|
||||||
update industry_step
|
update industry_step
|
||||||
|
|||||||
Reference in New Issue
Block a user