From e809f5955584e600d8612540ea814977c49774c2 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期三, 27 八月 2025 23:51:54 +0800 Subject: [PATCH] 修改bug --- ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/TOrderPrivateCarServiceImpl.java | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 40 insertions(+), 2 deletions(-) diff --git a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/TOrderPrivateCarServiceImpl.java b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/TOrderPrivateCarServiceImpl.java index 2db46d2..b12e901 100644 --- a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/TOrderPrivateCarServiceImpl.java +++ b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/TOrderPrivateCarServiceImpl.java @@ -5,9 +5,12 @@ import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.plugins.Page; import com.stylefeng.guns.core.util.ToolUtil; +import com.stylefeng.guns.modular.system.model.DriverRankVo; +import com.stylefeng.guns.modular.system.model.TCompany; import com.stylefeng.guns.modular.system.model.TOrderPrivateCar; import com.stylefeng.guns.modular.system.dao.TOrderPrivateCarMapper; import com.stylefeng.guns.modular.system.model.TServerCarmodel; +import com.stylefeng.guns.modular.system.service.ITCompanyService; import com.stylefeng.guns.modular.system.service.ITOrderPrivateCarService; import com.baomidou.mybatisplus.service.impl.ServiceImpl; import com.stylefeng.guns.modular.system.service.ITServerCarmodelService; @@ -31,6 +34,9 @@ @Autowired private ITServerCarmodelService serverCarmodelService; + @Autowired + private ITCompanyService companyService; + @@ -39,8 +45,9 @@ String userPhone, String passengers, String passengersPhone, Integer serverCarModelId, String driver, Integer state, Integer rideType, Integer abnormal, Integer promotion, String promotionUser, - Integer abnormalStatus) { - List<Map<String, Object>> privateCarOrderList = this.baseMapper.getPrivateCarOrderList(page, beginTime, endTime, roleType, nowUserId, orderNum, orderSource, userName, userPhone, passengers, passengersPhone, serverCarModelId, driver, state, rideType, abnormal, promotion, promotionUser,abnormalStatus); + Integer abnormalStatus, + Integer payType) { + List<Map<String, Object>> privateCarOrderList = this.baseMapper.getPrivateCarOrderList(page, beginTime, endTime, roleType, nowUserId, orderNum, orderSource, userName, userPhone, passengers, passengersPhone, serverCarModelId, driver, state, rideType, abnormal, promotion, promotionUser,abnormalStatus, payType); for (Map<String, Object> map : privateCarOrderList) { if(null == map.get("serverCarModelName")){ JSONArray jsonArray = JSON.parseArray(map.get("serverCarModel").toString()); @@ -55,6 +62,13 @@ collect += ToolUtil.isNotEmpty(collect) ? "<br/>出租车" : "出租车"; } map.put("serverCarModelName", collect); + } + + if(null != map.get("companyId")){ + TCompany company = companyService.selectById(map.get("companyId").toString()); + if(company!=null){ + map.put("companyName", company.getName()); + } } } return privateCarOrderList; @@ -81,6 +95,13 @@ } map.put("serverCarModelName", collect); } + + if(null != map.get("companyId")){ + TCompany company = companyService.selectById(map.get("companyId").toString()); + if(company!=null){ + map.put("companyName", company.getName()); + } + } } return privateCarOrderList; } @@ -94,4 +115,21 @@ public List<Map<String, Object>> getSurcharge(Object id, Integer orderType) { return this.baseMapper.getSurcharge(id,orderType); } + + @Override + public List<Map<String, Object>> promotionInfo(Page<Map<String, Object>> page, String beginTime, String endTime, String orderNum, String userName, String name, String driverName, Integer roleType, Integer objectId,Integer driverId,Integer activityId) { + return this.baseMapper.promotionInfo(page, beginTime, endTime, orderNum, userName, name, driverName, roleType, objectId,driverId,activityId); + } + + @Override + public List<Map<String, Object>> promotionInfoExport(Object o, String beginTime, String endTime, String orderNum, String userName, String name, String driverName, Integer roleType, Integer objectId,Integer driverId,Integer activityId) { + return this.baseMapper.promotionInfoExport(beginTime, endTime, orderNum, userName, name, driverName, roleType, objectId,driverId,activityId); + } + + @Override + public List<DriverRankVo> getDriverPromotionActivity(Integer id, String driverName) { + return this.baseMapper.getDriverPromotionActivity(id, driverName); + } + + } -- Gitblit v1.7.1