Sfoglia il codice sorgente

[task-2010]表ibps_party_rel增加新增数据接口

szjbdgzl 1 anno fa
parent
commit
3a828a724f

+ 13 - 5
ibps-provider-base-root/modules/provider-platform-api/src/main/java/com/lc/ibps/org/api/IPartyRelService.java

@@ -1,14 +1,13 @@
 package com.lc.ibps.org.api;
 
+import com.lc.ibps.org.party.persistence.entity.*;
 import org.hibernate.validator.constraints.NotBlank;
 import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import com.lc.ibps.cloud.entity.APIResult;
-import com.lc.ibps.org.party.persistence.entity.PartyRelPo;
+
+import javax.validation.Valid;
 
 
 /** 
@@ -57,5 +56,14 @@ public interface IPartyRelService {
 	public APIResult<Boolean> isOrgManager(
 			@NotBlank(message = "{com.lc.ibps.org.userId}") 
 			@RequestParam(name = "userId", required = true) String userId);
+
+	/**
+	 * 保存参与者与人对象
+	 * @param partyRelPo
+	 * @return
+	 */
+	@RequestMapping(value = "/save", method = RequestMethod.POST)
+	public APIResult<Void> save(
+			@RequestBody(required = true) @Valid PartyRelPo partyRelPo) ;
 	
 }

+ 0 - 2
ibps-provider-root/modules/provider-platform-default/src/main/java/com/lc/ibps/cloud/timer/job/RevokeServiceJob.java

@@ -51,8 +51,6 @@ public class RevokeServiceJob extends BaseJob2 {
 			throw new RuntimeException("service url is empty.");
 		}
 		String runqianServer = EnvUtil.getProperty("runqian.server", "");
-		// http://192.168.2.247:5100/ibps/business/v3/sys/CronNotify/data
-		runqianServer = "http://192.168.2.247:5100";
 		url = runqianServer + url;
 		// 获取token
 		// 这里获取的是平台库的admin用户token