fix:项目信息推送CRM处理接口
parent
2fdbafa0c3
commit
73a7f6d6ca
|
|
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,6 @@ public interface IDataProcessService {
|
||||||
|
|
||||||
void generateServiceBillsWhenAllDelivered(String orderCode);
|
void generateServiceBillsWhenAllDelivered(String orderCode);
|
||||||
|
|
||||||
|
void projectSendCRM(Long projectId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
@ -166,4 +169,9 @@ public class DataProcessServiceImpl implements IDataProcessService {
|
||||||
inventoryDeliveryService.generateServiceBillsWhenAllDelivered(orderCode);
|
inventoryDeliveryService.generateServiceBillsWhenAllDelivered(orderCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void projectSendCRM(Long projectId) {
|
||||||
|
projectInfoService.scheduleOpportunityUpdateByProjectId(projectId);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue