| | |
| | | import com.stylefeng.guns.modular.system.util.DateUtil; |
| | | import com.stylefeng.guns.modular.system.util.RedisUtil; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import com.sun.org.apache.regexp.internal.RE; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | |
| | | private ITCarService tCarService; |
| | | |
| | | @Autowired |
| | | private ITTaxiCardService taxiCardService; |
| | | |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | @Autowired |
| | |
| | | |
| | | @Autowired |
| | | private IDriverOnlineService driverOnlineService; |
| | | |
| | | |
| | | @RequestMapping("/openNetCarInfo") |
| | | public Object openNetCarInfo(Integer id, Model model){ |
| | |
| | | zcTodayTme.eq("companyId", companyId); |
| | | } |
| | | int zcTodayNum = itOrderPrivateCarService.selectCount(zcTodayTme); |
| | | map1.put("orderDetail1", zcTodayNum); //快车订单 |
| | | map1.put("orderDetail1", zcTodayNum); //专车订单 |
| | | |
| | | Wrapper<TOrderCrossCity> kcTodayTme = new EntityWrapper<TOrderCrossCity>().between("travelTime", calendar1.getTime(), calendar2.getTime()); |
| | | if(companyId != null){ |
| | |
| | | |
| | | Double allTradeMoney = tOrderTaxiService.getAllTradeMoney(companyId, null, null); |
| | | Double allIncomeMoney = tOrderTaxiService.getAllIncomeMoney(companyId, null, null); |
| | | |
| | | /// 购买打车卡产生的收益 |
| | | double allCardMoney = taxiCardService.AllCardMoney(ShiroKit.getUser().getObjectId()); |
| | | map1.put("paiceSum", allTradeMoney + allCardMoney); //交易总金额 |
| | | map1.put("paySum", allIncomeMoney + allCardMoney); //总收益 |
| | | map1.put("paiceSum", allTradeMoney); //交易总金额 |
| | | map1.put("paySum", allIncomeMoney); //总收益 |
| | | map.put("operationSum", map1); |
| | | |
| | | //【运营数据增长查询】 |
| | |
| | | zcTodayTmeByConditions.eq("companyId", companyId); |
| | | } |
| | | int zcTodayNum1 = itOrderPrivateCarService.selectCount(zcTodayTmeByConditions); |
| | | map1.put("orderDetail1", zcTodayNum1); //快车订单 |
| | | map1.put("orderDetail1", zcTodayNum1); //专车订单 |
| | | |
| | | Wrapper<TOrderTaxi> travelTime2 = new EntityWrapper<TOrderTaxi>().between("travelTime", calendar3.getTime(), calendar4.getTime()); |
| | | if(companyId != null){ |
| | |
| | | Integer allOrderNum = tOrderTaxiService.getAllOrderNum(companyId, startTime1, endTime1); |
| | | m3.add(allOrderNum); |
| | | |
| | | //快车订单趋势图 |
| | | //专车订单趋势图 |
| | | Wrapper<TOrderPrivateCar> inZC = new EntityWrapper<TOrderPrivateCar>().between("travelTime", s1.getTime(), e1.getTime()).in("state", states); |
| | | if(companyId != null){ |
| | | inZC.eq("companyId", companyId); |
| | |
| | | map1.put("orderDetail5", m7); //跨城物流订单数趋势图 |
| | | map1.put("orderDetail4", m6); //同城物流订单数趋势图 |
| | | map1.put("orderDetail3", m5); //跨城订单数趋势图 |
| | | map1.put("orderDetail1", m4); //快车订单数趋势图 |
| | | map1.put("orderDetail1", m4); //专车订单数趋势图 |
| | | map1.put("orderDetailSum", m3); //全部订单数趋势图 |
| | | map1.put("passengerInfoSum", m2); //用户注册趋势图 |
| | | map1.put("orderDetail2", m1); //出租车订单趋势图 |