| | |
| | | private ITUserService appUserService; |
| | | @Autowired |
| | | private IOrderCancelService orderCancelService; |
| | | |
| | | @Autowired |
| | | private ITCompanyService companyService; |
| | | |
| | | public static void main(String[] args) { |
| | | // 获取今天的日期 |
| | |
| | | */ |
| | | @RequestMapping("/commission") |
| | | public String index( Model model) { |
| | | List<TCompany> tCompanies = companyService.selectList(new EntityWrapper<TCompany>().eq("state", 0).ne("flag", 3)); |
| | | model.addAttribute("company", tCompanies); |
| | | return PREFIX + "commission.html"; |
| | | } |
| | | |
| | |
| | | */ |
| | | @RequestMapping(value = "/commission/getCount") |
| | | @ResponseBody |
| | | public Object getCount(Integer time,String insertTime,Integer state) { |
| | | public Object getCount(Integer time,String insertTime,Integer state, Integer company) { |
| | | if (time == null){ |
| | | time =1; |
| | | } |
| | |
| | | if (tOrderPrivateCar==null){ |
| | | continue; |
| | | } |
| | | |
| | | if(null != company && !company.equals(tOrderPrivateCar.getCompanyId())){ |
| | | continue; |
| | | } |
| | | platformVO.setMoney(new BigDecimal(income.getMoney())); |
| | | if (tOrderPrivateCar.getState()!=10 && tOrderPrivateCar.getPayType() == null){ |
| | | continue; |
| | |
| | | if (tOrderLogistics==null){ |
| | | continue; |
| | | } |
| | | |
| | | if(null != company && !company.equals(tOrderLogistics.getCompanyId())){ |
| | | continue; |
| | | } |
| | | platformVO.setMoney(new BigDecimal(income.getMoney())); |
| | | |
| | | if (tOrderLogistics.getState()!=10 && tOrderLogistics.getPayType() == null){ |
| | |
| | | TOrderPrivateCar tOrderPrivateCar = orderPrivateCarMap.get(settlementDetail.getOrderId()); |
| | | |
| | | if (tOrderPrivateCar==null){ |
| | | continue; |
| | | } |
| | | if(null != company && !company.equals(tOrderPrivateCar.getCompanyId())){ |
| | | continue; |
| | | } |
| | | platformVO.setCode(tOrderPrivateCar.getOrderNum()); |
| | |
| | | TOrderLogistics tOrderLogistics = orderLogisticsRecordMap.get(settlementDetail.getOrderId()); |
| | | |
| | | if (tOrderLogistics==null){ |
| | | continue; |
| | | } |
| | | if(null != company && !company.equals(tOrderLogistics.getCompanyId())){ |
| | | continue; |
| | | } |
| | | String string1 = settlementDetail.getPrice().toString(); |
| | |
| | | */ |
| | | @RequestMapping(value = "/commission/list") |
| | | @ResponseBody |
| | | public Object list(Integer time,String insertTime,Integer state) { |
| | | public Object list(Integer time,String insertTime,Integer state, Integer company) { |
| | | |
| | | if (time == null){ |
| | | time =1; |
| | |
| | | if (tOrderPrivateCar==null){ |
| | | continue; |
| | | } |
| | | if(null != company && !company.equals(tOrderPrivateCar.getCompanyId())){ |
| | | continue; |
| | | } |
| | | platformVO.setCode(tOrderPrivateCar.getOrderNum()); |
| | | TDriver tDriver = driverMap.get(tOrderPrivateCar.getDriverId()); |
| | | if (tDriver != null){ |
| | |
| | | TOrderLogistics tOrderLogistics = orderLogisticsRecordMap.get(income.getIncomeId()); |
| | | |
| | | if (tOrderLogistics==null){ |
| | | continue; |
| | | } |
| | | if(null != company && !company.equals(tOrderLogistics.getCompanyId())){ |
| | | continue; |
| | | } |
| | | platformVO.setCode(tOrderLogistics.getOrderNum()); |
| | |
| | | if (tOrderPrivateCar==null){ |
| | | continue; |
| | | } |
| | | |
| | | if(null != company && !company.equals(tOrderPrivateCar.getCompanyId())){ |
| | | continue; |
| | | } |
| | | platformVO.setCode(tOrderPrivateCar.getOrderNum()); |
| | | TDriver tDriver = driverMap.get(tOrderPrivateCar.getDriverId()); |
| | | if (tDriver!=null){ |
| | |
| | | if (tOrderLogistics==null){ |
| | | continue; |
| | | } |
| | | |
| | | if(null != company && !company.equals(tOrderLogistics.getCompanyId())){ |
| | | continue; |
| | | } |
| | | platformVO.setCode(tOrderLogistics.getOrderNum()); |
| | | TDriver tDriver1 = driverMap.get(tOrderLogistics.getDriverId()); |
| | | if (tDriver1!=null){ |