| | |
| | | <if test="salesOrderCode != null and salesOrderCode != ''"> and sales_order_code = #{salesOrderCode}</if> |
| | | <if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if> |
| | | <if test="orderStatus != null and orderStatus != ''"> and order_status = #{orderStatus}</if> |
| | | and del_flag = "0" |
| | | and del_flag = 0 |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectOmProductionOrderInfoById" parameterType="Long" resultMap="OmProductionOrderInfoResult"> |
| | | <include refid="selectOmProductionOrderInfoVo"/> |
| | | where id = #{id} and del_flag = "0" |
| | | where id = #{id} and del_flag = 0 |
| | | </select> |
| | | |
| | | <insert id="insertOmProductionOrderInfo" parameterType="OmProductionOrderInfo" useGeneratedKeys="true" keyProperty="id"> |
| | |
| | | </update> |
| | | |
| | | <update id="deleteOmProductionOrderInfoById" parameterType="Long"> |
| | | update om_production_order_info set del_flag = "1" where id = #{id} |
| | | update om_production_order_info set del_flag = 1 where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteOmProductionOrderInfoByIds" parameterType="String"> |
| | | update om_production_order_info set del_flag = "1" where id in |
| | | update om_production_order_info set del_flag = 1 where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |