| | |
| | | <if test="map.maktx!=null and map.maktx!='' "> |
| | | and a.maktx like '%' + #{map.maktx} + '%' |
| | | </if> |
| | | <if test="map.zpallet!=null and map.zpallet!='' "> |
| | | and a.zpallet like '%' + #{map.zpallet} + '%' |
| | | </if> |
| | | <if test="map.batch!=null and map.batch!='' "> |
| | | and a.batch like '%' + #{map.batch} + '%' |
| | | </if> |
| | | <if test="map.anfme!=null and map.anfme!='' "> |
| | | and a.anfme like '%' + #{map.anfme} + '%' |
| | | </if> |
| | | <if test="map.owner!=null and map.owner!='' "> |
| | | and a.owner like '%' + #{map.owner} + '%' |
| | | </if> |
| | | <if test="map.startTime!=null and map.endTime!=null"> |
| | | and a.modi_time between #{map.startTime} and #{map.endTime} |
| | |
| | | ORDER BY lm.modi_time ASC |
| | | </select> |
| | | |
| | | <select id="getStockStatisExcel" resultType="com.zy.asrs.common.wms.entity.LocDetl"> |
| | | select |
| | | ROW_NUMBER() over (order by sum(a.anfme) desc) as row |
| | | , a.matnr |
| | | , sum(a.anfme) as anfme |
| | | from wms_loc_detl a |
| | | where 1=1 |
| | | group by a.matnr |
| | | </select> |
| | | |
| | | </mapper> |