| 
					
				 | 
			
			
				@@ -293,7 +293,7 @@ public interface ChargeFeeVoMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "         rtrim(mz_receipt_serial.serial_no) serial_no " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "    FROM mz_receipt_serial " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "   WHERE mz_receipt_serial.operator_id =#{userIdCode}  and mz_receipt_serial.dcount_no=0 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "         and mz_receipt_serial.pay_mark  <> '1' " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "         and mz_receipt_serial.receipt_no  > 0 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "  order by mz_receipt_serial.receipt_bill ") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<ReceiptBillVo> selectSfReceiptBillVoUnAccount(@Param("userIdCode") String userIdCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -308,7 +308,7 @@ public interface ChargeFeeVoMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "         rtrim(mzy_reqrec.receipt_bill) receipt_bill," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "         rtrim(mzy_reqrec.serial_no) serial_no " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "    FROM mzy_reqrec " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            " where mzy_reqrec.op_id like #{userIdCode} and dcount_no=0 and cancel_mark  <> '1' " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " where mzy_reqrec.op_id like #{userIdCode} and dcount_no=0 and times  > 0 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "order by op_id,mzy_reqrec.receipt_bill") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<ReceiptBillVo> selectGhReceiptBillVoUnAccount(@Param("userIdCode") String userIdCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -324,7 +324,7 @@ public interface ChargeFeeVoMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "         mz_receipt_serial.serial_no " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "    FROM mz_receipt_serial " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "   WHERE mz_receipt_serial.operator_id =#{userIdCode}  and mz_receipt_serial.dcount_no=1 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "         and mz_receipt_serial.pay_mark <>'1' and dcount_date=#{dcountDate,jdbcType=TIMESTAMP}  and (cheque_type <> 'Y' or cheque_type is null) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "         and mz_receipt_serial.receipt_no >0 and dcount_date=#{dcountDate,jdbcType=TIMESTAMP}  and (cheque_type <> 'Y' or cheque_type is null) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "  order by mz_receipt_serial.receipt_bill  ") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<ReceiptBillVo> selectSfReceiptBillVoReprint(@Param("userIdCode") String userIdCode, @Param("dcountDate") Date dcountDate); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -340,7 +340,7 @@ public interface ChargeFeeVoMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "        receipt_bill = rtrim(mzy_reqrec.receipt_bill)," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "         serial_no =mzy_reqrec.serial_no " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "    FROM mzy_reqrec " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            " where mzy_reqrec.op_id = #{userIdCode} and dcount_no=1 and cancel_mark <> '1' and " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " where mzy_reqrec.op_id = #{userIdCode} and dcount_no=1 and times>0 and " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "       closing_date =#{dcountDate} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "order by op_id,mzy_reqrec.receipt_bill ") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<ReceiptBillVo> selectGhReceiptBillVoReprint(@Param("userIdCode") String userIdCode, @Param("dcountDate") Date dcountDate); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -491,9 +491,15 @@ public interface ChargeFeeVoMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Select({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "select count ( distinct receipt_bill ) from mz_receipt_serial where operator_id =#{userIdCode} and pay_mark =#{payMark} and len(receipt_bill)=8 and receipt_bill <![CDATA[<>]]> '00000000' ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "select count ( distinct receipt_bill ) from mz_receipt_serial where operator_id =#{userIdCode} and len(receipt_bill)=8 and receipt_bill <![CDATA[<>]]> '00000000' ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "<when test='payMark!=null and payMark == 1'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            " and receipt_no  <![CDATA[<]]> 0 ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and receipt_no  <![CDATA[<]]> 0 and pay_mark =1", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='payMark!=null and payMark == 0'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and receipt_no <![CDATA[>]]> 0 and pay_mark in (0,2) ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='payMark!=null and payMark == 2'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and receipt_no <![CDATA[>]]> 0 and pay_mark =2 ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "<when test='dcountDate!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             " and dcount_date=#{dcountDate,jdbcType=TIMESTAMP} ", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -551,10 +557,13 @@ public interface ChargeFeeVoMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Select({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "select count ( *) from mzy_reqrec where cancel_mark =#{cancelMark} and len(receipt_bill)=8 and receipt_bill <![CDATA[<>]]> '00000000' ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "select count ( *) from mzy_reqrec where  len(receipt_bill)=8 and receipt_bill <![CDATA[<>]]> '00000000' ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "<when test='cancelMark!=null and cancelMark == 1'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             " and times <![CDATA[<]]> 0 ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='cancelMark!=null and cancelMark == 0'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and times <![CDATA[>]]> 0 ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "<when test='userIdCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             " and op_id=#{userIdCode} ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</when>", 
			 |