|
@@ -66,7 +66,7 @@ public class BusOrgDaoImpl extends GenericDaoImpl<BusOrg, Long>
|
|
|
//先将int值转为float否则会发生精度丢失
|
|
|
//Float v = (float) (1+GR/100);
|
|
|
//通过sql查询增长比例
|
|
|
- String v = " (select growth_ratio from base_org_type o where o.org_type_id = b.org_type_id) ";
|
|
|
+ String v = " (select 1+(growth_ratio/100) from base_org_type o where o.org_type_id = b.org_type_id) ";
|
|
|
String quarterSql = "ROUND(SUM(bm.`water`) * "+v+"/4)";
|
|
|
String montherSql = "ROUND(SUM(bm.`water`) * "+v+"/12)";
|
|
|
String sql = " INSERT INTO `bus_annual_plan_for_water` "
|
|
@@ -200,7 +200,7 @@ public class BusOrgDaoImpl extends GenericDaoImpl<BusOrg, Long>
|
|
|
Date eMonthEndTime) {
|
|
|
// Float v = (float) (1+GR/100);
|
|
|
//通过sql查询增长比例
|
|
|
- String v = " (select growth_ratio from base_org_type o where o.org_type_id = b.org_type_id) ";
|
|
|
+ String v = " (select 1+(growth_ratio/100) from base_org_type o where o.org_type_id = b.org_type_id) ";
|
|
|
|
|
|
String sql =" INSERT INTO `bus_quarterly_assessment` "
|
|
|
+" ( "
|
|
@@ -239,7 +239,7 @@ public class BusOrgDaoImpl extends GenericDaoImpl<BusOrg, Long>
|
|
|
Date bMonthStartTime, Date bMonthEndTime, Date eMonthStartTime,
|
|
|
Date eMonthEndTime) {
|
|
|
//通过sql查询增长比例
|
|
|
- String v = " (select growth_ratio from base_org_type o where o.org_type_id = b.org_type_id ) ";
|
|
|
+ String v = " (select 1+(growth_ratio/100) from base_org_type o where o.org_type_id = b.org_type_id ) ";
|
|
|
|
|
|
String sql =" INSERT INTO `bus_month_assessment` "
|
|
|
+" ( "
|