huangjiayang
2025-04-24 ccbf509ba5d9028741eff7d7267e8c7f5b7d9fcc
aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml
@@ -23,10 +23,11 @@
        <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">
@@ -44,6 +45,7 @@
            <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>
    
@@ -72,6 +74,7 @@
            <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>
@@ -91,6 +94,7 @@
            <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>
@@ -114,6 +118,7 @@
            <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>