| | |
| | | <if test="c.productOrderId != null and c.productOrderId != ''"> |
| | | and pwo.product_order_id = #{c.productOrderId} |
| | | </if> |
| | | order by pwo.priority |
| | | </select> |
| | | <select id="getProductWorkOrderFlowCard" resultType="com.ruoyi.production.dto.ProductWorkOrderDto"> |
| | | SELECT |
| | |
| | | actual_start_time >= #{startDate} |
| | | AND actual_start_time <= #{endDate} |
| | | </select> |
| | | <select id="selectMax" resultType="com.ruoyi.production.pojo.ProductWorkOrder"> |
| | | SELECT SUBSTRING(work_order_no, 3) as work_order_no |
| | | FROM product_work_order |
| | | WHERE SUBSTRING(work_order_no, 3) like concat(#{datePrefix},'%') |
| | | order by work_order_no desc |
| | | limit 1 |
| | | ; |
| | | </select> |
| | | </mapper> |