#
lsh
2024-06-25 f30358a20ae9a74ee7f6c604a8d102c1b9b24659
src/main/resources/mapper/WrkMastExecuteMapper.xml
@@ -25,13 +25,27 @@
    </resultMap>
    <select id="getWrkMastByWrkNo" resultMap="BaseResultMap">
    <select id="getWrkMastExecuteByWrkNo" resultMap="BaseResultMap">
        select top 1 * from jar_wrk_mast_execute
        where 1=1
        and jar_id = #{jarId}
    </select>
    <select id="getWrkMastExecuteByJarId" resultMap="BaseResultMap">
        select * from jar_wrk_mast_execute
        where 1=1
        and jar_id = #{jarId}
    </select>
    <select id="getWrkMastByJarIdCount" resultType="Integer">
    <select id="sselectWrkMastExecuteByType" resultMap="BaseResultMap">
        select * from jar_wrk_mast_execute
        where 1=1
        and type = #{type}
        and io_type = #{iotype}
        and wrk_type = 0;
    </select>
    <select id="getWrkMastExecuteByJarIdCount" resultType="Integer">
        select count(1) from jar_wrk_mast_execute
        where 1=1
        and jar_id = #{jarId}