|
|
@@ -339,14 +339,14 @@ public interface ChargeFeeVoMapper {
|
|
|
"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' then amount else 0 end ) zfss," +
|
|
|
- "sum ( case when cheque_type = 'Y' and pay_mark ='0' then amount else 0 end ) zfsk," +
|
|
|
+ "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 pay_mark > '0' then amount else 0 end ) zftf," +
|
|
|
+ "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 ( amount) zjss," +
|
|
|
"sum ( case when pay_mark ='0' then amount else 0 end ) zjsk," +
|
|
|
@@ -364,15 +364,15 @@ public interface ChargeFeeVoMapper {
|
|
|
"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 pay_mark ='0' then receipt_sn else null end ) zfbs," +
|
|
|
+ " 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 ='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 pay_mark > '0' then receipt_sn else null end ) zftfbs," +
|
|
|
+ " 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 pay_mark <![CDATA[<>]]> '0' then receipt_sn else null end ) ztfbs," +
|
|
|
+ "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," +
|
|
|
@@ -899,7 +899,7 @@ public interface ChargeFeeVoMapper {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @Update("update mz_receipt_serial set pay_id=operator_id,charge_dcount_date=dcount_date,charge_dcount_no=dcount_no where operator_id =#{userIdCode} and dcount_date=#{dcountDate} and receipt_no>0 and isnull(cheque_type,1)<> 'Y' and pay_id='99999' ")
|
|
|
+ @Update("update mz_receipt_serial set pay_id=operator_id,charge_dcount_date=dcount_date,charge_dcount_no=dcount_no where operator_id =#{userIdCode} and dcount_date=#{dcountDate} and receipt_no>0 and isnull(cheque_type,1) not in ('Y','E','F','W','M','Z') and pay_id='99999' ")
|
|
|
int refeshRefundNewData(@Param("userIdCode") String userIdCode, @Param("dcountDate") Date dcountDate);
|
|
|
|
|
|
|
|
|
@@ -917,4 +917,10 @@ public interface ChargeFeeVoMapper {
|
|
|
")")
|
|
|
List<Integer> selectInconformityData(@Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
|
|
|
|
|
|
+ /**
|
|
|
+ * 清洗payId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Update("update mz_receipt_serial set pay_id ='99999' where operator_id='99999' and pay_id=''")
|
|
|
+ int setPayId();
|
|
|
}
|