|
|
@@ -26,7 +26,10 @@ import com.goafanti.common.utils.StringUtils;
|
|
|
import com.goafanti.contract.bo.InputSaveContract;
|
|
|
import com.goafanti.contract.service.ContractLogService;
|
|
|
import com.goafanti.contract.service.ContractService;
|
|
|
+import com.goafanti.copyright.service.CopyrightInfoService;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
+import com.goafanti.patent.service.PatentInfoService;
|
|
|
+import com.goafanti.techproject.service.TechProjectService;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/api/user/contract")
|
|
|
@@ -37,6 +40,68 @@ public class ContractApiController extends CertifyApiController {
|
|
|
private OrgCognizanceService orgCognizanceService;
|
|
|
@Resource
|
|
|
private ContractLogService contractLogService;
|
|
|
+ @Resource
|
|
|
+ private CopyrightInfoService copyrightInfoService;
|
|
|
+ @Resource
|
|
|
+ private TechProjectService techProjectService;
|
|
|
+ @Resource
|
|
|
+ private PatentInfoService patentInfoService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 合同详情-科技项目列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/techProject", method = RequestMethod.GET)
|
|
|
+ public Result listTechProject(String contractId) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(contractId)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到合同ID", "合同ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.setData(techProjectService.listContractTechProjectByContractId(contractId));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 合同详情-高企记录
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/cognizance", method = RequestMethod.GET)
|
|
|
+ public Result cognizance(String contractId) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(contractId)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到合同ID", "合同ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.setData(orgCognizanceService.selectContractCognizanceByContractId(contractId));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 合同详情-软著列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/copyright", method = RequestMethod.GET)
|
|
|
+ public Result listCopyright(String contractId) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(contractId)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到合同ID", "合同ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.setData(copyrightInfoService.listContractCopyrightByContractId(contractId));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 合同详情-专利列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/patent", method = RequestMethod.GET)
|
|
|
+ public Result listPatent(String contractId) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(contractId)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到合同ID", "合同ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.setData(patentInfoService.listContractPatentByContractId(contractId));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 合同流转日志
|