Просмотр исходного кода

出库类型为经销商判断名称不为空

lyhzzz 2 лет назад
Родитель
Сommit
e99f46b688

+ 3 - 0
src/main/java/com/fdkankan/manage/service/impl/ExcelServiceImpl.java

@@ -130,6 +130,9 @@ public class ExcelServiceImpl implements IExcelService {
                     int outType = outTypeEnum.getCode();
                     param.setOutType(outType);
                 }
+                if(param.getOutType() != null && param.getOutType() == 4 && StringUtils.isBlank(agentName)){
+                    errorIndex.add(index -3);
+                }
                 if(StringUtils.isNotBlank(agentName)){
                     AgentNew agentNew = agentNewService.getByName(agentName);
                     if(agentNew == null){

+ 1 - 1
src/main/java/com/fdkankan/manage/vo/request/CameraInOutParam.java

@@ -6,7 +6,7 @@ import lombok.Data;
 public class CameraInOutParam {
     private Long id;
     private String wifiName;
-    private Integer outType;        //出库类型 0表示正常销售,1表示员工自用,2表示礼品赠送,3表示其他
+    private Integer outType;        //出库类型 0表示正常销售,1表示员工自用,2表示礼品赠送,3表示其他 ,4经销商
     private Long companyId;
     private String orderSn;         //订单号
     private String snCode;