| | |
| | | <mapper namespace="com.zy.asrs.mapper.ReportQueryMapper"> |
| | | |
| | | <!-- mapper不支持sql语句嵌套时,采用sql片段包含方式,解决xml标签问题 --> |
| | | <resultMap id="ViewWorkInResultMap" type="com.zy.asrs.entity.ViewWorkInBean"> |
| | | <result column="row" property="row"/> |
| | | <result column="io_time" property="io_time"/> |
| | | <result column="loc_no" property="loc_no"/> |
| | | <result column="zpallet" property="zpallet"/> |
| | | <result column="anfme" property="anfme"/> |
| | | <result column="matnr" property="matnr"/> |
| | | <result column="maktx" property="maktx"/> |
| | | <result column="batch" property="batch"/> |
| | | <result column="order_no" property="orderNo"/> |
| | | <result column="specs" property="specs"/> |
| | | <result column="units" property="units"/> |
| | | <result column="weight" property="weight"/> |
| | | <result column="manu" property="manu"/> |
| | | <result column="memo" property="memo"/> |
| | | <result column="standby1" property="standby1"/> |
| | | <result column="standby2" property="standby2"/> |
| | | <result column="standby3" property="standby3"/> |
| | | <result column="box_type1" property="boxType1"/> |
| | | <result column="box_type2" property="boxType2"/> |
| | | <result column="box_type3" property="boxType3"/> |
| | | </resultMap> |
| | | |
| | | <sql id="viewWorkInConditionSql"> |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and loc_no like '%' + #{loc_no} + '%' |
| | |
| | | </if> |
| | | <if test="anfme != null and anfme != ''"> |
| | | and anfme = #{anfme} |
| | | </if> |
| | | <if test="standby1!=null and standby1!='' "> |
| | | and standby1 like '%' + #{standby1} + '%' |
| | | </if> |
| | | <if test="standby2!=null and standby2!='' "> |
| | | and standby2 like '%' + #{standby2} + '%' |
| | | </if> |
| | | <if test="standby3!=null and standby3!='' "> |
| | | and standby3 like '%' + #{standby3} + '%' |
| | | </if> |
| | | <if test="boxType1!=null and boxType1!='' "> |
| | | and box_type1 like '%' + #{boxType1} + '%' |
| | | </if> |
| | | <if test="boxType2!=null and boxType2!='' "> |
| | | and box_type2 like '%' + #{boxType2} + '%' |
| | | </if> |
| | | <if test="boxType3!=null and boxType3!='' "> |
| | | and box_type3 like '%' + #{boxType3} + '%' |
| | | </if> |
| | | <!-- <if test="maktx!=null and maktx!='' ">--> |
| | | <!-- and (maktx like '%' + #{maktx} + '%'--> |
| | |
| | | <if test="matnr!=null and matnr!='' "> |
| | | and matnr like '%' + #{matnr} + '%' |
| | | </if> |
| | | <if test="standby1!=null and standby1!='' "> |
| | | and standby1 like '%' + #{standby1} + '%' |
| | | </if> |
| | | <if test="standby2!=null and standby2!='' "> |
| | | and standby2 like '%' + #{standby2} + '%' |
| | | </if> |
| | | <if test="standby3!=null and standby3!='' "> |
| | | and standby3 like '%' + #{standby3} + '%' |
| | | </if> |
| | | <if test="boxType1!=null and boxType1!='' "> |
| | | and box_type1 like '%' + #{boxType1} + '%' |
| | | </if> |
| | | <if test="boxType2!=null and boxType2!='' "> |
| | | and box_type2 like '%' + #{boxType2} + '%' |
| | | </if> |
| | | <if test="boxType3!=null and boxType3!='' "> |
| | | and box_type3 like '%' + #{boxType3} + '%' |
| | | <if test="maktx!=null and maktx!='' "> |
| | | and (maktx like '%' + #{maktx} + '%' |
| | | or matnr like '%' + #{maktx} + '%' |
| | | or lgnum like '%' + #{maktx} + '%' |
| | | or tbnum like '%' + #{maktx} + '%' |
| | | or tbpos like '%' + #{maktx} + '%' |
| | | or zmatid like '%' + #{maktx} + '%' |
| | | or maktx like '%' + #{maktx} + '%' |
| | | or werks like '%' + #{maktx} + '%' |
| | | or anfme like '%' + #{maktx} + '%' |
| | | or altme like '%' + #{maktx} + '%' |
| | | or zpallet like '%' + #{maktx} + '%' |
| | | or bname like '%' + #{maktx} + '%' |
| | | ) |
| | | </if> |
| | | <if test="begin_date!=null and begin_date!='' "> |
| | | <![CDATA[ |
| | |
| | | |
| | | <!-- 入库统计 --> |
| | | <!-- 分页查询所有信息 --> |
| | | <select id="queryViewWorkInList" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean"> |
| | | <select id="queryViewWorkInList" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultMap="ViewWorkInResultMap"> |
| | | select |
| | | * |
| | | from ( |
| | |
| | | </select> |
| | | |
| | | <!-- 不分页查询所有信息,用于excel导出 --> |
| | | <select id="getViewWorkInAll" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean"> |
| | | <select id="getViewWorkInAll" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultMap="ViewWorkInResultMap"> |
| | | <!-- select count(1)--> |
| | | <!-- from asr_wrkin_view a--> |
| | | <!-- where 1=1--> |
| | |
| | | <!-- 出库统计 --> |
| | | <!-- 分页查询所有信息 --> |
| | | <select id="queryViewWorkOutList" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean"> |
| | | |
| | | |
| | | select |
| | | * |
| | | from ( |