Commit 5e59ba6f by 史文博

Merge branch 'feature/form_statistics_05' into 'develop'

经营类报表显示两位小数

See merge request kunlun/xyst_dinas/xyst_dinas_backend!50
parents 39d1f61d 79ad8579
...@@ -26,9 +26,10 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao { ...@@ -26,9 +26,10 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
String OperationsReportType, String stationList) { String OperationsReportType, String stationList) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
StringBuffer hql = new StringBuffer(" SELECT "); StringBuffer hql = new StringBuffer(" SELECT ");
hql.append(" result.stationName AS stationName, result.dinasTypeName AS dinasTypeName,\r\n" hql.append(" result.stationName AS stationName, "
+ " result.saleDealAmount AS saleDealAmount, \r\n" + " result.dinasTypeName AS dinasTypeName,\r\n"
+ " result.saleAmount AS saleAmount FROM "); + " FORMAT( result.saleDealAmount ,2) AS saleDealAmount, \r\n"
+ " FORMAT( result.saleAmount ,2) AS saleAmount FROM ");
hql.append(" ( SELECT station.station_Name AS stationName, \r\n " hql.append(" ( SELECT station.station_Name AS stationName, \r\n "
+ " dinasType.dinas_Type_Name AS dinasTypeName, "); + " dinasType.dinas_Type_Name AS dinasTypeName, ");
if (OperationsReportType != null && OperationsReportType != "" ) { if (OperationsReportType != null && OperationsReportType != "" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment