فهرست منبع

2019-09-25 18:29

xs 5 سال پیش
والد
کامیت
f1855587e3
1فایلهای تغییر یافته به همراه65 افزوده شده و 26 حذف شده
  1. 65 26
      src/main/java/com/jeeplus/modules/sg/overheadline/util/SettementUtil.java

+ 65 - 26
src/main/java/com/jeeplus/modules/sg/overheadline/util/SettementUtil.java

@@ -5,6 +5,7 @@ import com.jeeplus.common.utils.excel.ImportExcel;
 import com.jeeplus.common.utils.sg.ExcelUtil;
 import com.jeeplus.modules.sg.overheadline.entity.JkxlAdjustFee;
 import com.jeeplus.modules.sg.overheadline.entity.Settlement;
+import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
 import org.springframework.web.multipart.MultipartFile;
 
 import java.math.BigDecimal;
@@ -22,10 +23,13 @@ public class SettementUtil {
     public static final String BDZ_ZBRNAME="招标人采购材料费";
     public static final String BDZ_TBNAME="投标报价";
     public static final String SE= "税额";
+    public static final String ST = "税金调差";
+    public static final String SE1= "税额调差";
     public static final String RESON_KYJ="扣";
     public static final String RESON_KYJ1="减";
     public static final String RESON_ZZJS="最终结算价";
     public static final String RESON_ZZFC="最终工程造价";
+    public static final String RESON_ZGTB="最高投标限价";
     /*
         分布分项比对
      */
@@ -103,9 +107,7 @@ public class SettementUtil {
     /*
        工程结算
     */
-    public static final String RESON_GCJS="《工程项目竣工结算汇总表》,结算价,<span style='font-weight: bold;'>xxx</span>,";
-    public static final String RESON_GCJS1="《工程项目竣工结算汇总表》,结算价,<span style='font-weight: bold;'>xxx</span>,";
-
+    public static final String RESON_GCJS="工程项目汇总表,结算价,<span style='font-weight: bold;'>xxx</span>,";
     public static final String[] DLBDZ_FBFX2 = {RESON_FBFX1,BDZ_FBFX1,BDZ_FBFX2,RESON_JGJS8,RESON_JZFBFX3,RESON_AZFBFX3,RESON_JGJS8};
     public static final String[] DLBDZ_FBFX1 = {RESON_FBFX1,RESON_JZFBFX,RESON_AZFBFX,RESON_JGJS8,RESON_JZFBFX3,RESON_AZFBFX3,RESON_JGJS8};
     /*
@@ -131,10 +133,19 @@ public class SettementUtil {
             settlement=new Settlement();
             key =  importExcel.getValue(i+1,1);
             if (key.contains(BashInfo.JS_SJ)){
-                key=BashInfo.JS_SJ;
+                if (key.contains(ST)){
+                    key=ST;
+                }else {
+                    key=BashInfo.JS_SJ;
+                }
+
             }
             if(key.contains(SE)){
-                key=BashInfo.JS_SJ;
+                if (key.contains(SE1)){
+                    key=SE1;
+                }else {
+                    key=BashInfo.JS_SJ;
+                }
             }
             if(key.equals(BDZ_TBRNAME)){
                 flag=true;
@@ -148,15 +159,6 @@ public class SettementUtil {
                 flag=true;
                 key=BashInfo.JS_JGJS;
             }
-            if (key.equals(RESON_ZZJS)){
-                key = BashInfo.JS_GCJS;
-                flag=true;
-            }
-            if (key.equals(RESON_ZZFC)){
-                key = BashInfo.JS_GCJS;
-                flag=true;
-            }
-
             switch (key){
                 case BashInfo.JS_FBFX:
                     settlementList.add(getSettlement(settlement,key,importExcel,i));
@@ -206,6 +208,12 @@ public class SettementUtil {
                     }
                     settlementList.add(getSettlement(settlement,key,importExcel,i));
                     break;
+                case ST:
+                    settlementList.add(getSettlement(settlement,ST,importExcel,i));
+                    break;
+                case SE1:
+                    settlementList.add(getSettlement(settlement,ST,importExcel,i));
+                    break;
                 case BashInfo.JS_JGJS:
                     if (flag){
                         key=BDZ_TBNAME;
@@ -214,18 +222,24 @@ public class SettementUtil {
                     settlementList.add(getSettlement(settlement,key,importExcel,i));
                     break;
                 case BashInfo.JS_GCJS:
-                    if (flag){
-                        if (key.equals(RESON_ZZJS)){
-                            key=RESON_ZZJS;
-                        }else {
-                            key = RESON_ZZFC;
-                        }
-                        flag=false;
-                    }
+                    settlementList.add(getSettlement(settlement,key,importExcel,i));
+                    break;
+                case RESON_ZZFC:
+                    settlementList.add(getSettlement(settlement,key,importExcel,i));
+                    break;
+                case RESON_ZZJS:
+                    settlementList.add(getSettlement(settlement,key,importExcel,i));
+                    break;
+                case RESON_ZGTB:
                     settlementList.add(getSettlement(settlement,key,importExcel,i));
                     break;
             }
         }
+        System.out.println("111111111111111111111111111");
+        for (int i = 0; i < settlementList.size(); i++) {
+            System.out.println(settlementList.get(i).getEntryName());
+        }
+        System.out.println("111111111111111111111111111");
         return settlementList;
     }
 
@@ -273,6 +287,9 @@ public class SettementUtil {
             if (name.equals(RESON_ZZFC)){
                 name = BashInfo.JS_GCJS;
             }
+            if (name.equals(RESON_ZGTB)){
+                name = BashInfo.JS_GCJS;
+            }
             money=settlement.getMoney();
             moneyComparison1 = money+5.0;
             moneyComparison2 = money-5.0;
@@ -385,6 +402,9 @@ public class SettementUtil {
             if (name.equals(RESON_ZZFC)){
                 name = BashInfo.JS_GCJS;
             }
+            if (name.equals(RESON_ZGTB)){
+                name = BashInfo.JS_GCJS;
+            }
             //获取金额
             money=settlement.getMoney();
             moneyComparison1 = money+5.0;
@@ -496,6 +516,9 @@ public class SettementUtil {
             if (name.equals(RESON_ZZFC)){
                 name = BashInfo.JS_GCJS;
             }
+            if (name.equals(RESON_ZGTB)){
+                name = BashInfo.JS_GCJS;
+            }
             switch (name) {
                 case BashInfo.JS_FBFX:
                     doubles[1]=money;
@@ -588,6 +611,9 @@ public class SettementUtil {
             if (name.equals(RESON_ZZFC)){
                 name = BashInfo.JS_GCJS;
             }
+            if (name.equals(RESON_ZGTB)){
+                name = BashInfo.JS_GCJS;
+            }
             money =settlement.getMoney();
             switch (name) {
                 case BashInfo.JS_FBRF:
@@ -698,6 +724,10 @@ public class SettementUtil {
                     reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
                     settlement.setReason(reason);
                     break;
+                case RESON_ZGTB:
+                    reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
+                    settlement.setReason(reason);
+                    break;
             }
         }
         return settlementList;
@@ -787,6 +817,10 @@ public class SettementUtil {
                     reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
                     settlement.setReason(reason);
                     break;
+                case RESON_ZGTB:
+                    reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
+                    settlement.setReason(reason);
+                    break;
             }
         }
         return settlementList;
@@ -816,10 +850,6 @@ public class SettementUtil {
                 flag=true;
                 key = BDZ_TBNAME;
             }
-            if (key.equals(RESON_ZZJS)){
-//                flag = true;
-                key = BashInfo.GCJS;
-            }
             switch (key){
                 case BashInfo.JS_FBFX:
                     reason = getDJoint(settlement,DLBDZ_FBFX2);
@@ -872,12 +902,21 @@ public class SettementUtil {
                     settlement.setReason(reason);
                     break;
                 case BashInfo.GCJS:
+                    reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
                     settlement.setReason(reason);
                     break;
                 case RESON_ZZFC:
                     reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
                     settlement.setReason(reason);
                     break;
+                case RESON_ZZJS:
+                    reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
+                    settlement.setReason(reason);
+                    break;
+                case RESON_ZGTB:
+                    reason=getJshzJoint(RESON_GCJS,settlement,settlementList);
+                    settlement.setReason(reason);
+                    break;
             }
         }
         return settlementList;