LSH
2023-07-25 cdcda32802aabe65fc6d20fb06907998b3bb9a61
src/main/resources/mapper/WrkMastMapper.xml
@@ -243,7 +243,7 @@
    <select id="selectWaitBindRGV" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast
        where 1=1
        and wrk_sts in (2,22)
        and wrk_sts in (2,14)
        and rgv_no is null
    </select>
@@ -264,7 +264,7 @@
    </select>
    <select id="selectRgvInSteNo" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where 1=1 and wrk_sts =12 and rgv_no=#{rgvNo}
        select top 1 * from dbo.asr_wrk_mast where 1=1 and wrk_sts =14 and rgv_no=#{rgvNo}
        <if test="rgvNo == 1">
            order by rgv_dsta_no
        </if>
@@ -284,5 +284,15 @@
    </select>
    <!-- ==============================================RGV任务绑定相关 ============================================== -->
    <!-- ==============================================自动补空板相关 ============================================== -->
    <select id="selectConfigCount10468N" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where 1=1 and io_type = 201
    </select>
    <select id="selectExistInEmpty" resultType="java.lang.Integer">
        SELECT COUNT(1) FROM dbo.sys_config Where 1=1 and id=10468 and value = 'N'
    </select>
    <!-- ==============================================自动补空板相关 ============================================== -->
</mapper>