| | |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="modelId" column="model_id" /> |
| | | <result property="workCalender" column="work_calender" /> |
| | | <result property="major" column="major" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsStandardProcessVo"> |
| | | select id, process_number, process_name, resource_group_name, model, design_capacity, plant_id, plant, work_shop_id, work_shop, work_calender_id, del_flag, create_by, create_time, update_by, update_time, model_id, work_calender from aps_standard_process |
| | | select id, process_number, process_name, resource_group_name, model, design_capacity, plant_id, plant, work_shop_id, work_shop, work_calender_id, del_flag, create_by, create_time, update_by, update_time, model_id, work_calender,major from aps_standard_process |
| | | </sql> |
| | | |
| | | <select id="selectApsStandardProcessList" parameterType="ApsStandardProcess" resultMap="ApsStandardProcessResult"> |
| | |
| | | <if test="workCalenderId != null "> and work_calender_id = #{workCalenderId}</if> |
| | | <if test="modelId != null "> and model_id = #{modelId}</if> |
| | | <if test="workCalender != null and workCalender != ''"> and work_calender = #{workCalender}</if> |
| | | <if test="major != null and major != ''"> and major = #{major}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="modelId != null">model_id,</if> |
| | | <if test="workCalender != null">work_calender,</if> |
| | | <if test="major != null">major,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="processNumber != null">#{processNumber},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="modelId != null">#{modelId},</if> |
| | | <if test="workCalender != null">#{workCalender},</if> |
| | | <if test="major != null">#{major},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="modelId != null">model_id = #{modelId},</if> |
| | | <if test="workCalender != null">work_calender = #{workCalender},</if> |
| | | <if test="major != null">major = #{major},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |