Bladeren bron

打印收据修改

wangli 4 jaren geleden
bovenliggende
commit
3c4e016ba5
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  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>