|
@@ -330,6 +330,7 @@ public interface ChargeFeeVoMapper {
|
|
|
"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='M' or cheque_type='F') and op_id ='99999') then amount else 0 end ) zfbzzss," +
|
|
|
"sum ( case when (cheque_type='P' or cheque_type='T') then amount else 0 end ) ybgrzhss," +
|
|
|
+ "sum ( case when cheque_type ='O' then amount else 0 end ) jhzfss," +
|
|
|
"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," +
|
|
@@ -339,6 +340,7 @@ public interface ChargeFeeVoMapper {
|
|
|
"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='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='P' or cheque_type='T') and pay_mark ='0' then receipt_sn else null end ) ybgrzhbs," +
|
|
|
+ "count ( distinct case when cheque_type ='O' and pay_mark ='0' then receipt_sn else null end ) jhzfbs," +
|
|
|
"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," +
|
|
@@ -352,6 +354,7 @@ public interface ChargeFeeVoMapper {
|
|
|
" 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," +
|
|
|
+ "count ( distinct case when cheque_type ='O' and pay_mark > '0' then receipt_sn else null end ) jhzftfbs," +
|
|
|
"sum ( case when cheque_type= 'E' and op_id <![CDATA[<>]]> '99999' then amount else 0 end ) wxss," +
|
|
|
"sum ( case when cheque_type= 'F' and op_id <![CDATA[<>]]> '99999' then amount else 0 end ) zfbss," +
|
|
|
"sum ( case when cheque_type ='1' and pay_mark ='1' then amount else 0 end ) xjtf," +
|
|
@@ -364,6 +367,7 @@ public interface ChargeFeeVoMapper {
|
|
|
"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 ='O' and pay_mark ='1' then amount else 0 end ) jhzftf," +
|
|
|
"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," +
|
|
@@ -373,6 +377,7 @@ public interface ChargeFeeVoMapper {
|
|
|
"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 ='O' and pay_mark ='0' then amount else 0 end ) jhzfsk," +
|
|
|
"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) " +
|
|
@@ -641,6 +646,12 @@ public interface ChargeFeeVoMapper {
|
|
|
" ABS( sum ( case when op_id='99999' and times <![CDATA[<]]> 0 and paymode ='M' then req_fee + oth_fee + clinic_fee + isnull ( brochure_fee , 0 ) + isnull ( bl_fee , 0 ) + isnull ( ck_fee , 0 )+ isnull ( blb_fee , 0 ) + isnull ( zlk_fee , 0 ) else 0 end )) zfbzzth, " +
|
|
|
" count ( case when times <![CDATA[>]]> 0 and paymode ='M' then 1 else null end ) - count ( case when op_id='99999' and times <![CDATA[<]]> 0 and paymode ='M' then 1 else null end ) zfbzzsshs," +
|
|
|
" sum ( case when op_id='99999' and paymode ='M' then req_fee + oth_fee + clinic_fee + isnull ( brochure_fee , 0 ) + isnull ( bl_fee , 0 ) + isnull ( ck_fee , 0 )+ isnull ( blb_fee , 0 ) + isnull ( zlk_fee , 0 ) else 0 end ) zfbzzss, " +
|
|
|
+ " count ( case when times <![CDATA[>]]> 0 and paymode ='O' then 1 else null end ) jhzfhs," +
|
|
|
+ " sum ( case when times <![CDATA[>]]> 0 and paymode ='O' then req_fee + oth_fee + clinic_fee + isnull ( brochure_fee , 0 ) + isnull ( bl_fee , 0 ) + isnull ( ck_fee , 0 )+ isnull ( blb_fee , 0 ) + isnull ( zlk_fee , 0 ) else 0 end ) jhzfsk, " +
|
|
|
+ " count ( case when times <![CDATA[<]]> 0 and paymode ='O' then 1 else null end ) jhzfthhs," +
|
|
|
+ " ABS(sum ( case when times <![CDATA[<]]> 0 and paymode ='O' then req_fee + oth_fee + clinic_fee + isnull ( brochure_fee , 0 ) + isnull ( bl_fee , 0 ) + isnull ( ck_fee , 0 )+ isnull ( blb_fee , 0 ) + isnull ( zlk_fee , 0 ) else 0 end )) jhzfth, " +
|
|
|
+ " count ( case when times <![CDATA[>]]> 0 and paymode ='O' then 1 else null end ) - count ( case when times <![CDATA[<]]> 0 and paymode ='O' then 1 else null end ) jhzfsshs," +
|
|
|
+ " sum ( case when paymode ='O' then req_fee + oth_fee + clinic_fee + isnull ( brochure_fee , 0 ) + isnull ( bl_fee , 0 ) + isnull ( ck_fee , 0 )+ isnull ( blb_fee , 0 ) + isnull ( zlk_fee , 0 ) else 0 end ) jhzfss," +
|
|
|
" sum ( case when isnull ( paymode , '1' ) = 'Y' then req_fee + oth_fee + clinic_fee + isnull ( brochure_fee , 0 ) + isnull ( bl_fee , 0 ) + isnull ( ck_fee , 0 )+ isnull ( blb_fee , 0 ) + isnull ( zlk_fee , 0 ) else 0 end ) ghjejz," +
|
|
|
" sum ( case when isnull ( paymode , '1' ) <![CDATA[<>]]> 'Y' then req_fee + oth_fee + clinic_fee + isnull ( brochure_fee , 0 ) + isnull ( bl_fee , 0 ) + isnull ( ck_fee , 0 )+ isnull ( blb_fee , 0 ) + isnull ( zlk_fee , 0 ) else 0 end ) ghjebhjz," +
|
|
|
" sum ( clinic_fee ) zcsr," +
|