| | |
| | | <result column="box_type1" property="boxType1" /> |
| | | <result column="box_type2" property="boxType2" /> |
| | | <result column="box_type3" property="boxType3" /> |
| | | <result column="area_id" property="areaId" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | |
| | | <!-- and (a.batch IS NULL OR a.batch = '')--> |
| | | <!-- </otherwise>--> |
| | | </choose> |
| | | <choose> |
| | | <when test="brand != null and brand != ''"> |
| | | and a.brand = #{brand} |
| | | </when> |
| | | <!-- <choose>--> |
| | | <!-- <when test="brand != null and brand != ''">--> |
| | | <!-- and a.brand = #{brand}--> |
| | | <!-- </when>--> |
| | | <!--<!– <otherwise>–>--> |
| | | <!--<!– and (a.brand IS NULL OR a.brand = '')–>--> |
| | | <!--<!– </otherwise>–>--> |
| | | <!-- </choose>--> |
| | | <!-- <choose>--> |
| | | <!-- <when test="standby1 != null and standby1 != ''">--> |
| | | <!-- and a.standby1 = #{standby1}--> |
| | | <!-- </when>--> |
| | | <!-- <otherwise>--> |
| | | <!-- and (a.brand IS NULL OR a.brand = '')--> |
| | | <!-- and (a.standby1 IS NULL OR a.standby1 = '')--> |
| | | <!-- </otherwise>--> |
| | | </choose> |
| | | <choose> |
| | | <when test="standby1 != null and standby1 != ''"> |
| | | and a.standby1 = #{standby1} |
| | | </when> |
| | | <otherwise> |
| | | and (a.standby1 IS NULL OR a.standby1 = '') |
| | | </otherwise> |
| | | </choose> |
| | | <!-- </choose>--> |
| | | <choose> |
| | | <when test="standby2 != null and standby2 != ''"> |
| | | and a.standby2 = #{standby2} |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | and (b.whs_type is null or b.whs_type != 2) |
| | | <include refid="stockOutCondition"></include> |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | and (b.whs_type is null or b.whs_type != 2) |
| | | <include refid="stockOutCondition"></include> |
| | | </select> |
| | | |
| | |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | and b.deleted = 0 and b.frozen = 0 |
| | | |
| | | order by |
| | | DATEPART(yyyy,a.modi_time),DATEPART(mm,a.modi_time),DATEPART(dd,a.modi_time), a.anfme |