| | |
| | | FROM manufacture_scheduling m |
| | | WHERE m.`manufacture_order_id` = 3 |
| | | AND m.`state` = 1 |
| | | ORDER BY m.`create_time` DESC |
| | | </select> |
| | | |
| | | <select id="selectProduceTable" resultType="map"> |
| | |
| | | WHERE m.`manufacture_order_id` = #{manOrdId} |
| | | AND m.`manufacture_order_id` = o.`id` |
| | | AND m.`state` = 1 |
| | | AND m.`go_state` = 1 |
| | | <if test="productName != null and productName != ''"> |
| | | AND o.`name` LIKE CONCAT('%', #{productName}, '%') |
| | | </if> |
| | |
| | | <if test="endTime != null and endTime != ''"> |
| | | AND m.`end_time` <![CDATA[ <= ]]> #{endTime} |
| | | </if> |
| | | ORDER BY m.`create_time` DESC |
| | | </select> |
| | | |
| | | <select id="sePros" resultType="map"> |
| | |
| | | FROM manufacture_scheduling s, manufacture_order o |
| | | WHERE s.`manufacture_order_id` = o.`id` |
| | | AND s.`id` = #{schedulingId} |
| | | ORDER BY s.`create_time` DESC |
| | | </select> |
| | | |
| | | <select id="reportSelectScheduling" resultType="map"> |
| | | SELECT m.`id`, o.`customer_code`, o.`proname`, o.`name`, o.`specifications`, o.`unit`, m.`scheduled` |
| | | FROM manufacture_scheduling m, manufacture_order o |
| | | WHERE m.`state` = 1 |
| | | AND m.`manufacture_order_id` = o.`id` |
| | | AND m.`go_state` = 1 |
| | | ORDER BY m.`create_time` DESC |
| | | </select> |
| | | </mapper> |