Commit 79ad8579 by wukaiqiang

经营类报表显示两位小数

parent d6faa148
......@@ -25,9 +25,10 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
String OperationsReportType, String stationList) {
// TODO Auto-generated method stub
StringBuffer hql = new StringBuffer(" SELECT ");
hql.append(" result.stationName AS stationName, result.dinasTypeName AS dinasTypeName,\r\n"
+ " result.saleDealAmount AS saleDealAmount, \r\n"
+ " result.saleAmount AS saleAmount FROM ");
hql.append(" result.stationName AS stationName, "
+ " result.dinasTypeName AS dinasTypeName,\r\n"
+ " 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 "
+ " dinasType.dinas_Type_Name AS dinasTypeName, ");
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