From ff869f8a5c95b901d94d65e6fdbafebe94f58038 Mon Sep 17 00:00:00 2001 From: xinfengYin <1776570748@qq.com> Date: Thu, 6 Mar 2025 14:26:15 +0800 Subject: [PATCH] =?UTF-8?q?#xinfengYin-21#=20SAP204-=E6=88=90=E5=93=81?= =?UTF-8?q?=E5=B7=AE=E4=BB=B7=E7=8E=87=E7=BB=B4=E6=8A=A4=E6=B5=81=E7=A8=8B?= =?UTF-8?q?02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ZOEM_PRICE_DIFFERENCE_RATE_Action.java | 86 ++++++++++--------- 1 file changed, 47 insertions(+), 39 deletions(-) diff --git a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/ZOEM_PRICE_DIFFERENCE_RATE_Action.java b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/ZOEM_PRICE_DIFFERENCE_RATE_Action.java index 870a4da..31bc5ea 100644 --- a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/ZOEM_PRICE_DIFFERENCE_RATE_Action.java +++ b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/ZOEM_PRICE_DIFFERENCE_RATE_Action.java @@ -55,7 +55,7 @@ public class ZOEM_PRICE_DIFFERENCE_RATE_Action extends BaseBean implements Actio // } // ��ϸ��1 DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable(); - log.error("ZOEM_PRICE_DIFFERENCE_RATE_Action detailtable===>"+ JSONObject.toJSONString(detailtable)); + // log.error("ZOEM_PRICE_DIFFERENCE_RATE_Action detailtable===>"+ JSONObject.toJSONString(detailtable)); DetailTable dtq = detailtable[0]; log.error("length" + detailtable.length); Row[] sq = dtq.getRow(); @@ -107,47 +107,55 @@ public class ZOEM_PRICE_DIFFERENCE_RATE_Action extends BaseBean implements Actio } } // ��ϸ��2 - DetailTable dtq2 = detailtable[1]; - Row[] sq2 = dtq2.getRow(); - StringBuilder sb2 = new StringBuilder(); - String[][] str2 = new String[sq2.length][7]; - if (sq2.length > 0) { - for (int j = 0; j < sq2.length; j++) { - Row rq = sq2[j]; - Cell[] cq = rq.getCell(); - Map map = new HashMap(); - for (int k = 0; k < cq.length; k++) { - Cell cq1 = cq[k]; - String nameq = cq1.getName().toUpperCase(); - String valueq = Util.null2String(cq1.getValue()); - map.put(nameq, valueq); - } - log.error("map2--" + map); - String gz = map.get("TLZFGZ"); - String gzbm = ""; - if ("0".equals(gz)) { - gzbm = "B"; - } else if ("1".equals(gz)) { - gzbm = "C"; - } else if ("2".equals(gz)) { - gzbm = "D"; + + DetailTable dtq2 ; + String[][] str2 = new String[][]{}; + if(detailtable.length >1){ + dtq2 =detailtable[1]; + Row[] sq2 = dtq2.getRow(); + StringBuilder sb2 = new StringBuilder(); + str2= new String[sq2.length][7]; + if (sq2.length > 0) { + for (int j = 0; j < sq2.length; j++) { + Row rq = sq2[j]; + Cell[] cq = rq.getCell(); + Map map = new HashMap(); + for (int k = 0; k < cq.length; k++) { + Cell cq1 = cq[k]; + String nameq = cq1.getName().toUpperCase(); + String valueq = Util.null2String(cq1.getValue()); + map.put(nameq, valueq); + } + log.error("map2--" + map); + String gz = map.get("TLZFGZ"); + String gzbm = ""; + if ("0".equals(gz)) { + gzbm = "B"; + } else if ("1".equals(gz)) { + gzbm = "C"; + } else if ("2".equals(gz)) { + gzbm = "D"; + } + // ͭ + str2[j][0] = gzbm; + // + str2[j][1] = map.get("JZTJ"); + // ͭ + str2[j][2] = map.get("TJDW"); + // + str2[j][3] = map.get("TJCJLDZS"); + // + str2[j][4] = map.get("JZLJ"); + // + str2[j][5] = map.get("LJDW"); + // + str2[j][6] = map.get("LJCJLDZS"); } - // ͭ - str2[j][0] = gzbm; - // - str2[j][1] = map.get("JZTJ"); - // ͭ - str2[j][2] = map.get("TJDW"); - // - str2[j][3] = map.get("TJCJLDZS"); - // - str2[j][4] = map.get("JZLJ"); - // - str2[j][5] = map.get("LJDW"); - // - str2[j][6] = map.get("LJCJLDZS"); } + } + + ZOEM_PRICE_DIFFERENCE_RATE info = new ZOEM_PRICE_DIFFERENCE_RATE(); String[] ret = info.Getexecute(str, str2); state = ret[0];