|
@@ -38,8 +38,14 @@
|
|
|
<bind name="REMARK" value="'%'+params.REMARK+'%'"/>
|
|
|
AND T1.REMARK like #{REMARK}
|
|
|
</if>
|
|
|
- <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
- AND T1.COST_TYPE = #{params.costType}
|
|
|
+<!-- <if test="params != null and params.costType != null and params.costType != ''">-->
|
|
|
+<!-- AND T1.COST_TYPE in (#{params.costType})-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="params != null and params.costTypeList != null and params.costTypeList.size > 0">
|
|
|
+ AND T1.COST_TYPE in
|
|
|
+ <foreach collection="params.costTypeList" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="params != null and params.useMoneyNo != null and params.useMoneyNo != ''">
|
|
|
AND T2.USE_MONEY_NO = #{params.useMoneyNo}
|
|
@@ -111,8 +117,14 @@
|
|
|
<bind name="REMARK" value="'%'+params.REMARK+'%'"/>
|
|
|
AND T1.BZ1 like #{REMARK}
|
|
|
</if>
|
|
|
- <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
- AND T1.COST_TYPE = #{params.costType}
|
|
|
+<!-- <if test="params != null and params.costType != null and params.costType != ''">-->
|
|
|
+<!-- AND T1.COST_TYPE in (#{params.costType})-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="params != null and params.costTypeList != null and params.costTypeList.size > 0">
|
|
|
+ AND T1.COST_TYPE in
|
|
|
+ <foreach collection="params.costTypeList" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="params != null and params.useMoneyNo != null and params.useMoneyNo != ''">
|
|
|
AND T2.COMMON_COST_NO = #{params.useMoneyNo}
|
|
@@ -204,8 +216,14 @@
|
|
|
<bind name="REMARK" value="'%'+params.REMARK+'%'"/>
|
|
|
AND T1.REMARK like #{REMARK}
|
|
|
</if>
|
|
|
- <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
- AND T1.COST_TYPE = #{params.costType}
|
|
|
+<!-- <if test="params != null and params.costType != null and params.costType != ''">-->
|
|
|
+<!-- AND T1.COST_TYPE in (#{params.costType})-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="params != null and params.costTypeList != null and params.costTypeList.size > 0">
|
|
|
+ AND T1.COST_TYPE in
|
|
|
+ <foreach collection="params.costTypeList" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="params != null and params.totalAmount != null and params.totalAmount != ''">
|
|
|
AND T2.TOTAL_AMOUNT = #{params.totalAmount}
|
|
@@ -280,8 +298,14 @@
|
|
|
<bind name="REMARK" value="'%'+params.REMARK+'%'"/>
|
|
|
AND T1.BZ1 like #{REMARK}
|
|
|
</if>
|
|
|
- <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
- AND T1.COST_TYPE = #{params.costType}
|
|
|
+<!-- <if test="params != null and params.costType != null and params.costType != ''">-->
|
|
|
+<!-- AND T1.COST_TYPE in (#{params.costType})-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="params != null and params.costTypeList != null and params.costTypeList.size > 0">
|
|
|
+ AND T1.COST_TYPE in
|
|
|
+ <foreach collection="params.costTypeList" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<!-- <if test="params != null and params.useMoneyNo != null and params.useMoneyNo != ''">-->
|
|
|
<!-- AND T2.COMMON_COST_NO = #{params.useMoneyNo}-->
|
|
@@ -365,8 +389,14 @@ select sum(num) from (
|
|
|
<bind name="REMARK" value="'%'+params.REMARK+'%'"/>
|
|
|
AND T1.REMARK like #{REMARK}
|
|
|
</if>
|
|
|
- <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
- AND T1.COST_TYPE = #{params.costType}
|
|
|
+<!-- <if test="params != null and params.costType != null and params.costType != ''">-->
|
|
|
+<!-- AND T1.COST_TYPE in (#{params.costType})-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="params != null and params.costTypeList != null and params.costTypeList.size > 0">
|
|
|
+ AND T1.COST_TYPE in
|
|
|
+ <foreach collection="params.costTypeList" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="params != null and params.useMoneyNo != null and params.useMoneyNo != ''">
|
|
|
AND T2.USE_MONEY_NO = #{params.useMoneyNo}
|
|
@@ -437,8 +467,14 @@ select sum(num) from (
|
|
|
<bind name="REMARK" value="'%'+params.REMARK+'%'"/>
|
|
|
AND T1.BZ1 like #{REMARK}
|
|
|
</if>
|
|
|
- <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
- AND T1.COST_TYPE = #{params.costType}
|
|
|
+<!-- <if test="params != null and params.costType != null and params.costType != ''">-->
|
|
|
+<!-- AND T1.COST_TYPE in (#{params.costType})-->
|
|
|
+<!-- </if>-->
|
|
|
+ <if test="params != null and params.costTypeList != null and params.costTypeList.size > 0">
|
|
|
+ AND T1.COST_TYPE in
|
|
|
+ <foreach collection="params.costTypeList" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="params != null and params.useMoneyNo != null and params.useMoneyNo != ''">
|
|
|
AND T2.COMMON_COST_NO = #{params.useMoneyNo}
|