| | |
| | | <if test="softwareVersionCode != null and softwareVersionCode != ''"> and software_version_code like concat('%', #{softwareVersionCode}, '%')</if> |
| | | <if test="productCompanyCode != null and productCompanyCode != ''"> and product_company_code like concat('%', #{productCompanyCode}, '%')</if> |
| | | <if test="productionNotice != null and productionNotice != ''"> and production_notice like concat('%', #{productionNotice}, '%')</if> |
| | | <if test="dateConditions != null and dateConditions != ''"> and create_time BETWEEN #{startTime} AND #{endTime}</if> |
| | | |
| | | </where> |
| | | ORDER BY stream_number DESC |
| | |
| | | <include refid="selectOmProductionOrdeInfoVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectOmProductionOrdeInfoByIds" parameterType="String" resultMap="OmProductionOrdeInfoResult"> |
| | | select type_z,product_code,line_code,route_code, bom_code, recipe_code, sum(plan_qty) plan_qty,serial_number, order_status from om_production_orde_info |
| | | where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | GROUP BY type_z,product_code,line_code,route_code, bom_code, recipe_code,serial_number, order_status |
| | | </select> |
| | | |
| | | <insert id="insertOmProductionOrdeInfo" parameterType="OmProductionOrdeInfo"> |
| | | insert into om_production_orde_info |