fix:项目信息推送CRM处理接口

dev_1.0.2
jiangpeng 2026-05-15 15:16:16 +08:00
parent 2fdbafa0c3
commit 73a7f6d6ca
3 changed files with 17 additions and 8 deletions

View File

@ -2,17 +2,10 @@ package com.ruoyi.sip.controller;
import com.ruoyi.common.annotation.Anonymous; import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.sip.dto.ProjectTransferRequest; import com.ruoyi.sip.dto.ProjectTransferRequest;
import com.ruoyi.sip.service.IDataProcessService; import com.ruoyi.sip.service.IDataProcessService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/** /**
* *
@ -43,4 +36,10 @@ public class DataProcessController {
dataProcessService.generateServiceBillsWhenAllDelivered(orderCode); dataProcessService.generateServiceBillsWhenAllDelivered(orderCode);
} }
@Anonymous
@GetMapping("/projectPushCRM")
public void projectSendCRM(@RequestParam("projectId") Long projectId) {
dataProcessService.projectSendCRM(projectId);
}
} }

View File

@ -11,4 +11,6 @@ public interface IDataProcessService {
void generateServiceBillsWhenAllDelivered(String orderCode); void generateServiceBillsWhenAllDelivered(String orderCode);
void projectSendCRM(Long projectId);
} }

View File

@ -54,6 +54,9 @@ public class DataProcessServiceImpl implements IDataProcessService {
@Resource @Resource
private IOmsPayableBillService payableBillService; private IOmsPayableBillService payableBillService;
@Resource
private IProjectInfoService projectInfoService;
@Resource @Resource
private IVendorInfoService vendorInfoService; private IVendorInfoService vendorInfoService;
@ -165,5 +168,10 @@ public class DataProcessServiceImpl implements IDataProcessService {
bindShiroUser(1L, "admin", "平台管理员"); bindShiroUser(1L, "admin", "平台管理员");
inventoryDeliveryService.generateServiceBillsWhenAllDelivered(orderCode); inventoryDeliveryService.generateServiceBillsWhenAllDelivered(orderCode);
} }
@Override
public void projectSendCRM(Long projectId) {
projectInfoService.scheduleOpportunityUpdateByProjectId(projectId);
}
} }