| | |
| | | import com.stylefeng.guns.modular.system.controller.util.ExcelUtil; |
| | | import com.stylefeng.guns.modular.system.enums.TBillStateEnum; |
| | | import com.stylefeng.guns.modular.system.model.TDriver; |
| | | import com.stylefeng.guns.modular.system.model.TOrder; |
| | | import com.stylefeng.guns.modular.system.service.ITOrderService; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | |
| | | |
| | | @Autowired |
| | | private ITBillService tBillService; |
| | | @Autowired |
| | | private ITOrderService tOrderService; |
| | | |
| | | /** |
| | | * 跳转到首页 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 详情 |
| | | * 确认通过发票 |
| | | */ |
| | | @RequestMapping(value = "/confirm") |
| | | @ResponseBody |
| | |
| | | } |
| | | |
| | | /** |
| | | * 详情 |
| | | * 开通发票失败 |
| | | */ |
| | | @RequestMapping(value = "/cancel") |
| | | @ResponseBody |
| | |
| | | TBill tBill = tBillService.selectById(tBillId); |
| | | tBill.setState(TBillStateEnum.FAIL_BILL.getCode()); |
| | | tBillService.updateById(tBill); |
| | | TOrder tOrder = tOrderService.selectById(tBill.getOrderId()); |
| | | if(Objects.nonNull(tOrder)){ |
| | | tOrder.setIsInvoice(0); |
| | | tOrderService.updateById(tOrder); |
| | | } |
| | | return SUCCESS_TIP; |
| | | } |
| | | |