|
|
@@ -314,55 +314,60 @@ public interface ChargeFeeVoMapper {
|
|
|
"<script>",
|
|
|
"select " +
|
|
|
"sum ( case cheque_type when '1' then amount else 0 end ) xjss," +
|
|
|
- "sum ( case when cheque_type ='1' and pay_mark ='0' then amount else 0 end ) xjsk," +
|
|
|
"sum ( case when cheque_type ='5' or cheque_type ='3' then amount else 0 end ) yhkss," +
|
|
|
- "sum ( case when cheque_type in ('5' ,'3') and pay_mark ='0' then amount else 0 end ) yhksk," +
|
|
|
"sum ( case cheque_type when '6' then amount else 0 end ) sybkss," +
|
|
|
- "sum ( case when cheque_type='6' and pay_mark ='0' then amount else 0 end ) sybksk," +
|
|
|
"sum ( case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' then amount else 0 end ) zfss," +
|
|
|
- "sum ( case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then amount else 0 end ) zfsk," +
|
|
|
- "sum ( case when cheque_type ='2' then amount else 0 end ) ybjzss," +
|
|
|
- "sum ( case when cheque_type = '2' and pay_mark ='0' then amount else 0 end ) ybjzsk," +
|
|
|
- "sum ( case when cheque_type ='1' and pay_mark ='1' then amount else 0 end ) xjtf," +
|
|
|
- "sum ( case when ( cheque_type ='5' or cheque_type ='3' ) and pay_mark ='1' then amount else 0 end ) yhktf," +
|
|
|
- "sum ( case when cheque_type ='6' and pay_mark ='1' then amount else 0 end ) sybtf," +
|
|
|
- "sum ( case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' and pay_mark > '0' then amount else 0 end ) zftf," +
|
|
|
- "sum ( case when cheque_type = '2' and pay_mark > '0' then amount else 0 end ) ybjztf," +
|
|
|
+ "sum ( case when (cheque_type ='2' or cheque_type ='8' or cheque_type ='9') then amount else 0 end ) ybjzss," +
|
|
|
"sum ( amount) zjss," +
|
|
|
- "sum ( case when pay_mark ='0' then amount else 0 end ) zjsk," +
|
|
|
"sum ( case when pay_mark <![CDATA[<>]]>'0' then amount else 0 end ) zjtk," +
|
|
|
"sum ( case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') then amount else 0 end ) wxzzss," +
|
|
|
- "sum ( case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') and pay_mark ='0' then amount else 0 end ) wxzzsk," +
|
|
|
"sum ( case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') then amount else 0 end ) zfbzzss," +
|
|
|
- "sum ( case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') and pay_mark ='0' then amount else 0 end ) zfbzzsk," +
|
|
|
+ "sum ( case when (cheque_type='P' or cheque_type='T') then amount else 0 end ) ybgrzhss," +
|
|
|
+ "count ( distinct case when cheque_type ='1' and pay_mark ='0' then receipt_sn else null end ) xjbs," +
|
|
|
+ "count ( distinct case when ( cheque_type ='5' or cheque_type ='3' ) and pay_mark ='0' then receipt_sn else null end ) yhsbs," +
|
|
|
+ "count ( distinct case when cheque_type ='6' and pay_mark ='0' then receipt_sn else null end ) sybbs," +
|
|
|
+ "count ( distinct case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then receipt_sn else null end ) zfbs," +
|
|
|
+ "count ( distinct case when cheque_type ='E' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then receipt_sn else null end ) wxbs," +
|
|
|
+ "count ( distinct case when cheque_type ='F' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then receipt_sn else null end ) zfbbs," +
|
|
|
"count ( distinct case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') and pay_mark ='0' then receipt_sn else null end ) wxzzbs," +
|
|
|
- " count ( distinct case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') and pay_mark > '0' then receipt_sn else null end ) wxzztfbs," +
|
|
|
- "sum ( case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') and pay_mark ='1' then amount else 0 end ) wxzztf," +
|
|
|
- "sum ( case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') and pay_mark ='1' then amount else 0 end ) zfbzztf," +
|
|
|
"count ( distinct case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') and pay_mark ='0' then receipt_sn else null end ) zfbzzbs," +
|
|
|
- " count ( distinct case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') and pay_mark > '0' then receipt_sn else null end ) zfbzztfbs," +
|
|
|
- "count ( distinct case when cheque_type ='1' and pay_mark ='0' then receipt_sn else null end ) xjbs," +
|
|
|
- " count ( distinct case when ( cheque_type ='5' or cheque_type ='3' ) and pay_mark ='0' then receipt_sn else null end ) yhsbs," +
|
|
|
- " count ( distinct case when cheque_type ='6' and pay_mark ='0' then receipt_sn else null end ) sybbs," +
|
|
|
- " count ( distinct case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then receipt_sn else null end ) zfbs," +
|
|
|
- " count ( distinct case when cheque_type = '2' and pay_mark ='0' then receipt_sn else null end ) ybjzbs," +
|
|
|
- " count ( distinct case when cheque_type ='1' and pay_mark > '0' then receipt_sn else null end ) xjtfbs," +
|
|
|
+ "count ( distinct case when (cheque_type='P' or cheque_type='T') and pay_mark ='0' then receipt_sn else null end ) ybgrzhbs," +
|
|
|
+ "count ( distinct case when ((cheque_type ='2' or cheque_type ='8' or cheque_type ='9') and pay_mark ='0') then receipt_sn else null end ) ybjzbs," +
|
|
|
+ " count ( distinct case when pay_mark ='0' then cast(serial_no as char)+cheque_type else null end ) zjbs," +
|
|
|
+ "count ( distinct case when cheque_type ='1' and pay_mark > '0' then receipt_sn else null end ) xjtfbs," +
|
|
|
"count ( distinct case when ( cheque_type ='5' or cheque_type ='3' ) and pay_mark > '0' then receipt_sn else null end ) yhktfbs," +
|
|
|
"count ( distinct case when cheque_type ='6' and pay_mark > '0' then receipt_sn else null end ) sybtfbs," +
|
|
|
" count ( distinct case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' and pay_mark > '0' then receipt_sn else null end ) zftfbs," +
|
|
|
- " count ( distinct case when cheque_type ='2' and pay_mark > '0' then receipt_sn else null end ) ybjztfbs," +
|
|
|
- " count ( distinct case when pay_mark ='0' then cast(serial_no as char)+cheque_type else null end ) zjbs," +
|
|
|
+ " count ( distinct case when (cheque_type ='2' or cheque_type ='8' or cheque_type ='9') and pay_mark > '0' then receipt_sn else null end ) ybjztfbs," +
|
|
|
"count ( distinct case when pay_mark <![CDATA[<>]]> '0' then cast(serial_no as char)+cheque_type else null end ) ztfbs," +
|
|
|
- "count ( distinct case when cheque_type ='E' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then receipt_sn else null end ) wxbs," +
|
|
|
- "count ( distinct case when cheque_type ='F' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then receipt_sn else null end ) zfbbs," +
|
|
|
"count ( distinct case when cheque_type ='E' and op_id <![CDATA[<>]]> '99999' and pay_mark <![CDATA[<>]]> '0' then receipt_sn else null end ) wxtfbs," +
|
|
|
"count ( distinct case when cheque_type ='F' and op_id <![CDATA[<>]]> '99999' and pay_mark <![CDATA[<>]]> '0' then receipt_sn else null end ) zfbtfbs," +
|
|
|
+ " count ( distinct case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') and pay_mark > '0' then receipt_sn else null end ) wxzztfbs," +
|
|
|
+ " count ( distinct case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') and pay_mark > '0' then receipt_sn else null end ) zfbzztfbs," +
|
|
|
+ " count ( distinct case when (cheque_type='P' or cheque_type='T') and pay_mark > '0' then receipt_sn else null end ) ybgrzhtfbs," +
|
|
|
"sum ( case when cheque_type= 'E' and op_id <![CDATA[<>]]> '99999' then amount else 0 end ) wxss," +
|
|
|
- "sum ( case when cheque_type ='E' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then amount else 0 end ) wxsk," +
|
|
|
"sum ( case when cheque_type= 'F' and op_id <![CDATA[<>]]> '99999' then amount else 0 end ) zfbss," +
|
|
|
- "sum ( case when cheque_type ='F' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then amount else 0 end ) zfbsk," +
|
|
|
+ "sum ( case when cheque_type ='1' and pay_mark ='1' then amount else 0 end ) xjtf," +
|
|
|
+ "sum ( case when ( cheque_type ='5' or cheque_type ='3' ) and pay_mark ='1' then amount else 0 end ) yhktf," +
|
|
|
+ "sum ( case when cheque_type ='6' and pay_mark ='1' then amount else 0 end ) sybtf," +
|
|
|
+ "sum ( case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' and pay_mark > '0' then amount else 0 end ) zftf," +
|
|
|
+ "sum ( case when ((cheque_type ='2' or cheque_type ='8' or cheque_type ='9') and pay_mark > '0') then amount else 0 end ) ybjztf," +
|
|
|
"sum ( case when cheque_type ='E' and op_id <![CDATA[<>]]> '99999' and pay_mark ='1' then amount else 0 end ) wxtf," +
|
|
|
- "sum ( case when cheque_type ='F' and op_id <![CDATA[<>]]> '99999' and pay_mark ='1' then amount else 0 end ) zfbtf " +
|
|
|
+ "sum ( case when cheque_type ='F' and op_id <![CDATA[<>]]> '99999' and pay_mark ='1' then amount else 0 end ) zfbtf, " +
|
|
|
+ "sum ( case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') and pay_mark ='1' then amount else 0 end ) wxzztf," +
|
|
|
+ "sum ( case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') and pay_mark ='1' then amount else 0 end ) zfbzztf," +
|
|
|
+ "sum ( case when (cheque_type='P' or cheque_type='T') and pay_mark ='1' then amount else 0 end ) ybgrzhtf," +
|
|
|
+ "sum ( case when cheque_type ='1' and pay_mark ='0' then amount else 0 end ) xjsk," +
|
|
|
+ "sum ( case when cheque_type in ('5' ,'3') and pay_mark ='0' then amount else 0 end ) yhksk," +
|
|
|
+ "sum ( case when cheque_type='6' and pay_mark ='0' then amount else 0 end ) sybksk," +
|
|
|
+ "sum ( case when cheque_type = 'Y' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then amount else 0 end ) zfsk," +
|
|
|
+ "sum ( case when ((cheque_type ='2' or cheque_type ='8' or cheque_type ='9') and pay_mark ='0') then amount else 0 end ) ybjzsk," +
|
|
|
+ "sum ( case when pay_mark ='0' then amount else 0 end ) zjsk," +
|
|
|
+ "sum ( case when ((cheque_type='W' or cheque_type='E' or cheque_type='Y') and op_id ='99999') and pay_mark ='0' then amount else 0 end ) wxzzsk," +
|
|
|
+ "sum ( case when ((cheque_type='M' or cheque_type='F') and op_id ='99999') and pay_mark ='0' then amount else 0 end ) zfbzzsk," +
|
|
|
+ "sum ( case when (cheque_type='P' or cheque_type='T') and pay_mark ='0' then amount else 0 end ) ybgrzhsk," +
|
|
|
+ "sum ( case when cheque_type ='E' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then amount else 0 end ) wxsk," +
|
|
|
+ "sum ( case when cheque_type ='F' and op_id <![CDATA[<>]]> '99999' and pay_mark ='0' then amount else 0 end ) zfbsk" +
|
|
|
" from mz_deposit_file WITH(NOLOCK) " +
|
|
|
" where 1=1 and pay_mark <![CDATA[<>]]> 2 ",
|
|
|
"<when test='userIdCode!=null'>",
|