| | |
| | | scheduled_production, |
| | | DATE_FORMAT(downTime, '%Y-%m-%d') downTime, |
| | | DATE_FORMAT(delTime, '%Y-%m-%d') delTime, |
| | | go_state, |
| | | go_state |
| | | from mom_ocean.manufacture_order |
| | | where state=1 |
| | | <if test="downTime!=null and downTime!=''"> |
| | |
| | | and customer_code like concat('%',#{customerCode},'%') |
| | | </if> |
| | | <if test="type!=null"> |
| | | and type=#{type} |
| | | and go_state=#{type} |
| | | </if> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | <update id="deleteManufacture"> |
| | |
| | | SELECT m.`order_code`, m.`name`, m.`id` |
| | | FROM manufacture_order m |
| | | WHERE m.`state` = 1 |
| | | ORDER BY m.`create_time` DESC |
| | | </select> |
| | | |
| | | <update id="updateManufacture"> |