1
zhang
20 小时以前 675c3b5d83b928c2bfbb84cd99a7d3f222d4432c
zy-acs-cv/src/main/resources/mapper/DevpMapper.xml
@@ -4,39 +4,22 @@
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.Devp">
        <id column="dev_no" property="devNo" />
        <result column="dec_desc" property="decDesc" />
        <result column="dev_mk" property="devMk" />
        <result column="in_enable" property="inEnable" />
        <result column="out_enable" property="outEnable" />
        <result column="autoing" property="autoing" />
        <result column="loading" property="loading" />
        <result column="canining" property="canining" />
        <result column="canouting" property="canouting" />
        <result column="wrk_no" property="wrkNo" />
        <result column="barcode" property="barcode" />
        <id column="dev_no" property="devNo"/>
        <result column="dec_desc" property="decDesc"/>
        <result column="in_enable" property="inEnable"/>
        <result column="out_enable" property="outEnable"/>
        <result column="autoing" property="autoing"/>
        <result column="loading" property="loading"/>
        <result column="canining" property="canining"/>
        <result column="canouting" property="canouting"/>
        <result column="wrk_no" property="wrkNo"/>
        <result column="barcode" property="barcode"/>
    </resultMap>
    <select id="getAvailableInSite" resultType="java.lang.Integer">
        select
        abd.dev_no
        from asr_bas_devp abd
        left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        where 1=1
        and asd.type_no = #{typeNo}
        and abd.in_enable = 'Y'
        group by abd.dev_no
    <select id="getDevpByDevNo" resultMap="BaseResultMap">
        select * from cv_devp where dev_no = #{devNo}
    </select>
    <select id="getAvailableOutSite" resultType="java.lang.Integer">
        select
        abd.dev_no
        from asr_bas_devp abd
        left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        where 1=1
        and asd.type_no = #{typeNo}
        and abd.out_enable = 'Y'
        group by abd.dev_no
    </select>
</mapper>