| | |
| | | page.setRecords(tIncomeService.getList(page,id)); |
| | | return super.packForBT(page); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @RequestMapping("/getExcel") |
| | | @ResponseBody |
| | | public void getExcel( |
| | |
| | | List<String> shellList = new ArrayList<String>(); |
| | | shellList.add("日期"); |
| | | shellList.add("活动收入"); |
| | | shellList.add("业务收入"); |
| | | shellList.add("在线支付收入"); |
| | | shellList.add("现金支付收入"); |
| | | |
| | | dataList.add(shellList); |
| | | for (Map<String, Object> map : list) { |
| | |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | | if(SinataUtil.isNotEmpty(map.get("orderMoney"))){ |
| | | shellList.add(map.get("orderMoney").toString()); |
| | | if(SinataUtil.isNotEmpty(map.get("onlineMoney"))){ |
| | | shellList.add(map.get("onlineMoney").toString()); |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | | if(SinataUtil.isNotEmpty(map.get("cashMoney"))){ |
| | | shellList.add(map.get("cashMoney").toString()); |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | |
| | | */ |
| | | @RequestMapping("/tDriver_add") |
| | | public String tDriverAdd(Model model) { |
| | | List<TCompany> companyList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 2)); |
| | | List<TCompany> companyList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 2) |
| | | .eq("state", 0).ne("flag", 3)); |
| | | model.addAttribute("companyList",companyList); |
| | | |
| | | Integer roleType = ShiroKit.getUser().getRoleType(); |
| | |
| | | model.addAttribute("objectName",tCompanyService.selectById(ShiroKit.getUser().getObjectId()).getName()); |
| | | |
| | | if (1 == roleType){ |
| | | List<TCompany> companyList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 2)); |
| | | List<TCompany> companyList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 2).eq("state", 0).ne("flag", 3)); |
| | | model.addAttribute("companyList",companyList); |
| | | List<TCompany> franchiseeList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 3).eq("superiorId",tDriver.getCompanyId())); |
| | | List<TCompany> franchiseeList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 3).eq("superiorId",tDriver.getCompanyId()).eq("state", 0).ne("flag", 3)); |
| | | model.addAttribute("franchiseeList",franchiseeList); |
| | | }else if (2 == roleType){ |
| | | List<TCompany> franchiseeList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 3).eq("superiorId",ShiroKit.getUser().getObjectId())); |
| | | List<TCompany> franchiseeList = tCompanyService.selectList(new EntityWrapper<TCompany>().eq("type", 3).eq("superiorId",ShiroKit.getUser().getObjectId()).eq("state", 0).ne("flag", 3)); |
| | | model.addAttribute("franchiseeList",franchiseeList); |
| | | } |
| | | |
| | | //查询平台ID |
| | | TCompany company = tCompanyService.selectOne(new EntityWrapper<TCompany>().eq("type", 1)); |
| | | TCompany company = tCompanyService.selectOne(new EntityWrapper<TCompany>().eq("type", 1).eq("state", 0).ne("flag", 3)); |
| | | //判断是平台司机还是加盟司机 |
| | | if ((SinataUtil.isEmpty(tDriver.getCompanyId()) || tDriver.getCompanyId() == 0 || tDriver.getCompanyId() == company.getId()) && (SinataUtil.isEmpty(tDriver.getFranchiseeId()) || tDriver.getFranchiseeId() == 0)){ |
| | | model.addAttribute("companyType",1); |
| | |
| | | for (int i = 0; i < 5; i++) { |
| | | updateTrip = fleetEngineUtil.updateTrip("CANCELED", (null != car ? car.getVehicleId() : null), null, tOrderLogistics.getTripId(), null, null, null, null); |
| | | if(updateTrip){ |
| | | tOrderLogistics.setIsover(1); |
| | | tOrderLogisticsService.updateById(tOrderLogistics); |
| | | break; |
| | | } |
| | | try { |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | }else{ |
| | | tOrderLogistics.setIsover(1); |
| | | tOrderLogisticsService.updateById(tOrderLogistics); |
| | | } |
| | | |
| | | |
| | |
| | | for (int i = 0; i < 5; i++) { |
| | | updateTrip = fleetEngineUtil.updateTrip("COMPLETE", null, null, orderPrivateCar.getTripId(), null, null, null, null); |
| | | if(updateTrip){ |
| | | orderPrivateCar.setIsover(1); |
| | | tOrderPrivateCarService.updateById(orderPrivateCar); |
| | | break; |
| | | } |
| | | try { |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | }else{ |
| | | orderPrivateCar.setIsover(1); |
| | | tOrderPrivateCarService.updateById(orderPrivateCar); |
| | | } |
| | | //上报行程 |
| | | boolean reportBillableEvent = fleetEngineUtil.reportBillableEvent(orderPrivateCar.getTripId()); |
| | |
| | | for (int i = 0; i < 5; i++) { |
| | | updateTrip = fleetEngineUtil.updateTrip("CANCELED", (null != car ? car.getVehicleId() : null), null, tOrderPrivateCar.getTripId(), null, null, null, null); |
| | | if(updateTrip){ |
| | | tOrderPrivateCar.setIsover(1); |
| | | tOrderPrivateCarService.updateById(tOrderPrivateCar); |
| | | break; |
| | | } |
| | | try { |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | }else{ |
| | | tOrderPrivateCar.setIsover(1); |
| | | tOrderPrivateCarService.updateById(tOrderPrivateCar); |
| | | } |
| | | |
| | | |
| | |
| | | </resultMap> |
| | | <select id="getList" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page"> |
| | | SELECT |
| | | date_format(insertTime, '%Y-%m-%d') times, |
| | | SUM( |
| | | CASE |
| | | WHEN type = 1 THEN |
| | | money |
| | | ELSE |
| | | 0 |
| | | END |
| | | ) activityMoney, |
| | | SUM( |
| | | CASE |
| | | WHEN type = 1 THEN |
| | | 0 |
| | | ELSE |
| | | money |
| | | END |
| | | ) orderMoney |
| | | FROM |
| | | t_income |
| | | WHERE userType=2 AND objectId=#{id} |
| | | GROUP BY |
| | | date_format(insertTime, '%Y-%m-%d') |
| | | ORDER BY date_format(insertTime, '%Y-%m-%d') DESC |
| | | aa.times, |
| | | ROUND(sum(aa.activityMoney), 2) as activityMoney, |
| | | ROUND(sum(aa.onlineMoney), 2) as onlineMoney, |
| | | ROUND(sum(aa.cashMoney), 2) as cashMoney |
| | | FROM ( |
| | | SELECT |
| | | date_format(insertTime, '%Y-%m-%d') times, |
| | | SUM(CASE WHEN type = 1 THEN money ELSE 0 END) activityMoney, |
| | | SUM(CASE WHEN type = 1 THEN 0 ELSE money END) onlineMoney, |
| | | 0 cashMoney |
| | | FROM |
| | | t_income |
| | | WHERE userType=2 AND objectId=#{id} GROUP BY date_format(insertTime, '%Y-%m-%d') |
| | | union all |
| | | select date_format(travelTime, '%Y-%m-%d') times, 0, 0, ROUND(sum(payMoney), 2) from t_order_private_car where driverId = #{id} and payType = 4 and state in (8, 9) and isDelete = 1 GROUP BY date_format(travelTime, '%Y-%m-%d') |
| | | union all |
| | | select date_format(travelTime, '%Y-%m-%d') times, 0, 0, ROUND(sum(payMoney), 2) from t_order_logistics where driverId = #{id} and payType = 4 and state in (8, 9) and isDelete = 1 GROUP BY date_format(travelTime, '%Y-%m-%d') |
| | | ) AS aa GROUP BY aa.times ORDER BY aa.times DESC |
| | | </select> |
| | | <select id="getExcelList" resultType="map"> |
| | | SELECT |
| | | date_format(insertTime, '%Y-%m-%d') times, |
| | | SUM( |
| | | CASE |
| | | WHEN type = 1 THEN |
| | | money |
| | | ELSE |
| | | 0 |
| | | END |
| | | ) activityMoney, |
| | | SUM( |
| | | CASE |
| | | WHEN type = 1 THEN |
| | | 0 |
| | | ELSE |
| | | money |
| | | END |
| | | ) orderMoney |
| | | FROM |
| | | t_income |
| | | WHERE userType=2 AND objectId=#{id} |
| | | GROUP BY |
| | | date_format(insertTime, '%Y-%m-%d') |
| | | ORDER BY date_format(insertTime, '%Y-%m-%d') DESC |
| | | SELECT |
| | | aa.times, |
| | | ROUND(sum(aa.activityMoney), 2) as activityMoney, |
| | | ROUND(sum(aa.onlineMoney), 2) as onlineMoney, |
| | | ROUND(sum(aa.cashMoney), 2) as cashMoney |
| | | FROM ( |
| | | SELECT |
| | | date_format(insertTime, '%Y-%m-%d') times, |
| | | SUM(CASE WHEN type = 1 THEN money ELSE 0 END) activityMoney, |
| | | SUM(CASE WHEN type = 1 THEN 0 ELSE money END) onlineMoney, |
| | | 0 cashMoney |
| | | FROM |
| | | t_income |
| | | WHERE userType=2 AND objectId=#{id} GROUP BY date_format(insertTime, '%Y-%m-%d') |
| | | union all |
| | | select date_format(travelTime, '%Y-%m-%d') times, 0, 0, ROUND(sum(payMoney), 2) from t_order_private_car where driverId = #{id} and payType = 4 and state in (8, 9) and isDelete = 1 GROUP BY date_format(travelTime, '%Y-%m-%d') |
| | | union all |
| | | select date_format(travelTime, '%Y-%m-%d') times, 0, 0, ROUND(sum(payMoney), 2) from t_order_logistics where driverId = #{id} and payType = 4 and state in (8, 9) and isDelete = 1 GROUP BY date_format(travelTime, '%Y-%m-%d') |
| | | ) AS aa GROUP BY aa.times ORDER BY aa.times DESC |
| | | </select> |
| | | <select id="getList1" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page"> |
| | | select aa.startTime as times, aa.driverNum, bb.duration as timeNumber from ( |
| | |
| | | sum(aa.cancelNum) as cancelNum, |
| | | sum(aa.onlinePay) as onlinePay, |
| | | sum(aa.offlinePay) as offlinePay, |
| | | sum(aa.money) as money, |
| | | ROUND(sum(aa.money), 2) as money, |
| | | sum(aa.complaint) as complaint |
| | | from ( |
| | | select DATE_FORMAT(insertTime, '%Y-%m-%d') as time, count(id) as register, 0 as `online`, 0 as orderNum, 0 as cancelNum, 0 as onlinePay, 0 as offlinePay, 0 as money, 0 as complaint |
| | |
| | | </if> |
| | | group by DATE_FORMAT(a.startTime, '%Y-%m-%d') |
| | | union all |
| | | <if test="1 == type"> |
| | | <if test="null == type or 1 == type"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, count(id), 0, 0, 0, 0, 0 from t_order_private_car where isDelete = 1 |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="2 == type"> |
| | | <if test="null == type or 2 == type"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, count(id), 0, 0, 0, 0, 0 from t_order_taxi where isDelete = 1 |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="3 == type"> |
| | | <if test="null == type or 3 == type"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, count(id), 0, 0, 0, 0, 0 from t_order_cross_city where isDelete = 1 |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="4 == type"> |
| | | <if test="null == type or 4 == type"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, count(id), 0, 0, 0, 0, 0 from t_order_logistics where isDelete = 1 |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 1"> |
| | | <if test="null == type or type == 1"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, count(id), 0, 0, 0, 0 from t_order_private_car where isDelete = 1 and state in (10, 12) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 2"> |
| | | <if test="null == type or type == 2"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, count(id), 0, 0, 0, 0 from t_order_taxi where isDelete = 1 and state in (10, 12) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 3"> |
| | | <if test="null == type or type == 3"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, count(id), 0, 0, 0, 0 from t_order_cross_city where isDelete = 1 and state in (10, 12) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 4"> |
| | | <if test="null == type or type == 4"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, count(id), 0, 0, 0, 0 from t_order_logistics where isDelete = 1 and state in (10, 12) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 1"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_private_car where isDelete = 1 and payManner = 1 |
| | | <if test="null == type or type == 1"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_private_car where isDelete = 1 and payType in (1, 2, 3) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | |
| | | select DATE_FORMAT(insertTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(money), 0 from t_order_cancel where orderType = 1 |
| | | <if test="null != companyId"> |
| | | and orderId in (select id from t_order_private_car where isDelete = 1 and companyId = #{companyId} and state = 10) |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(insertTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | group by DATE_FORMAT(insertTime, '%Y-%m-%d') |
| | | union all |
| | | |
| | | </if> |
| | | <if test="null == type or type == 2"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_taxi where isDelete = 1 and payType in (1, 2, 3) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 2"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_taxi where isDelete = 1 and payManner = 1 |
| | | <if test="null == type or type == 3"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_cross_city where isDelete = 1 and payType in (1, 2, 3) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 3"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_cross_city where isDelete = 1 and payManner = 1 |
| | | <if test="null == type or type == 4"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_logistics where isDelete = 1 and payType in (1, 2, 3) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | select DATE_FORMAT(insertTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(money), 0 from t_order_cancel where orderType = 4 |
| | | <if test="null != companyId"> |
| | | and orderId in (select id from t_order_logistics where isDelete = 1 and companyId = #{companyId} and state = 10) |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(insertTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | group by DATE_FORMAT(insertTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="null == type or type == 1"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), sum(payMoney), 0 from t_order_private_car where isDelete = 1 and payType in (4) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 4"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(payMoney), 0 from t_order_logistics where isDelete = 1 and payManner = 1 |
| | | <if test="null == type or type == 2"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), sum(payMoney), 0 from t_order_taxi where isDelete = 1 and payType in (4) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 1"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), 0, 0 from t_order_private_car where isDelete = 1 and payManner = 2 |
| | | <if test="null == type or type == 3"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), sum(payMoney), 0 from t_order_cross_city where isDelete = 1 and payType in (4) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 2"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), 0, 0 from t_order_taxi where isDelete = 1 and payManner = 2 |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 3"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), 0, 0 from t_order_cross_city where isDelete = 1 and payManner = 2 |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | </if> |
| | | <if test="type == 4"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), 0, 0 from t_order_logistics where isDelete = 1 and payManner = 2 |
| | | <if test="null == type or type == 4"> |
| | | select DATE_FORMAT(travelTime, '%Y-%m-%d'), 0, 0, 0, 0, 0, count(id), sum(payMoney), 0 from t_order_logistics where isDelete = 1 and payType in (4) |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | </if> |
| | |
| | | IFNULL(topc1.num, 0) as privateCarTotalNum, |
| | | IFNULL(topc2.num, 0) as privateCarNotPayNum, |
| | | IFNULL(topc3.num, 0) as privateCarcancelNum, |
| | | IFNULL(topc4.taxiMoney, 0) as privateCarTotalMoney, |
| | | IFNULL(topc4.taxiMoney, 0) + IFNULL(topc11.taxiMoney, 0) as privateCarTotalMoney, |
| | | IFNULL(topc5.taxiMoney, 0) as privateCarNotPayMoney, |
| | | </if> |
| | | <if test="4 == type"> |
| | | IFNULL(topc6.num, 0) as privateCarTotalNum, |
| | | IFNULL(topc7.num, 0) as privateCarNotPayNum, |
| | | IFNULL(topc8.num, 0) as privateCarcancelNum, |
| | | IFNULL(topc9.taxiMoney, 0) + IFNULL(topc12.taxiMoney, 0) as privateCarTotalMoney, |
| | | IFNULL(topc10.taxiMoney, 0) as privateCarNotPayMoney, |
| | | </if> |
| | | <if test="null == type"> |
| | | IFNULL(topc1.num, 0) + IFNULL(topc6.num, 0) as privateCarTotalNum, |
| | | IFNULL(topc2.num, 0) + IFNULL(topc7.num, 0) as privateCarNotPayNum, |
| | | IFNULL(topc3.num, 0) + IFNULL(topc8.num, 0) as privateCarcancelNum, |
| | | IFNULL(topc4.taxiMoney, 0) + IFNULL(topc9.taxiMoney, 0) + IFNULL(topc11.taxiMoney, 0) + IFNULL(topc12.taxiMoney, 0) as privateCarTotalMoney, |
| | | IFNULL(topc5.taxiMoney, 0) + IFNULL(topc10.taxiMoney, 0) as privateCarNotPayMoney, |
| | | </if> |
| | | td.state as driverState, |
| | | td.phone as driverPhone |
| | |
| | | t_driver td |
| | | LEFT JOIN (SELECT id,name FROM t_company WHERE FIND_IN_SET(type, '1,2') AND flag != 3 ) AS tc1 ON td.companyId=tc1.id |
| | | LEFT JOIN ( SELECT id,name FROM t_company WHERE type = 3 AND flag != 3 ) AS tc2 ON tc2.id = td.franchiseeId |
| | | <if test="1 == type"> |
| | | <if test="null == type or 1 == type"> |
| | | LEFT JOIN ( SELECT COUNT(id) AS num, driverId FROM t_order_private_car WHERE FIND_IN_SET(state, '7,8,9,10,12') |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | |
| | | </if> |
| | | GROUP BY driverId |
| | | ) AS topc3 ON topc3.driverId = td.id |
| | | LEFT JOIN ( SELECT SUM(orderMoney) AS taxiMoney, driverId FROM t_order_private_car WHERE FIND_IN_SET(state, '7,8,9,12') |
| | | LEFT JOIN ( SELECT SUM(orderMoney) AS taxiMoney, driverId FROM t_order_private_car WHERE FIND_IN_SET(state, '8,9') |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | |
| | | </if> |
| | | GROUP BY driverId |
| | | ) AS topc5 ON topc5.driverId = td.id |
| | | LEFT JOIN ( SELECT SUM(money) AS taxiMoney, objectId as driverId FROM t_income WHERE type = 3 and userType = 2 and orderType = 1 |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(insertTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | GROUP BY objectId |
| | | ) AS topc11 ON topc11.driverId = td.id |
| | | </if> |
| | | <if test="null == type or 4 == type"> |
| | | LEFT JOIN ( SELECT COUNT(id) AS num, driverId FROM t_order_logistics WHERE FIND_IN_SET(state, '7,8,9,10,12') |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | GROUP BY driverId |
| | | ) AS topc6 ON topc6.driverId = td.id |
| | | LEFT JOIN ( SELECT COUNT(id) AS num, driverId FROM t_order_logistics WHERE FIND_IN_SET(state, '7,12') |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | GROUP BY driverId |
| | | ) AS topc7 ON topc7.driverId = td.id |
| | | LEFT JOIN ( SELECT COUNT(id) AS num, driverId FROM t_order_logistics WHERE FIND_IN_SET(state, '10,12') |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | GROUP BY driverId |
| | | ) AS topc8 ON topc8.driverId = td.id |
| | | LEFT JOIN ( SELECT SUM(orderMoney) AS taxiMoney, driverId FROM t_order_logistics WHERE FIND_IN_SET(state, '8,9') |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | GROUP BY driverId |
| | | ) AS topc9 ON topc9.driverId = td.id |
| | | LEFT JOIN ( SELECT SUM(orderMoney) AS taxiMoney, driverId FROM t_order_logistics WHERE FIND_IN_SET(state, '7,12') |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(travelTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | GROUP BY driverId |
| | | ) AS topc10 ON topc10.driverId = td.id |
| | | LEFT JOIN ( SELECT SUM(money) AS taxiMoney, objectId as driverId FROM t_income WHERE type = 3 and userType = 2 and orderType = 4 |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(insertTime, '%Y-%m-%d') between #{start} and #{end} |
| | | </if> |
| | | GROUP BY objectId |
| | | ) AS topc12 ON topc12.driverId = td.id |
| | | </if> |
| | | <where> |
| | | <if test="null!= companyId and '' != companyId"> |
| | |
| | | |
| | | private String tripId; |
| | | /** |
| | | * google行程结束标识-是否结束(0=否,1=是) |
| | | */ |
| | | @TableField("isover") |
| | | private Integer isover; |
| | | /** |
| | | * 争议订单(0=否,1=是) |
| | | */ |
| | | @TableField("isDispute") |
| | |
| | | this.isDispute = isDispute; |
| | | } |
| | | |
| | | public Integer getIsover() { |
| | | return isover; |
| | | } |
| | | |
| | | public void setIsover(Integer isover) { |
| | | this.isover = isover; |
| | | } |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | |
| | | |
| | | private String tripId; |
| | | /** |
| | | * google行程结束标识-是否结束(0=否,1=是) |
| | | */ |
| | | @TableField("isover") |
| | | private Integer isover; |
| | | /** |
| | | * 争议订单(0=否,1=是) |
| | | */ |
| | | @TableField("isDispute") |
| | |
| | | this.isDispute = isDispute; |
| | | } |
| | | |
| | | public BigDecimal getFreeMoney() { |
| | | return freeMoney; |
| | | } |
| | | |
| | | public void setFreeMoney(BigDecimal freeMoney) { |
| | | this.freeMoney = freeMoney; |
| | | } |
| | | |
| | | public Integer getIsFree() { |
| | | return isFree; |
| | | } |
| | | |
| | | public void setIsFree(Integer isFree) { |
| | | this.isFree = isFree; |
| | | } |
| | | |
| | | public Integer getIsover() { |
| | | return isover; |
| | | } |
| | | |
| | | public void setIsover(Integer isover) { |
| | | this.isover = isover; |
| | | } |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | |
| | | List<List<String>> lists = new ArrayList<>(); |
| | | List<String> list1 = new ArrayList<>(); |
| | | list1.add("类别:"); |
| | | list1.add(type == 1 ? "专车" : type == 2 ? "出租车" : type == 3 ? "城际" : "小件物流"); |
| | | list1.add(null == type ? "全部" : type == 1 ? "打车" : type == 2 ? "出租车" : type == 3 ? "城际" : "包裹"); |
| | | list1.add(""); |
| | | list1.add(""); |
| | | list1.add("起止时间:"); |
| | |
| | | server: |
| | | port: 8010 |
| | | |
| | | guns: |
| | | swagger-open: false #是否开启swagger (true/false) |
| | | kaptcha-open: false #是否开启登录时验证码 (true/false) |
| | | spring-session-open: false #是否开启spring session,如果是多机环境需要开启(true/false) |
| | | session-invalidate-time: 1800 #session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒 |
| | | session-validation-interval: 900 #多久检测一次失效的session(只在单机环境下生效) 单位:秒 |
| | | # file-upload-path: C:\Users\hi\Desktop\ #文件上传目录(不配置的话为java.io.tmpdir目录) |
| | | # picture-server-address: http://192.168.0.43/resources/ #图片服务器地址 |
| | | file-upload-path: C:\Users\Administrator\Desktop\apache-tomcat-8.0.33\webapps\ROOT\upload\ #文件上传目录(不配置的话为java.io.tmpdir目录) |
| | | picture-server-address: http://139.9.249.67:8080/upload/ #图片服务器地址 |
| | | rest-url: http://139.9.249.67:8080/rest/ #前端接口调用基础路径 |
| | | |
| | | spring: |
| | | mvc: |
| | | static-path-pattern: /static/** |
| | | view: |
| | | prefix: /WEB-INF/view |
| | | devtools: |
| | | restart: |
| | | enabled: false |
| | | additional-paths: src/main/java |
| | | exclude: static/**,WEB-INF/view/** |
| | | servlet: |
| | | multipart: |
| | | max-request-size: 100MB |
| | | max-file-size: 100MB |
| | | profiles: |
| | | active: "@spring.active@" |
| | | active: dev |
| | | |
| | | mybatis-plus: |
| | | type-aliases-package: com.stylefeng.guns.modular.system.model |
| | | global-config: |
| | | id-type: 0 #0:数据库ID自增 1:用户输入id 2:全局唯一id(IdWorker) 3:全局唯一ID(uuid) |
| | | db-column-underline: false |
| | | configuration: |
| | | configuration.map-underscore-to-camel-case: true #是否开启自动驼峰命名规则(camel case)映射 |
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #输出Sql,如需打印Sql注释该配置 |
| | | |
| | | |
| | | --- |
| | | |
| | | spring: |
| | | datasource: |
| | | url: jdbc:mysql://34.35.60.126:3306/igotravel?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B0 |
| | | username: xiwang |
| | | password: HjKbXilb9zajmXbl |
| | | db-name: igotravel #用来搜集数据库的所有表 |
| | | filters: wall,mergeStat |
| | | |
| | | |
| | | #多数据源情况的配置 |
| | | guns: |
| | | muti-datasource: |
| | | open: false |
| | | url: jdbc:mysql://34.35.60.126:3306/igotravel?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B0 |
| | | username: xiwang |
| | | password: HjKbXilb9zajmXbl |
| | | dataSourceNames: |
| | | - dataSourceGuns |
| | | - dataSourceBiz |
| | | |
| | | |
| | | --- |
| | | |
| | | filePath: d:/orderPostionFile/ #存储订单轨迹文件路径 |
| | | |
| | | #quartz配置 |
| | | spring: |
| | | quartz: |
| | | properties: |
| | | org: |
| | | quartz: |
| | | scheduler: |
| | | instanceName: MyDefaultQuartzScheduler |
| | | instanceId: AUTO |
| | | jobStore: |
| | | class: org.quartz.impl.jdbcjobstore.JobStoreTX |
| | | driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
| | | tablePrefix: qrtz_ |
| | | isClustered: false |
| | | clusterCheckinInterval: 10000 |
| | | useProperties: false |
| | | threadPool: |
| | | class: org.quartz.simpl.SimpleThreadPool |
| | | threadCount: 10 |
| | | threadPriority: 5 |
| | | threadsInheritContextClassLoaderOfInitializingThread: true |
| | | job-store-type: jdbc |
| | | |
| | | --- |
| | | |
| | | spring: |
| | | mail: |
| | | host: smtp.gmail.com # 配置 smtp 服务器地址 |
| | | port: 465 # smtp 服务器的端口 |
| | | username: i-gotech@i-go.group # 配置邮箱用户名(你的邮箱地址) |
| | | password: mhizkqkhuknbitps # 配置申请到的授权码(刚让复制的授权码) |
| | | default-encoding: UTF-8 # 配置邮件编码 |
| | | properties: |
| | | mail: |
| | | smtp: |
| | | socketFactoryClass: javax.net.ssl.SSLSocketFactory # 配饰 SSL 加密工厂 |
| | | debug: true |
| | | from: i-gotech@i-go.group # 发送方邮件,配在yml中可方便更改 |
| | | template-path: /home/igotechgh/nginx/html/mailbox/ |
| | | |
| | | --- |
| | | #支付回调地址 |
| | | #测试环境 |
| | | callbackPath: http://182.160.16.251:8010 |
| | | |
| | | --- |
| | |
| | | <div class="row"> |
| | | <div class="col-sm-3"> |
| | | <#SelectCon id="type" name="类别" > |
| | | <option value="">全部</option> |
| | | <option value="1">专车</option> |
| | | <!--<option value="2">出租车</option> |
| | | <option value="3">跨城</option> |
| | | <option value="4">小件物流</option>--> |
| | | <option value="3">跨城</option>--> |
| | | <option value="4">包裹</option> |
| | | </#SelectCon> |
| | | </div> |
| | | <div class="col-sm-3"> |
| | |
| | | <div class="row"> |
| | | <div class="col-sm-3"> |
| | | <#SelectCon id="type" name="类别" > |
| | | <option value="">全部</option> |
| | | <option value="1">专车</option> |
| | | <!--<option value="2">出租车</option> |
| | | <option value="3">跨城</option>--> |
| | |
| | | </div> |
| | | <div class="radio radio-info radio-inline"> |
| | | <input type="radio" id="companyType2" value="2" name="companyType" ${2 == companyType ? 'checked=checked' : ''} onclick="YesDriverInfoDlg.companyTypeClick(2)"> |
| | | <label for="companyType2"> 平台司机 </label> |
| | | <label for="companyType2"> 分公司司机 </label> |
| | | </div> |
| | | <div class="radio radio-success radio-inline"> |
| | | <input type="radio" id="companyTyp3" value="3" name="companyType" ${3 == companyType ? 'checked=checked' : ''} onclick="YesDriverInfoDlg.companyTypeClick(3)"> |
| | |
| | | }; |
| | | |
| | | OperationalData.resetSearch = function () { |
| | | $("#type").val("2"); |
| | | $("#type").val(""); |
| | | $("#time").val(""); |
| | | $("#company").val(""); |
| | | OperationalData.search(); |
| | |
| | | }; |
| | | |
| | | DriverIncomelData.resetSearch = function () { |
| | | $("#type").val("1"); |
| | | $("#type").val(""); |
| | | $("#time").val(""); |
| | | $("#company").val(""); |
| | | DriverIncomelData.search(); |
| | |
| | | var table = new BSTable(DriverIncomelData.id, "/report/queryDriverIncomeData", defaultColunms); |
| | | table.setPaginationType("server"); |
| | | table.setQueryParams({ |
| | | type: 1, |
| | | type: $('#type').val(), |
| | | time: rangeDate |
| | | }) |
| | | DriverIncomelData.table = table.init(); |
| | |
| | | TIncome.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem',visible: false, radio: true}, |
| | | {title: '日期', field: 'times', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '活动收入', field: 'activityMoney', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '业务收入', field: 'orderMoney', visible: true, align: 'center', valign: 'middle'} |
| | | {title: '日期', field: 'times', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '活动收入', field: 'activityMoney', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '在线支付收入', field: 'onlineMoney', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '现金支付收入', field: 'cashMoney', visible: true, align: 'center', valign: 'middle'} |
| | | ]; |
| | | }; |
| | | |