| | |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasDevp"> |
| | | <id column="DEC_NO" property="devNo" /> |
| | | <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="APPE_TIME" property="appeTime" /> |
| | | <result column="STD_QTY" property="stdQty" /> |
| | | <result column="MIN_WT" property="minWt" /> |
| | | <result column="MAX-WT" property="maxWt" /> |
| | | <result column="MAX_WT" property="maxWt" /> |
| | | <result column="GROSS_WT" property="grossWt" /> |
| | | <result column="CART_POS" property="cartPos" /> |
| | | <result column="STA_ERR" property="staErr" /> |
| | |
| | | |
| | | <select id="getAvailableInSite" resultType="java.lang.Integer"> |
| | | select |
| | | abd."dev_no" |
| | | abd."DEV_NO" |
| | | from "SOURCE"."asr_bas_devp" abd |
| | | left join "SOURCE"."asr_sta_desc" asd on abd."dev_no" = asd."stn_no" |
| | | left join "SOURCE"."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" |
| | | and asd."TYPE_NO" = #{typeNo} |
| | | and abd."IN_ENABLE" = 'Y' |
| | | group by abd."DEV_NO" |
| | | </select> |
| | | |
| | | <select id="getAvailableOutSite" resultType="java.lang.Integer"> |
| | | select |
| | | abd."dev_no" |
| | | abd."DEV_NO" |
| | | from "SOURCE"."asr_bas_devp" abd |
| | | left join "SOURCE"."asr_sta_desc" asd on abd."dev_no" = asd."stn_no" |
| | | left join "SOURCE"."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" |
| | | and asd."TYPE_NO" = #{typeNo} |
| | | and abd."OUT_ENABLE" = 'Y' |
| | | group by abd."DEV_NO" |
| | | </select> |
| | | |
| | | </mapper> |