#
zjj
2024-09-06 f9a4e6ce9b400a30aeac6d91831e8785368ea839
src/main/resources/mapper/WrkMastStaMapper.xml
@@ -18,7 +18,35 @@
        <result column="wrk_type" property="wrkType" />
        <result column="bign_time" property="bignTime" />
        <result column="wrk_crn" property="wrkCrn" />
        <result column="wrk_no2" property="wrkNo2"/>
        <result column="matnr1" property="matnr1"/>
        <result column="matnr2" property="matnr2"/>
        <result column="type2" property="type2"/>
        <result column="batch" property="batch"/>
        <result column="batch2" property="batch2"/>
        <result column="anfme" property="anfme"/>
        <result column="anfme2" property="anfme2"/>
    </resultMap>
    <select id="selectByRgvNoandWrkNo" resultMap="BaseResultMap">
        select * from asr_wrk_mast_sta
        where wrk_crn = #{rgvNo} and wrk_no = #{taskNo} and wrk_sts = 1
    </select>
    <select id="selectByRgvNoandWrkNo2" resultMap="BaseResultMap">
        select * from asr_wrk_mast_sta
        where wrk_crn = #{rgvNo} and wrk_no2 = #{taskNo2} and wrk_sts = 1
    </select>
    <select id="selectBywrkNoHistoricalTasks" resultMap="BaseResultMap">
        select * from asr_wrk_mast_sta
        where wrk_crn = #{rgvNo} and wrk_no = #{taskNo1}
    </select>
    <select id="selectBywrkNoHistoricalTasks2" resultMap="BaseResultMap">
        select * from asr_wrk_mast_sta
        where wrk_crn = #{rgvNo} and  wrk_no2 = #{taskNo2}
    </select>
    <select id="selectRGVTask1" resultMap="BaseResultMap">
        select * from asr_wrk_mast_sta
        where wrk_crn = #{id} and wrk_sts = 1
    </select>
</mapper>