| | |
| | | |
| | | @Autowired |
| | | private TAbnormalPayOrderService tAbnormalPayOrderService; |
| | | |
| | | |
| | | @Autowired |
| | | private ITSystemNoticeService systemNoticeService; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | abnormal = 2; |
| | | Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage(); |
| | | if(type==null){ |
| | | type=1; |
| | | } |
| | | // 快车 |
| | | if(type==1){ |
| | | page.setRecords(tOrderPrivateCarService.getPrivateCarOrderList(page, beginTime, endTime, shiroExtUtil.getUser().getRoleType(), shiroExtUtil.getUser().getObjectId(), |
| | |
| | | @RequestMapping(value = "/save") |
| | | @ResponseBody |
| | | public Object save(Integer responsibilityTypeVal,String remark,String money,Integer type,String orderNum) { |
| | | Integer userId =null; |
| | | if(type==1){ |
| | | TOrderPrivateCar tOrderPrivateCar = tOrderPrivateCarService.selectOne(new EntityWrapper<TOrderPrivateCar>().eq("orderNum",orderNum)); |
| | | userId = tOrderPrivateCar.getUserId(); |
| | | tOrderPrivateCar.setResponsibilityType(responsibilityTypeVal); |
| | | tOrderPrivateCar.setAbnormalStatus(2); |
| | | if(responsibilityTypeVal>3){ |
| | | tOrderPrivateCar.setResponsibilityMoney(tOrderPrivateCar.getPayMoney()); |
| | | tOrderPrivateCar.setPayMoney(new BigDecimal(money)); |
| | | tOrderPrivateCar.setOrderMoney(new BigDecimal(money)); |
| | | } |
| | | if(responsibilityTypeVal>2){ |
| | | // 追偿订单记录表 |
| | |
| | | |
| | | if(type==2){ |
| | | TOrderCrossCity tOrderCrossCity = tOrderCrossCityService.selectOne(new EntityWrapper<TOrderCrossCity>().eq("orderNum", orderNum)); |
| | | userId = tOrderCrossCity.getUserId(); |
| | | tOrderCrossCity.setResponsibilityType(responsibilityTypeVal); |
| | | tOrderCrossCity.setAbnormalStatus(2); |
| | | if(responsibilityTypeVal>3) { |
| | | tOrderCrossCity.setResponsibilityMoney(tOrderCrossCity.getPayMoney()); |
| | | tOrderCrossCity.setPayMoney(new BigDecimal(money)); |
| | | tOrderCrossCity.setOrderMoney(new BigDecimal(money)); |
| | | } |
| | | if(responsibilityTypeVal>2){ |
| | | // 追偿订单记录表 |
| | |
| | | } |
| | | if(type==3){ |
| | | TOrderTaxi tOrderTaxi = tOrderTaxiService.selectOne(new EntityWrapper<TOrderTaxi>().eq("orderNum", orderNum)); |
| | | userId = tOrderTaxi.getUserId(); |
| | | tOrderTaxi.setResponsibilityType(responsibilityTypeVal); |
| | | tOrderTaxi.setAbnormalStatus(2); |
| | | if(responsibilityTypeVal>3) { |
| | | tOrderTaxi.setResponsibilityMoney(tOrderTaxi.getPayMoney()); |
| | | tOrderTaxi.setPayMoney(new BigDecimal(money)); |
| | | tOrderTaxi.setOrderMoney(new BigDecimal(money)); |
| | | } |
| | | if(responsibilityTypeVal>2){ |
| | | // 追偿订单记录表 |
| | |
| | | tOrderTaxi.setAbnormalRemark(remark); |
| | | tOrderTaxiService.updateById(tOrderTaxi); |
| | | } |
| | | |
| | | |
| | | TSystemNotice tSystemNotice = new TSystemNotice(); |
| | | tSystemNotice.setType(2); |
| | | tSystemNotice.setNoticeType(1); |
| | | tSystemNotice.setUserType(1); |
| | | tSystemNotice.setUserId(userId); |
| | | tSystemNotice.setContent("您提交的申诉平台已处理"); |
| | | tSystemNotice.setRead(1); |
| | | tSystemNotice.setInsertTime(new Date()); |
| | | systemNoticeService.insert(tSystemNotice); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |