소스 검색

打印收据修改

wangli 4 년 전
부모
커밋
3c4e016ba5
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      smart-city-platform/src/main/resources/mapper/pay/PayInvoiceMapper.xml

+ 3 - 2
smart-city-platform/src/main/resources/mapper/pay/PayInvoiceMapper.xml

@@ -183,10 +183,11 @@
     </select>
 
     <select id="getLastWaterUsedRecord"  resultType="com.bz.smart_city.dto.pay.payfee.PrintInvoiceData">
-		select top 1  reading ,recorddate
-	 from amount_waterusedamount
+		select  reading ,recorddate
+	 from pay_amount_waterusedamount
 	 where state=2 and site_id=#{siteId} and customer_id=#{customerId} and account_id=#{accountId} and update_date &lt; #{date}
 	 order by update_date desc
+	 limit 1
 	</select>