|
|
@ -835,9 +835,12 @@ public class HighOrderController { |
|
|
|
@RequestMapping(value = "/TyOrderStatistics", method = RequestMethod.POST) |
|
|
|
@RequestMapping(value = "/TyOrderStatistics", method = RequestMethod.POST) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "团油订单统计") |
|
|
|
@ApiOperation(value = "团油订单统计") |
|
|
|
public ResponseData TyOrderStatistics(@RequestBody JSONObject object) { |
|
|
|
public ResponseData TyOrderStatistics(@RequestBody JSONObject object,HttpServletRequest request) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SessionObject sessionObject = userCenter.getSessionObject(request); |
|
|
|
|
|
|
|
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> mapSam = new HashMap<>(); |
|
|
|
Map<String, Object> mapSam = new HashMap<>(); |
|
|
|
Map<String, Object> mapOrg = new HashMap<>(); |
|
|
|
Map<String, Object> mapOrg = new HashMap<>(); |
|
|
@ -866,7 +869,7 @@ public class HighOrderController { |
|
|
|
salesmanIds.setLength(0); |
|
|
|
salesmanIds.setLength(0); |
|
|
|
// 查询业务员
|
|
|
|
// 查询业务员
|
|
|
|
mapOrg.put("tyAgentId" , object.getInteger("agentId")); |
|
|
|
mapOrg.put("tyAgentId" , object.getInteger("agentId")); |
|
|
|
List<HighTySalesman> salesmanList = highTySalesmanService.getSalesmanList(mapSam); |
|
|
|
List<HighTySalesman> salesmanList = highTySalesmanService.getSalesmanList(mapOrg); |
|
|
|
for (HighTySalesman salesman: salesmanList) { |
|
|
|
for (HighTySalesman salesman: salesmanList) { |
|
|
|
salesmanIds.append(salesman.getId()).append(","); |
|
|
|
salesmanIds.append(salesman.getId()).append(","); |
|
|
|
} |
|
|
|
} |
|
|
@ -877,6 +880,8 @@ public class HighOrderController { |
|
|
|
salesmanIds.setLength(0); |
|
|
|
salesmanIds.setLength(0); |
|
|
|
salesmanIds.append(object.getInteger("gasSalesmanId")); |
|
|
|
salesmanIds.append(object.getInteger("gasSalesmanId")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (!(userInfoModel.getSecRole().getRoleType() == 5 && userInfoModel.getSecUser().getAdminFlag() ==1)){ |
|
|
|
|
|
|
|
salesmanIds.append(0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (salesmanIds.length() == 0) { |
|
|
|
if (salesmanIds.length() == 0) { |
|
|
|