|
|
|
@ -332,8 +332,11 @@ public class HighTyAgentOilStationController { |
|
|
|
|
public ResponseData getOrderList(@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
|
@RequestParam(name = "goodsName", required = false) String goodsName, |
|
|
|
|
@RequestParam(name = "salesmanName", required = false) String salesmanName, |
|
|
|
|
@RequestParam(name = "salesmanId", required = false) Long salesmanId, |
|
|
|
|
@RequestParam(name = "agentName", required = false) String agentName, |
|
|
|
|
@RequestParam(name = "agentId", required = false) Long agentId, |
|
|
|
|
@RequestParam(name = "orgName", required = false) String orgName, |
|
|
|
|
@RequestParam(name = "orgId", required = false) Long orgId, |
|
|
|
|
@RequestParam(name = "memPhone", required = false) String memPhone, |
|
|
|
|
@RequestParam(name = "payTimeS", required = false) Long payTimeS, |
|
|
|
|
@RequestParam(name = "payTimeE", required = false) Long payTimeE, |
|
|
|
@ -359,17 +362,23 @@ public class HighTyAgentOilStationController { |
|
|
|
|
if (userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(1)) { |
|
|
|
|
param.put("companyId", userModel.getBsCompany().getId()); |
|
|
|
|
param.put("orgName", orgName); |
|
|
|
|
param.put("orgId", orgId); |
|
|
|
|
param.put("agentName", agentName); |
|
|
|
|
param.put("agentId", agentId); |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("salesmanId", salesmanId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(0)) { |
|
|
|
|
param.put("orgId", userModel.getBsOrganization().getId()); |
|
|
|
|
param.put("agentName", agentName); |
|
|
|
|
param.put("agentId", agentId); |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("salesmanId", salesmanId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) { |
|
|
|
|
param.put("agentId", userModel.getHighTyAgent().getId()); |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("salesmanId", salesmanId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type7.getType())) { |
|
|
|
|
param.put("salesmanId", userModel.getHighTySalesman().getId()); |
|
|
|
@ -391,11 +400,14 @@ public class HighTyAgentOilStationController { |
|
|
|
|
public ResponseData excelOrder(@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
|
@RequestParam(name = "goodsName", required = false) String goodsName, |
|
|
|
|
@RequestParam(name = "salesmanName", required = false) String salesmanName, |
|
|
|
|
@RequestParam(name = "salesmanId", required = false) Long salesmanId, |
|
|
|
|
@RequestParam(name = "agentName", required = false) String agentName, |
|
|
|
|
@RequestParam(name = "agentId", required = false) Long agentId, |
|
|
|
|
@RequestParam(name = "orgName", required = false) String orgName, |
|
|
|
|
@RequestParam(name = "orgId", required = false) Long orgId, |
|
|
|
|
@RequestParam(name = "memPhone", required = false) String memPhone, |
|
|
|
|
@RequestParam(name = "payTimeS", required = false) Long payTimeS, |
|
|
|
|
@RequestParam(name = "payTimeE", required = false) Long payTimeE, |
|
|
|
|
@RequestParam(name = "agentName", required = false) String agentName, |
|
|
|
|
@RequestParam(name = "orgName", required = false) String orgName) { |
|
|
|
|
@RequestParam(name = "payTimeE", required = false) Long payTimeE) { |
|
|
|
|
try { |
|
|
|
|
UserInfoModel userModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
|
if (userModel == null) { |
|
|
|
@ -416,17 +428,23 @@ public class HighTyAgentOilStationController { |
|
|
|
|
if (userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(1)) { |
|
|
|
|
param.put("companyId", userModel.getBsCompany().getId()); |
|
|
|
|
param.put("orgName", orgName); |
|
|
|
|
param.put("orgId", orgId); |
|
|
|
|
param.put("agentName", agentName); |
|
|
|
|
param.put("agentId", agentId); |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("salesmanId", salesmanId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(0)) { |
|
|
|
|
param.put("orgId", userModel.getBsOrganization().getId()); |
|
|
|
|
param.put("agentName", agentName); |
|
|
|
|
param.put("agentId", agentId); |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("salesmanId", salesmanId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) { |
|
|
|
|
param.put("agentId", userModel.getHighTyAgent().getId()); |
|
|
|
|
param.put("salesmanName", salesmanName); |
|
|
|
|
param.put("salesmanId", salesmanId); |
|
|
|
|
|
|
|
|
|
} else if (userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type7.getType())) { |
|
|
|
|
param.put("salesmanId", userModel.getHighTySalesman().getId()); |
|
|
|
@ -442,7 +460,7 @@ public class HighTyAgentOilStationController { |
|
|
|
|
if (userModel.getBsCompany() != null) { |
|
|
|
|
headList.add("代理商"); |
|
|
|
|
} |
|
|
|
|
if (userModel.getBsCompany() != null || userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) { |
|
|
|
|
if ((userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(1)) || userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) { |
|
|
|
|
headList.add("业务员"); |
|
|
|
|
} |
|
|
|
|
if (userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(1)) { |
|
|
|
@ -473,7 +491,7 @@ public class HighTyAgentOilStationController { |
|
|
|
|
if (userModel.getBsCompany() != null) { |
|
|
|
|
data.add(orderModel.getAgentName()); |
|
|
|
|
} |
|
|
|
|
if (userModel.getBsCompany() != null || userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) { |
|
|
|
|
if ((userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(1)) || userModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) { |
|
|
|
|
data.add(orderModel.getSalesmanName()); |
|
|
|
|
} |
|
|
|
|
if (userModel.getBsCompany() != null && userModel.getSecUser().getAdminFlag().equals(1)) { |
|
|
|
|