| | |
| | | <if test="dateConditions != null and dateConditions != ''"> and create_time BETWEEN #{startTime} AND #{endTime}</if> |
| | | |
| | | </where> |
| | | ORDER BY stream_number DESC |
| | | ORDER BY CAST(work_order_no AS BIGINT) DESC |
| | | </select> |
| | | |
| | | <select id="selectOmProductionOrdeInfoById" parameterType="Long" resultMap="OmProductionOrdeInfoResult"> |
| | |
| | | <select id="getMaxStreamNumber" resultType="Integer"> |
| | | SELECT MAX(stream_number) AS streamNumber FROM om_production_orde_info |
| | | </select> |
| | | <select id="selectOmProductionOrderListById" |
| | | resultMap="OmProductionOrdeInfoResult"> |
| | | <include refid="selectOmProductionOrdeInfoVo"/> |
| | | <where> |
| | | id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </where> |
| | | </select> |
| | | </mapper> |