Commit 3cb7d75c authored by hanfeng's avatar hanfeng

Merge branch 'master' into master-modify-background-bug-hf

parents 91d9eb53 c47bfb9e
...@@ -108,17 +108,18 @@ public class BackStageOrderController extends CommonBaseController implements Us ...@@ -108,17 +108,18 @@ public class BackStageOrderController extends CommonBaseController implements Us
@IgnoreClientToken @IgnoreClientToken
@CrossOrigin @CrossOrigin
public ObjectRestResponse<PageDataVO<OrderListVo>> selectByUser(BaseOrderController.QueryOrderList dto) { public ObjectRestResponse<PageDataVO<OrderListVo>> selectByUser(BaseOrderController.QueryOrderList dto) {
if (dto.getStartTime() != null) { UserDTO userDTO = getAdminUserInfo();
if (dto.getEndTime() == null) { if (userDTO == null) {
dto.setEndTime(new Date().getTime()); return ObjectRestResponse.succ(new PageDataVO<>());
} }
}
//车辆排班表查询订单详情 //车辆排班表查询订单详情
if (dto.getOneNo()!=null) { if (dto.getOneNo()!=null) {
dto.setPage(1); dto.setPage(1);
dto.setLimit(1); dto.setLimit(1);
dto.setType(1); dto.setType(1);
} }
if (StringUtils.isNotBlank(dto.getPhone()) || StringUtils.isNotBlank(dto.getRealName())) { if (StringUtils.isNotBlank(dto.getPhone()) || StringUtils.isNotBlank(dto.getRealName())) {
List<AppUserLogin> appUserLoins = userFeign.getOne(dto.getPhone(), dto.getRealName()); List<AppUserLogin> appUserLoins = userFeign.getOne(dto.getPhone(), dto.getRealName());
if (CollectionUtil.isNotEmpty(appUserLoins)) { if (CollectionUtil.isNotEmpty(appUserLoins)) {
...@@ -128,19 +129,11 @@ public class BackStageOrderController extends CommonBaseController implements Us ...@@ -128,19 +129,11 @@ public class BackStageOrderController extends CommonBaseController implements Us
return ObjectRestResponse.succ(new PageDataVO<>()); return ObjectRestResponse.succ(new PageDataVO<>());
} }
} }
//获取权限公司列表
List<BranchCompany> branchCompanies = vehicleFeign.companyAll(userDTO.getDataAll(), userDTO.getDataCompany(), userDTO.getDataZone());
UserDTO userDTO = getAdminUserInfo(); List<Integer> companyId = branchCompanies.stream().map(BranchCompany::getId).collect(Collectors.toList());
if (userDTO == null) { dto.setCompanyIds(companyId);
return ObjectRestResponse.succ(new PageDataVO<>()); //大区搜索
}
//权限
if (userDTO.getDataAll()!=1&&dto.getType() != null && dto.getType() != 3) {
List<BranchCompany> branchCompanies = vehicleFeign.companyAll(userDTO.getDataAll(), userDTO.getDataCompany(), userDTO.getDataZone());
List<Integer> companyIds = branchCompanies.stream().map(BranchCompany::getId).collect(Collectors.toList());
dto.setCompanyIds(companyIds);
}
//大区查询
if (dto.getZoneId() != null) { if (dto.getZoneId() != null) {
if (userDTO.getDataAll() != 1 && !dto.getZoneId().equals(userDTO.getZoneId())) { if (userDTO.getDataAll() != 1 && !dto.getZoneId().equals(userDTO.getZoneId())) {
return ObjectRestResponse.succ(new PageDataVO<>()); return ObjectRestResponse.succ(new PageDataVO<>());
...@@ -451,6 +444,12 @@ public class BackStageOrderController extends CommonBaseController implements Us ...@@ -451,6 +444,12 @@ public class BackStageOrderController extends CommonBaseController implements Us
return baseOrderBiz.save(orderRentVehicleDetail); return baseOrderBiz.save(orderRentVehicleDetail);
} }
@GetMapping(value = "/getAll")
@ResponseBody
public ObjectRestResponse getAllOrderList(BaseOrderController.QueryOrderList dto) {
return backgroundBaseOrderBiz.getAllOrderList(dto);
}
@Data @Data
public static class ChangeVehicleDTO { public static class ChangeVehicleDTO {
String no; String no;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment