|
|
|
@ -177,6 +177,7 @@ public class BsDeviceController { |
|
|
|
|
@RequestParam(name = "agentName", required = false) String agentName, |
|
|
|
|
@RequestParam(name = "salesmanName", required = false) String salesmanName, |
|
|
|
|
@RequestParam(name = "merName", required = false) String merName, |
|
|
|
|
@RequestParam(name = "storeId", required = false) String storeId, |
|
|
|
|
@RequestParam(name = "storeName", required = false) String storeName, |
|
|
|
|
@RequestParam(name = "deviceType", required = false) Integer deviceType, |
|
|
|
|
@RequestParam(name = "deviceNo", required = false) String deviceNo, |
|
|
|
@ -202,6 +203,7 @@ public class BsDeviceController { |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("merName", merName); |
|
|
|
|
param.put("storeName", storeName); |
|
|
|
|
param.put("storeId", storeId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(SecUserTypeEnum.type1.getNumber())) { |
|
|
|
|
param.put("companyId", userModel.getBsCompany().getId()); |
|
|
|
@ -209,21 +211,25 @@ public class BsDeviceController { |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("merName", merName); |
|
|
|
|
param.put("storeName", storeName); |
|
|
|
|
param.put("storeId", storeId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(SecUserTypeEnum.type2.getNumber())) { |
|
|
|
|
param.put("agentId", userModel.getAgent().getId()); |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("merName", merName); |
|
|
|
|
param.put("storeName", storeName); |
|
|
|
|
param.put("storeId", storeId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(SecUserTypeEnum.type3.getNumber())) { |
|
|
|
|
param.put("salesmanId", userModel.getSalesman().getId()); |
|
|
|
|
param.put("merName", merName); |
|
|
|
|
param.put("storeName", storeName); |
|
|
|
|
param.put("storeId", storeId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(SecUserTypeEnum.type4.getNumber())) { |
|
|
|
|
param.put("merId", userModel.getMer().getId()); |
|
|
|
|
param.put("storeName", storeName); |
|
|
|
|
param.put("storeId", storeId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(SecUserTypeEnum.type5.getNumber())) { |
|
|
|
|
param.put("storeId", userModel.getStore().getId()); |
|
|
|
|