Pu Zhibing
6 天以前 dc7899a0ad5f865b371f187d4ca7c812250f82ac
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TAbnormalOrderCarController.java
@@ -80,6 +80,10 @@
    @Autowired
    private TAbnormalPayOrderService tAbnormalPayOrderService;
    @Autowired
    private ITSystemNoticeService systemNoticeService;
    
    
    /**
@@ -291,6 +295,9 @@
        }
        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(),
@@ -670,13 +677,15 @@
    @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){
                // 追偿订单记录表
@@ -704,11 +713,12 @@
        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){
                // 追偿订单记录表
@@ -735,11 +745,12 @@
        }
        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){
                // 追偿订单记录表
@@ -764,6 +775,17 @@
            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;
    }