From 26aefb078007bf1fbf58cdecaefcb14e63a970c0 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期三, 24 五月 2023 14:25:54 +0800 Subject: [PATCH] # --- src/main/resources/mapper/LocDetlMapper.xml | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml index 3859479..c32f397 100644 --- a/src/main/resources/mapper/LocDetlMapper.xml +++ b/src/main/resources/mapper/LocDetlMapper.xml @@ -44,6 +44,9 @@ <result column="appe_user" property="appeUser" /> <result column="appe_time" property="appeTime" /> <result column="memo" property="memo" /> + <result column="owner" property="owner" /> + <result column="payment" property="payment" /> + <result column="uuid" property="uuid" /> </resultMap> <sql id="batchSeq"> @@ -115,6 +118,22 @@ left join asr_loc_mast b on a.loc_no = b.loc_no where 1=1 and b.loc_sts = 'F' + <choose> + <when test="owner != null and owner != 0"> + and owner = #{owner} + </when> + <otherwise> + and 1!=1 + </otherwise> + </choose> + <choose> + <when test="payment != null and payment != 0"> + and payment = #{payment} + </when> + <otherwise> + and 1!=1 + </otherwise> + </choose> <include refid="stockOutCondition"></include> ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) </select> @@ -126,6 +145,22 @@ left join asr_loc_mast b on a.loc_no = b.loc_no where 1=1 and b.loc_sts = 'F' + <choose> + <when test="owner != null and owner != 0"> + and owner = #{owner} + </when> + <otherwise> + and 1!=1 + </otherwise> + </choose> + <choose> + <when test="payment != null and payment != 0"> + and payment = #{payment} + </when> + <otherwise> + and 1!=1 + </otherwise> + </choose> <include refid="stockOutCondition"></include> </select> -- Gitblit v1.9.1