|
@@ -112,7 +112,7 @@ public class ReceivableController {
|
|
|
@Operation(summary = "手续费开票")
|
|
@Operation(summary = "手续费开票")
|
|
|
public HttpResult commissionInvoicing(@RequestBody InvoicingVo invoicingVo){
|
|
public HttpResult commissionInvoicing(@RequestBody InvoicingVo invoicingVo){
|
|
|
// 设置手续费开票
|
|
// 设置手续费开票
|
|
|
- invoicingVo.setInvoiceType("1");
|
|
|
|
|
|
|
+ //invoicingVo.setInvoiceType("1");
|
|
|
// boolean invoicingCheck = receivableService.invoicingCheck(invoicingVo);
|
|
// boolean invoicingCheck = receivableService.invoicingCheck(invoicingVo);
|
|
|
// if(!invoicingCheck){
|
|
// if(!invoicingCheck){
|
|
|
// return HttpResult.error("有订单占用");
|
|
// return HttpResult.error("有订单占用");
|
|
@@ -129,10 +129,10 @@ public class ReceivableController {
|
|
|
public HttpResult otherInvoicing(@RequestBody InvoicingVo invoicingVo){
|
|
public HttpResult otherInvoicing(@RequestBody InvoicingVo invoicingVo){
|
|
|
// 设置跟单费开票
|
|
// 设置跟单费开票
|
|
|
invoicingVo.setInvoiceType("2");
|
|
invoicingVo.setInvoiceType("2");
|
|
|
- boolean invoicingCheck = receivableService.invoicingCheck(invoicingVo);
|
|
|
|
|
|
|
+ /* boolean invoicingCheck = receivableService.invoicingCheck(invoicingVo);
|
|
|
if(!invoicingCheck){
|
|
if(!invoicingCheck){
|
|
|
return HttpResult.error("有订单占用");
|
|
return HttpResult.error("有订单占用");
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
InvoiceingResult result = receivableService.addInvoicing(invoicingVo);
|
|
InvoiceingResult result = receivableService.addInvoicing(invoicingVo);
|
|
|
if (Objects.nonNull(result)){
|
|
if (Objects.nonNull(result)){
|
|
|
return HttpResult.ok("开票成功",result);
|
|
return HttpResult.ok("开票成功",result);
|
|
@@ -146,7 +146,8 @@ public class ReceivableController {
|
|
|
boolean result = receivableService.invoicingCheck(invoicingVo);
|
|
boolean result = receivableService.invoicingCheck(invoicingVo);
|
|
|
// 查询订单的应收跟单金额
|
|
// 查询订单的应收跟单金额
|
|
|
|
|
|
|
|
- return result ? HttpResult.ok("无占用") : HttpResult.error("有订单占用");
|
|
|
|
|
|
|
+ return HttpResult.ok("无占用");
|
|
|
|
|
+ // return result ? HttpResult.ok("无占用") : HttpResult.error("有订单占用");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("getReceivableCompany")
|
|
@PostMapping("getReceivableCompany")
|