| | |
| | | </if> |
| | | </sql> |
| | | |
| | | <sql id="groupListCondition"> |
| | | <if test="matnr!=null and matnr!='' "> |
| | | and matnr like '%' + #{matnr} + '%' |
| | | </if> |
| | | <if test="maktx!=null and maktx!='' "> |
| | | and maktx like '%' + #{maktx} + '%' |
| | | </if> |
| | | <if test="specs!=null and specs!='' "> |
| | | and specs like '%' + #{specs} + '%' |
| | | </if> |
| | | <if test="batch!=null and batch!='' "> |
| | | and batch like '%' + #{batch} + '%' |
| | | </if> |
| | | |
| | | </sql> |
| | | |
| | | <select id="getStockOutPage" resultMap="BaseResultMap"> |
| | | select * from |
| | | ( |
| | |
| | | <select id="selectSumByMatnr" resultType="java.lang.Double"> |
| | | select sum(anfme) FROM asr_loc_detl WHERE matnr = #{matnr} |
| | | </select> |
| | | <select id="selectGroupPage" resultMap="BaseResultMap" parameterType="java.util.Map"> |
| | | |
| | | SELECT * FROM [dbo].[asr_loc_detl_group] WHERE 1 = 1 |
| | | <include refid="groupListCondition"></include> |
| | | </select> |
| | | |
| | | </mapper> |