保养工单状态变更、计划查询顺序

orign^2
wws 1 year ago
parent 994b2e3af2
commit 345910f457

@ -256,7 +256,9 @@ public class EquOrderServiceImpl implements IEquOrderService {
} }
// 更新工单信息 // 更新工单信息
equOrder.setOrderStatus("1"); // 状态为已完成 if (!equOrder.getPlanType().equals("maintenance")) {
equOrder.setOrderStatus("1"); // 状态为已完成
}
equOrder.setUpdateTime(DateUtils.getNowDate()); equOrder.setUpdateTime(DateUtils.getNowDate());
equOrder.setUpdateBy(SecurityContextHolder.getUserName()); equOrder.setUpdateBy(SecurityContextHolder.getUserName());
equOrder.setPlanPerson(SecurityContextHolder.getUserName()); equOrder.setPlanPerson(SecurityContextHolder.getUserName());

@ -87,6 +87,7 @@
<if test="getLoopEndArrayEnd != null "> and #{getLoopEndArrayEnd} >= CONVERT(date,plan_loop_end)</if> <if test="getLoopEndArrayEnd != null "> and #{getLoopEndArrayEnd} >= CONVERT(date,plan_loop_end)</if>
and del_flag = '0' and del_flag = '0'
</where> </where>
order by create_time desc
</select> </select>
<select id="selectEquPlanByPlanId" parameterType="String" resultMap="EquPlanResult"> <select id="selectEquPlanByPlanId" parameterType="String" resultMap="EquPlanResult">

Loading…
Cancel
Save