|
@@ -939,12 +939,12 @@
|
|
|
AND dic.dict_type = 'data_cntrId'
|
|
|
LEFT JOIN t_corps driver ON driver.f_id = c.driver_user_id
|
|
|
<where>
|
|
|
- <if test="stlStatus == null and stlStatus == 'T'">and c.stl_amt_dr != 0 or c.stl_amt_cr != 0</if>
|
|
|
- <if test="stlStatus == null and stlStatus == 'F'">and c.stl_amt_dr = 0 or c.stl_amt_cr = 0</if>
|
|
|
- <if test="accchkStatus == null and accchkStatus == 'T'">and c.accchk_amt_cr != 0 or c.accchk_amt_cr != 0</if>
|
|
|
- <if test="accchkStatus == null and accchkStatus == 'F'">and c.accchk_amt_dr = 0 or c.accchk_amt_dr = 0</if>
|
|
|
- <if test="invStatus == null and invStatus == 'T'">and c.inv_amt_cr != 0 or c.inv_amt_cr != 0</if>
|
|
|
- <if test="invStatus == null and invStatus == 'F'">and c.inv_amt_dr = 0 or c.inv_amt_dr = 0</if>
|
|
|
+ <if test='stlStatus != null and stlStatus == "T"'>and c.stl_amt_dr != 0 or c.stl_amt_cr != 0</if>
|
|
|
+ <if test='stlStatus != null and stlStatus == "F"'>and c.stl_amt_dr = 0 and c.stl_amt_cr = 0</if>
|
|
|
+ <if test='accchkStatus != null and accchkStatus == "T"'>and c.accchk_amt_cr != 0 or c.accchk_amt_cr != 0</if>
|
|
|
+ <if test='accchkStatus != null and accchkStatus == "F"'>and c.accchk_amt_dr = 0 and c.accchk_amt_dr = 0</if>
|
|
|
+ <if test='invStatus != null and invStatus == "T"'>and c.inv_amt_cr != 0 or c.inv_amt_cr != 0</if>
|
|
|
+ <if test='invStatus != null and invStatus == "F"'>and c.inv_amt_dr = 0 and c.inv_amt_dr = 0</if>
|
|
|
</where>
|
|
|
ORDER BY c.id desc
|
|
|
</select>
|