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];