| | |
| | | <result property="year" column="year" /> |
| | | <result property="month" column="month" /> |
| | | <result property="major" column="major" /> |
| | | <result property="workshop" column="workshop" /> |
| | | <result property="dayProduceType" column="day_produce_type" /> |
| | | <result property="dayProduceNum" column="day_produce_num" /> |
| | | <result property="dayProduceUnit" column="day_produce_unit" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsGasPipelineCapacityPlanVo"> |
| | | select id, process_name, year, month, major, day_produce_type, day_produce_num, day_produce_unit, personnel_number, day_produce_all_num, days, month_produce_all_num, remark, create_by, create_time, update_by, update_time, org_code from aps_gas_pipeline_capacity_plan |
| | | select id, process_name, year, month, major, workshop, day_produce_type, day_produce_num, day_produce_unit, personnel_number, day_produce_all_num, days, month_produce_all_num, remark, create_by, create_time, update_by, update_time, org_code from aps_gas_pipeline_capacity_plan |
| | | </sql> |
| | | |
| | | <select id="selectApsGasPipelineCapacityPlanList" parameterType="com.aps.core.domain.ApsGasPipelineCapacityPlan" resultMap="ApsGasPipelineCapacityPlanResult"> |
| | |
| | | <if test="year != null and year != ''"> and year = #{year}</if> |
| | | <if test="month != null and month != ''"> and month = #{month}</if> |
| | | <if test="major != null and major != ''"> and major = #{major}</if> |
| | | <if test="workshop != null and workshop != ''"> and workshop = #{workshop}</if> |
| | | <if test="dayProduceType != null and dayProduceType != ''"> and day_produce_type = #{dayProduceType}</if> |
| | | <if test="dayProduceNum != null "> and day_produce_num = #{dayProduceNum}</if> |
| | | <if test="dayProduceUnit != null and dayProduceUnit != ''"> and day_produce_unit = #{dayProduceUnit}</if> |
| | |
| | | <if test="year != null">year,</if> |
| | | <if test="month != null">month,</if> |
| | | <if test="major != null">major,</if> |
| | | <if test="workshop != null">workshop,</if> |
| | | <if test="dayProduceType != null">day_produce_type,</if> |
| | | <if test="dayProduceNum != null">day_produce_num,</if> |
| | | <if test="dayProduceUnit != null">day_produce_unit,</if> |
| | |
| | | <if test="year != null">#{year},</if> |
| | | <if test="month != null">#{month},</if> |
| | | <if test="major != null">#{major},</if> |
| | | <if test="workshop != null">workshop,</if> |
| | | <if test="dayProduceType != null">#{dayProduceType},</if> |
| | | <if test="dayProduceNum != null">#{dayProduceNum},</if> |
| | | <if test="dayProduceUnit != null">#{dayProduceUnit},</if> |
| | |
| | | <if test="year != null">year = #{year},</if> |
| | | <if test="month != null">month = #{month},</if> |
| | | <if test="major != null">major = #{major},</if> |
| | | <if test="workshop != null">workshop,</if> |
| | | <if test="dayProduceType != null">day_produce_type = #{dayProduceType},</if> |
| | | <if test="dayProduceNum != null">day_produce_num = #{dayProduceNum},</if> |
| | | <if test="dayProduceUnit != null">day_produce_unit = #{dayProduceUnit},</if> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <delete id="deleteByDateAndFactory" > |
| | | delete from aps_gas_pipeline_capacity_plan |
| | | where year = #{year} |
| | | and month = #{month} |
| | | and org_code = #{factory} |
| | | and major = #{major} |
| | | </delete> |
| | | </mapper> |