#xinfengYin-21# SAP204-成品差价率维护流程02

ht
xinfengYin 1 month ago
parent 2709b5adbf
commit ff869f8a5c

@ -55,7 +55,7 @@ public class ZOEM_PRICE_DIFFERENCE_RATE_Action extends BaseBean implements Actio
// } // }
// <20><>ϸ<EFBFBD><CFB8>1 // <20><>ϸ<EFBFBD><CFB8>1
DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable(); 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]; DetailTable dtq = detailtable[0];
log.error("length" + detailtable.length); log.error("length" + detailtable.length);
Row[] sq = dtq.getRow(); Row[] sq = dtq.getRow();
@ -107,47 +107,55 @@ public class ZOEM_PRICE_DIFFERENCE_RATE_Action extends BaseBean implements Actio
} }
} }
// <20><>ϸ<EFBFBD><CFB8>2 // <20><>ϸ<EFBFBD><CFB8>2
DetailTable dtq2 = detailtable[1];
Row[] sq2 = dtq2.getRow(); DetailTable dtq2 ;
StringBuilder sb2 = new StringBuilder(); String[][] str2 = new String[][]{};
String[][] str2 = new String[sq2.length][7]; if(detailtable.length >1){
if (sq2.length > 0) { dtq2 =detailtable[1];
for (int j = 0; j < sq2.length; j++) { Row[] sq2 = dtq2.getRow();
Row rq = sq2[j]; StringBuilder sb2 = new StringBuilder();
Cell[] cq = rq.getCell(); str2= new String[sq2.length][7];
Map<String, String> map = new HashMap<String, String>(); if (sq2.length > 0) {
for (int k = 0; k < cq.length; k++) { for (int j = 0; j < sq2.length; j++) {
Cell cq1 = cq[k]; Row rq = sq2[j];
String nameq = cq1.getName().toUpperCase(); Cell[] cq = rq.getCell();
String valueq = Util.null2String(cq1.getValue()); Map<String, String> map = new HashMap<String, String>();
map.put(nameq, valueq); for (int k = 0; k < cq.length; k++) {
} Cell cq1 = cq[k];
log.error("map2--" + map); String nameq = cq1.getName().toUpperCase();
String gz = map.get("TLZFGZ"); String valueq = Util.null2String(cq1.getValue());
String gzbm = ""; map.put(nameq, valueq);
if ("0".equals(gz)) { }
gzbm = "B"; log.error("map2--" + map);
} else if ("1".equals(gz)) { String gz = map.get("TLZFGZ");
gzbm = "C"; String gzbm = "";
} else if ("2".equals(gz)) { if ("0".equals(gz)) {
gzbm = "D"; 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(); ZOEM_PRICE_DIFFERENCE_RATE info = new ZOEM_PRICE_DIFFERENCE_RATE();
String[] ret = info.Getexecute(str, str2); String[] ret = info.Getexecute(str, str2);
state = ret[0]; state = ret[0];

Loading…
Cancel
Save