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