|
@@ -16,11 +16,8 @@ import com.yh.saas.plugin.yiliangyiyun.entity.*;
|
|
import com.yh.saas.plugin.yiliangyiyun.exception.YException;
|
|
import com.yh.saas.plugin.yiliangyiyun.exception.YException;
|
|
import com.yh.saas.plugin.yiliangyiyun.exception.YExceptionEnum;
|
|
import com.yh.saas.plugin.yiliangyiyun.exception.YExceptionEnum;
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.PurchaseReceiptReportMapper;
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.PurchaseReceiptReportMapper;
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.IContractManagementInfoService;
|
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.IPurchaseOrderService;
|
|
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.IPurchaseReceiptReportService;
|
|
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.service.*;
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
-import com.yh.saas.plugin.yiliangyiyun.service.IWarehouseInOutInfoService;
|
|
|
|
import com.yh.saas.toolkit.workflow.service.IWorkflowService;
|
|
import com.yh.saas.toolkit.workflow.service.IWorkflowService;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -45,7 +42,7 @@ import java.util.stream.Collectors;
|
|
public class PurchaseReceiptReportServiceImpl extends ServiceImpl<PurchaseReceiptReportMapper, PurchaseReceiptReport> implements IPurchaseReceiptReportService {
|
|
public class PurchaseReceiptReportServiceImpl extends ServiceImpl<PurchaseReceiptReportMapper, PurchaseReceiptReport> implements IPurchaseReceiptReportService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private IWorkflowService workflowService;
|
|
|
|
|
|
+ private INewWorkflowService workflowService;
|
|
|
|
|
|
@SofaReference
|
|
@SofaReference
|
|
private ICommonRoleResourceService roleResourceService;
|
|
private ICommonRoleResourceService roleResourceService;
|
|
@@ -122,7 +119,7 @@ public class PurchaseReceiptReportServiceImpl extends ServiceImpl<PurchaseReceip
|
|
// 不是退回的单子
|
|
// 不是退回的单子
|
|
if (isStartWorkflow) {
|
|
if (isStartWorkflow) {
|
|
Workflow workflow = workflowService
|
|
Workflow workflow = workflowService
|
|
- .findLatestWorkflowByBusinessCode("PROCUREMENT-RECEIPT-REPORT");
|
|
|
|
|
|
+ .findLatestWorkflowByBusinessCodeByApp(purchaseReceiptReport.getCompId(),"PROCUREMENT-RECEIPT-REPORT");
|
|
// 没配置审核流程,直接结束并处理信息
|
|
// 没配置审核流程,直接结束并处理信息
|
|
if (workflow == null) {
|
|
if (workflow == null) {
|
|
throw new YException(YExceptionEnum.PURCHASE_ORDER_ERROR);
|
|
throw new YException(YExceptionEnum.PURCHASE_ORDER_ERROR);
|