Commit 79ad8579 by wukaiqiang

经营类报表显示两位小数

parent d6faa148
...@@ -25,9 +25,10 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao { ...@@ -25,9 +25,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