diff --git a/pom.xml b/pom.xml
index 14a9e8a5..50b8db46 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
2.2
7.6.14.v20131031
- 8080
+ 8081
UTF-8
diff --git a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java
index ac9fa4f4..a92329d9 100644
--- a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java
+++ b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java
@@ -1817,19 +1817,17 @@ public class WmOmNoticeHController extends BaseController {
params.setHeadRows(1);
params.setNeedSave(true);
try {
-
-
List listfirst = ExcelImportUtil.importExcel(file.getInputStream(), WmOmNoticeImpPage.class, params);
List list = new ArrayList();
-
+ List listheader = new ArrayList();
for(WmOmNoticeImpPage t:listfirst){
WmNoticeImpPage wmNoticeImpPage = new WmNoticeImpPage();
wmNoticeImpPage.setOrderTypeCode("11");
wmNoticeImpPage.setImCusCode(t.getImCusCode());//三方单号
wmNoticeImpPage.setImBeizhu(t.getImBeizhu());//备注
try{
- wmNoticeImpPage.setGoodsId(wmUtil.getGoodsId(t.getGoodsId(),t.getGoodsUnit()).get("goodsCode"));
- wmNoticeImpPage.setCusCode(wmUtil.getGoodsId(t.getGoodsId(),t.getGoodsUnit()).get("cusCode"));
+ wmNoticeImpPage.setGoodsId(wmUtil.getGoodsId(t.getCusCode(),t.getGoodsId(),t.getGoodsUnit()).get("goodsCode"));
+// wmNoticeImpPage.setCusCode(wmUtil.getGoodsId(t.getGoodsId(),t.getGoodsUnit()).get("cusCode"));
}catch (Exception e){
}
@@ -1837,7 +1835,7 @@ public class WmOmNoticeHController extends BaseController {
wmNoticeImpPage.setGoodsQua(t.getGoodsQua());//数量
wmNoticeImpPage.setGoodsUnit(t.getGoodsUnit());//单位
list.add(wmNoticeImpPage);
-
+ listheader.add(wmNoticeImpPage);
}
//第二类简单模板
@@ -1848,15 +1846,14 @@ public class WmOmNoticeHController extends BaseController {
MvGoodsEntity.class, "goodsCode", wmt.getGoodsId());
if(mvgoods==null){
flag = "N";
- message=message+wmt.getGoodsId();
+ message=message+wmt.getGoodsName();
}
}
if("N".equals(flag)){
j.setMsg(message+"不存在");
return j;
}
- List listheader = ExcelImportUtil.importExcel(
- file.getInputStream(), WmNoticeImpPage.class, params);
+
for(int i=0;ii;k--){
if(listheader.get(k).getImCusCode().equals(listheader.get(i).getImCusCode())) {
diff --git a/src/main/java/com/zzjee/wm/page/WmOmNoticeImpPage.java b/src/main/java/com/zzjee/wm/page/WmOmNoticeImpPage.java
index 1981c95d..4d13db61 100644
--- a/src/main/java/com/zzjee/wm/page/WmOmNoticeImpPage.java
+++ b/src/main/java/com/zzjee/wm/page/WmOmNoticeImpPage.java
@@ -45,7 +45,7 @@ public class WmOmNoticeImpPage implements java.io.Serializable {
private String sysCompanyCode;
/**客户编码*/
-
+ @Excel(name="客户编码")
private String cusCode;
/**预计到货时间*/
@@ -70,7 +70,7 @@ public class WmOmNoticeImpPage implements java.io.Serializable {
private String supName;
private String otherId;
- @Excel(name="商品")
+ @Excel(name="商品编号")
private String goodsId;
@Excel(name="商品名称")
diff --git a/src/main/java/com/zzjee/wmutil/wmUtil.java b/src/main/java/com/zzjee/wmutil/wmUtil.java
index 9d84029c..68f966ad 100644
--- a/src/main/java/com/zzjee/wmutil/wmUtil.java
+++ b/src/main/java/com/zzjee/wmutil/wmUtil.java
@@ -43,14 +43,13 @@ public class wmUtil {
return list;
}
//通过客户商品编码,或者WMS商品编码和单位找到WMS编码
- public static Map getGoodsId(String cusgoodsid,String goodsUnit){
+ public static Map getGoodsId(String cusCode,String cusgoodsid,String goodsUnit){
Map resultmap = new HashMap<>();
String goodsCode= null;
- String cusCode= null;
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
String tsql = "select cus_code,chailing, goods_id,goods_code,shp_bian_makh,shl_dan_wei,baseunit" +
- " from mv_goods where goods_id = ? or shp_bian_makh = ? order by chailing desc";
- List