Commit d69424ef by wancheng

物料导入优化

parent 0dbe592d
...@@ -115,9 +115,21 @@ public class XlsImporter implements Importer { ...@@ -115,9 +115,21 @@ public class XlsImporter implements Importer {
if(keyCname.equals(cell.getContents())){ if(keyCname.equals(cell.getContents())){
//处理字典 //处理字典
if (columnValue.indexOf("-") > 0) { /* if (columnValue.indexOf("-") > 0) {
beanValue.put(keyValue, columnValue.split("-")[0]); beanValue.put(keyValue, columnValue.split("-")[0]);
continue; continue;
}*/
if (columnValue.equals("3-零件")) {
beanValue.put(keyValue, "3");
continue;
}
if (columnValue.equals("4-部件")) {
beanValue.put(keyValue, "4");
continue;
}
if (columnValue.equals("2-耗材")) {
beanValue.put(keyValue, "2");
continue;
} }
//数字进行特定转换 //数字进行特定转换
if (column.getType()=="N"){ if (column.getType()=="N"){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment