Fancy
2024-07-23 00ef571f12414e065868d6a9ce37e494b57958e5
login change
1个文件已修改
36 ■■■■■ 已修改文件
pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-global/src/main/resources/mapper/StaAssemblyWorkLastMapper.xml
@@ -297,7 +297,41 @@
            </if>
        </where>
    </select>
    <select id="existsEntity" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from sta_assembly_work_last
        where user_id = #{userId,jdbcType=BIGINT}
        and station_id = #{stationId,jdbcType=BIGINT}
        <choose>
            <when test="planId != null">
                and plan_id = #{planId,jdbcType=BIGINT}
            </when>
            <otherwise>
                and plan_id is null
            </otherwise>
        </choose>
        <choose>
            <when test="processId != null">
                and process_id = #{processId,jdbcType=BIGINT}
            </when>
            <otherwise>
                and process_id is null
            </otherwise>
        </choose>
        <choose>
            <when test="nodeId != null">
                and node_id = #{nodeId,jdbcType=BIGINT}
            </when>
            <otherwise>
                and node_id is null
            </otherwise>
        </choose>
        and work_type = #{workType,jdbcType=TINYINT}
        <if test="id != null">
            and id != #{id,jdbcType=BIGINT}
        </if>
    </select>
    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
        delete
        from sta_assembly_work_last