|
@@ -124,8 +124,9 @@ public class ExcelServiceImpl implements IExcelService {
|
|
String companyName = map.get(2);
|
|
String companyName = map.get(2);
|
|
String orderSn = map.get(3);
|
|
String orderSn = map.get(3);
|
|
String agentName = map.get(4);
|
|
String agentName = map.get(4);
|
|
|
|
+ String buyDate = map.get(5);
|
|
CameraOutTypeEnum outTypeEnum = CameraOutTypeEnum.getByMsg(outTypeString);
|
|
CameraOutTypeEnum outTypeEnum = CameraOutTypeEnum.getByMsg(outTypeString);
|
|
- if(outTypeEnum == null || StringUtils.isBlank(snCode)){
|
|
|
|
|
|
+ if(outTypeEnum == null || StringUtils.isBlank(snCode) || StringUtils.isBlank(buyDate)){
|
|
log.error("outError-->出库错误:出库类型为空或snCode为空:snCode:{},outType:{},companyName:{},orderSn:{},agentName:{}"
|
|
log.error("outError-->出库错误:出库类型为空或snCode为空:snCode:{},outType:{},companyName:{},orderSn:{},agentName:{}"
|
|
,snCode,outTypeString,companyName,orderSn,agentName);
|
|
,snCode,outTypeString,companyName,orderSn,agentName);
|
|
errorIndex.add(index -3);
|
|
errorIndex.add(index -3);
|
|
@@ -135,6 +136,7 @@ public class ExcelServiceImpl implements IExcelService {
|
|
int outType = outTypeEnum.getCode();
|
|
int outType = outTypeEnum.getCode();
|
|
param.setOutType(outType);
|
|
param.setOutType(outType);
|
|
}
|
|
}
|
|
|
|
+ param.setBuyDate(buyDate);
|
|
if(StringUtils.isNotBlank(agentName)){
|
|
if(StringUtils.isNotBlank(agentName)){
|
|
AgentNew agentNew = agentNewService.getByName(agentName);
|
|
AgentNew agentNew = agentNewService.getByName(agentName);
|
|
if(agentNew == null){
|
|
if(agentNew == null){
|