作者 shenhailong

添加安检申报 货物品名后台判断是否为空

@@ -200,6 +200,7 @@ public class SecurityDeclarationController { @@ -200,6 +200,7 @@ public class SecurityDeclarationController {
200 sdCargoTypeService.save(sdCargoTypeEntity); 200 sdCargoTypeService.save(sdCargoTypeEntity);
201 } 201 }
202 202
  203 + if(StringUtils.isBlank(cargoName)){
203 //货物品名 204 //货物品名
204 String cName = cargoName.replaceAll(",", ","); 205 String cName = cargoName.replaceAll(",", ",");
205 String[] split = cName.split(","); 206 String[] split = cName.split(",");
@@ -211,6 +212,8 @@ public class SecurityDeclarationController { @@ -211,6 +212,8 @@ public class SecurityDeclarationController {
211 sdCargoNameService.save(sdCargoNameEntity); 212 sdCargoNameService.save(sdCargoNameEntity);
212 } 213 }
213 } 214 }
  215 + }
  216 +
214 217
215 UserEntity ue = (UserEntity)SecurityUtils.getSubject().getSession().getAttribute("user"); 218 UserEntity ue = (UserEntity)SecurityUtils.getSubject().getSession().getAttribute("user");
216 //添加安检申报 219 //添加安检申报