|
|
@@ -2,6 +2,7 @@ package com.jzg.organization.controller;
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.jzg.commons.core.base.BaseController;
|
|
|
import com.jzg.commons.core.page.HttpResult;
|
|
|
import com.jzg.commons.entity.finance.dto.CompanySuperviseSettlementReportDto;
|
|
|
import com.jzg.commons.entity.finance.dto.ExportSuperviseSettlementExcelDto;
|
|
|
@@ -22,6 +23,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
@@ -41,6 +43,8 @@ public class ReceivableController {
|
|
|
|
|
|
@Autowired
|
|
|
private ReceivableService receivableService;
|
|
|
+ @Autowired
|
|
|
+ private BaseController baseController;
|
|
|
|
|
|
// 拉取已审核订单
|
|
|
// @PostMapping("pullAuditedOrder")
|
|
|
@@ -155,10 +159,6 @@ public class ReceivableController {
|
|
|
public HttpResult otherInvoicing(@RequestBody InvoicingVo invoicingVo){
|
|
|
// 设置跟单费开票
|
|
|
invoicingVo.setInvoiceType("2");
|
|
|
- /* boolean invoicingCheck = receivableService.invoicingCheck(invoicingVo);
|
|
|
- if(!invoicingCheck){
|
|
|
- return HttpResult.error("有订单占用");
|
|
|
- }*/
|
|
|
InvoiceingResult result = receivableService.addInvoicing(invoicingVo);
|
|
|
if (Objects.nonNull(result)){
|
|
|
return HttpResult.ok("开票成功",result);
|
|
|
@@ -411,4 +411,18 @@ public class ReceivableController {
|
|
|
public void restockInsPlyIncome(@RequestBody InsOrderAdjust insOrderAdjust){
|
|
|
receivableService.restockInsPlyIncome(insOrderAdjust);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据应收订单的数据删除应收订单
|
|
|
+ *
|
|
|
+ * @param ids 应收订单的序号集
|
|
|
+ * @author lipf
|
|
|
+ * @date 2026/5/22 16:38
|
|
|
+ */
|
|
|
+ @PostMapping("/deleteIncomesByIds")
|
|
|
+ public HttpResult<String> deleteIncomesByIds(@RequestBody Long[] ids){
|
|
|
+ String userName = baseController.getUserName();
|
|
|
+ List<Long> idList = Arrays.asList(ids);
|
|
|
+ return receivableService.deleteIncomesByIds(idList,userName);
|
|
|
+ }
|
|
|
}
|