“mitao”
2026-01-14 9e8e7a10958c20b010d439767a4392fd57ff95db
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TOrderPrivateCarController.java
@@ -4,6 +4,7 @@
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.core.base.controller.BaseController;
import com.stylefeng.guns.core.base.tips.ErrorTip;
import com.stylefeng.guns.core.beetl.ShiroExtUtil;
import com.stylefeng.guns.core.common.constant.factory.PageFactory;
import com.stylefeng.guns.core.util.DateUtil;
@@ -564,6 +565,36 @@
    }
    /**
     * 异常订单申诉
     *
     * @param orderId       订单ID
     * @param abnormalIntro 申诉描述
     * @param abnormalImg   申诉图片(多张用逗号分隔)
     * @return
     */
    @RequestMapping(value = "/addAppeal")
    @ResponseBody
    public Object addAppeal(@RequestParam Integer orderId,
                            @RequestParam String abnormalIntro,
                            @RequestParam(required = false) String abnormalImg) {
        TOrderPrivateCar orderPrivateCar = tOrderPrivateCarService.selectById(orderId);
        if (null == orderPrivateCar) {
            return new ErrorTip(500, "订单不存在");
        }
        if (orderPrivateCar.getState() != 7) {
            return new ErrorTip(500, "只有待支付状态的订单才能申诉");
        }
        if (ToolUtil.isNotEmpty(orderPrivateCar.getAbnormalIntro())) {
            return new ErrorTip(500, "该订单已提交过申诉,请勿重复提交");
        }
        orderPrivateCar.setAbnormalIntro(abnormalIntro);
        orderPrivateCar.setAbnormalImg(abnormalImg);
        orderPrivateCar.setAbnormal(2);
        tOrderPrivateCarService.updateById(orderPrivateCar);
        return SUCCESS_TIP;
    }
    @RequestMapping("/add")
    @ResponseBody
    public Object add(TOrderPrivateCar privateCar) {