Ver Fonte

查询业务员总指标GC工程完成额和整装工程完成额不显示bug修复

hu há 3 semanas atrás
pai
commit
ee21a5f656

+ 4 - 2
src/custom/restcontroller/webmanage/sale/salestarget_cucu/performancetargetboard.java

@@ -459,10 +459,12 @@ public class performancetargetboard extends Controller {
         BigDecimal zzproportion =BigDecimal.ZERO.divide(BigDecimal.valueOf(100));
 //        Rows salestargetbillrows =dbConnect.runSqlQuery("select * from sa_salestargetbill where siteid='"+siteid+"' and year="+year+" and targettype='人员目标'");
         Rows rows = dbConnect.runSqlQuery("select * from sys_site_parameter where siteid='" + siteid + "'");
+        if(rows.isNotEmpty()){
+            gcproportion=rows.get(0).getBigDecimal("gcproportion");
+            zzproportion=rows.get(0).getBigDecimal("zzproportion");
+        }
         if(months.isEmpty()){
             if(rows.isNotEmpty()){
-                gcproportion=rows.get(0).getBigDecimal("gcproportion");
-                zzproportion=rows.get(0).getBigDecimal("zzproportion");
                 for(int i=1;i<=selectmonth;i++){
                     if(rows.get(0).getJSONArray("statistics_months").contains(i)){
                         months.add(i);