| | |
| | | <include refid="selectApsGasPipingPlanVo"/> |
| | | <where> |
| | | <if test="masterPlanner != null and masterPlanner != ''"> and master_planner like concat('%', #{masterPlanner}, '%')</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 = #{documentNumber}</if> |
| | | <if test="documentNumber != null and documentNumber != ''"> and document_number like '%' || #{documentNumber} || '%'</if> |
| | | <if test="requirementType != null and requirementType != ''"> and requirement_type = #{requirementType}</if> |
| | | <if test="documentStatus != null and documentStatus != ''"> and document_status = #{documentStatus}</if> |
| | | <if test="itemNumber != null and itemNumber != ''"> and item_number = #{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> |
| | | |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="removeAllPlans" > |
| | | update aps_gas_piping_plan set del_flag='1' where del_flag ='0' |
| | | </update> |
| | | </mapper> |