XiaoRuby
2023-09-04 f1400115f582ae795913e360c0f5a70ea4513544
production-server/src/main/resources/mapper/ManufactureSchedulingMapper.xml
@@ -9,6 +9,7 @@
        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">
@@ -18,6 +19,7 @@
        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>
@@ -27,6 +29,7 @@
        <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">
@@ -35,5 +38,15 @@
        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>