|
@@ -27,26 +27,26 @@
|
|
|
LEFT JOIN WF_USE_MONEY T2 ON T1.USE_MONEY_ID = T2.ID
|
|
|
LEFT JOIN PROJECT T3 ON T2.PROJECT_ID=T3.ID
|
|
|
<where>
|
|
|
- T1.COST_TYPE LIKE '14%'
|
|
|
- <if test="params != null and params.costType != null">
|
|
|
+ T1.COST_TYPE LIKE '14%' and T2.FLOW_STATUS=90
|
|
|
+ <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
AND T1.COST_TYPE = #{params.costType}
|
|
|
</if>
|
|
|
- <if test="params != null and params.useMoneyNo != null">
|
|
|
+ <if test="params != null and params.useMoneyNo != null and params.useMoneyNo != ''">
|
|
|
AND T2.USE_MONEY_NO = #{params.useMoneyNo}
|
|
|
</if>
|
|
|
- <if test="params != null and params.totalAmount != null">
|
|
|
+ <if test="params != null and params.totalAmount != null and params.totalAmount != ''">
|
|
|
AND T2.TOTAL_AMOUNT = #{params.totalAmount}
|
|
|
</if>
|
|
|
<if test="params != null and params.status != null and params.status != ''">
|
|
|
AND T1.I_WRITE_OFF = #{params.status}
|
|
|
</if>
|
|
|
- <if test="params != null and params.userId != null">
|
|
|
+ <if test="params != null and params.userId != null and params.userId != ''">
|
|
|
AND T2.USER_ID = #{params.userId}
|
|
|
</if>
|
|
|
- <if test="params != null and params.applyOn != null">
|
|
|
+ <if test="params != null and params.applyOn != null and params.applyOn != ''">
|
|
|
AND T2.APPLY_TIME >= #{params.applyOn}
|
|
|
</if>
|
|
|
- <if test="params != null and params.applyOff != null">
|
|
|
+ <if test="params != null and params.applyOff != null and params.applyOff != ''">
|
|
|
AND T2.APPLY_TIME <= #{params.applyOff}
|
|
|
</if>
|
|
|
<if test="params != null and params.DeptList != null and params.DeptList.size > 0">
|
|
@@ -93,22 +93,22 @@
|
|
|
#{item,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="params != null and params.costType != null">
|
|
|
+ <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
AND T1.COST_TYPE = #{params.costType}
|
|
|
</if>
|
|
|
- <if test="params != null and params.totalAmount != null">
|
|
|
+ <if test="params != null and params.totalAmount != null and params.totalAmount != ''">
|
|
|
AND T2.TOTAL_AMOUNT = #{params.totalAmount}
|
|
|
</if>
|
|
|
- <if test="params != null and params.userId != null">
|
|
|
- AND T2.USER_ID = #{params.userId}
|
|
|
- </if>
|
|
|
- <if test="params != null and params.status != null and params.status != ''">
|
|
|
+ <if test="params != null and params.status != null and params.status != ''">
|
|
|
AND T1.I_WRITE_OFF = #{params.status}
|
|
|
</if>
|
|
|
- <if test="params != null and params.applyOn != null">
|
|
|
+ <if test="params != null and params.userId != null and params.userId != ''">
|
|
|
+ AND T2.USER_ID = #{params.userId}
|
|
|
+ </if>
|
|
|
+ <if test="params != null and params.applyOn != null and params.applyOn != ''">
|
|
|
AND T2.APPLY_TIME >= #{params.applyOn}
|
|
|
</if>
|
|
|
- <if test="params != null and params.applyOff != null">
|
|
|
+ <if test="params != null and params.applyOff != null and params.applyOff != ''">
|
|
|
AND T2.APPLY_TIME <= #{params.applyOff}
|
|
|
</if>
|
|
|
<if test="params != null and params.DeptList != null and params.DeptList.size > 0">
|
|
@@ -143,25 +143,25 @@
|
|
|
LEFT JOIN project T3 ON T2.PROJECT_ID=T3.ID
|
|
|
<where>
|
|
|
T1.ISVALID = 1 and T2.FLOW_STATUS=90 AND T2.ISVALID = 1 and T1.COST_TYPE LIKE '14%'
|
|
|
- <if test="params != null and params.costType != null">
|
|
|
+ <if test="params != null and params.costType != null and params.costType != ''">
|
|
|
AND T1.COST_TYPE = #{params.costType}
|
|
|
</if>
|
|
|
- <if test="params != null and params.useMoneyNo != null">
|
|
|
+ <if test="params != null and params.useMoneyNo != null and params.useMoneyNo != ''">
|
|
|
AND T2.USE_MONEY_NO = #{params.useMoneyNo}
|
|
|
</if>
|
|
|
- <if test="params != null and params.totalAmount != null">
|
|
|
+ <if test="params != null and params.totalAmount != null and params.totalAmount != ''">
|
|
|
AND T2.TOTAL_AMOUNT = #{params.totalAmount}
|
|
|
</if>
|
|
|
- <if test="params != null and params.userId != null">
|
|
|
- AND T2.USER_ID = #{params.userId}
|
|
|
- </if>
|
|
|
<if test="params != null and params.status != null and params.status != ''">
|
|
|
AND T1.I_WRITE_OFF = #{params.status}
|
|
|
</if>
|
|
|
- <if test="params != null and params.applyOn != null">
|
|
|
+ <if test="params != null and params.userId != null and params.userId != ''">
|
|
|
+ AND T2.USER_ID = #{params.userId}
|
|
|
+ </if>
|
|
|
+ <if test="params != null and params.applyOn != null and params.applyOn != ''">
|
|
|
AND T2.APPLY_TIME >= #{params.applyOn}
|
|
|
</if>
|
|
|
- <if test="params != null and params.applyOff != null">
|
|
|
+ <if test="params != null and params.applyOff != null and params.applyOff != ''">
|
|
|
AND T2.APPLY_TIME <= #{params.applyOff}
|
|
|
</if>
|
|
|
<if test="params != null and params.DeptList != null and params.DeptList.size > 0">
|