|
|
@@ -12,6 +12,7 @@ import com.goafanti.order.bo.TOrderInvoiceBo;
|
|
|
import com.goafanti.order.service.OrderInvoiceService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
@@ -216,4 +217,20 @@ public class OrderInvoiceApiController extends CertifyApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 删除开票申请
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/delete")
|
|
|
+ public Result delete(Integer id) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (orderInvoiceService.checkDelete(id)){
|
|
|
+ res.getError().add(buildError("该申请状态,无法删除。"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.data(orderInvoiceService.delete(id));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
}
|