| | |
| | | <if test="weekCycle != null and weekCycle != ''"> and week_cycle like concat('%', #{weekCycle}, '%')</if> |
| | | <if test="mainPartNumber != null and mainPartNumber != ''"> and main_part_number like concat('%', #{mainPartNumber}, '%')</if> |
| | | <if test="mainPartDrawingNumber != null and mainPartDrawingNumber != ''"> and main_part_drawing_number like concat('%', #{mainPartDrawingNumber}, '%')</if> |
| | | <if test="customer != null and customer != ''"> and customer like concat('%', #{customer}, '%')</if> |
| | | <if test="customer != null and customer != ''"> and customer like '%' || #{customer} || '%'</if> |
| | | <if test="businessType != null and businessType != ''"> and business_type = #{businessType}</if> |
| | | <if test="documentNumber != null and documentNumber != ''"> and document_number like concat('%', #{documentNumber}, '%')</if> |
| | | <if test="documentNumber != null and documentNumber != ''"> and document_number like '%'|| #{documentNumber}|| '%'</if> |
| | | <if test="requirementType != null and requirementType != ''"> and requirement_type like concat('%', #{requirementType}, '%')</if> |
| | | <if test="documentStatus != null and documentStatus != ''"> and document_status = #{documentStatus}</if> |
| | | <if test="itemNumber != null and itemNumber != ''"> and item_number like concat('%', #{itemNumber}, '%')</if> |
| | |
| | | <if test="isStockComplete != null "> and is_stock_complete = #{isStockComplete}</if> |
| | | <if test="hasTurnback != null "> and has_turnback = #{hasTurnback}</if> |
| | | <if test="hasRisk != null "> and has_risk = #{hasRisk}</if> |
| | | and del_flag='0' |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="isStockComplete != null">is_stock_complete,</if> |
| | | <if test="hasTurnback != null">has_turnback,</if> |
| | | <if test="hasRisk != null">has_risk,</if> |
| | | create_time, |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | |
| | | <if test="isStockComplete != null">#{isStockComplete},</if> |
| | | <if test="hasTurnback != null">#{hasTurnback},</if> |
| | | <if test="hasRisk != null">#{hasRisk},</if> |
| | | #{createTime}, |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | from aps_plate_plan_temp |
| | | where batch_number = #{batch_number} |
| | | </insert> |
| | | |
| | | <update id="removeAllPlatePlans" parameterType="String"> |
| | | update aps_plate_plan set del_flag='1' where del_flag ='0' |
| | | </update> |
| | | |
| | | </mapper> |