Commit a475cd6f by fudahua

Merge branch 'feature-929' into 'developer'

标签导入

See merge request !123
parents 9b06779f 48493aad
...@@ -230,6 +230,18 @@ ...@@ -230,6 +230,18 @@
<artifactId>haoban-app-customer-api</artifactId> <artifactId>haoban-app-customer-api</artifactId>
<version>${haoban-app-customer-api}</version> <version>${haoban-app-customer-api}</version>
</dependency> </dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-member-tag-api</artifactId>
<version>${gic-member-tag-api}</version>
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>task-allocation-sdk</artifactId>
<version>${task-allocation-sdk}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -13,8 +13,10 @@ import com.gic.haoban.manage.api.service.TestApiService; ...@@ -13,8 +13,10 @@ import com.gic.haoban.manage.api.service.TestApiService;
import com.gic.haoban.manage.web.controller.WebBaseController; import com.gic.haoban.manage.web.controller.WebBaseController;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode; import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.manage.web.qo.QywxTagSyncInfoQo; import com.gic.haoban.manage.web.qo.QywxTagSyncInfoQo;
import com.gic.member.tag.api.service.MemberTagImportDealService;
import com.gic.mq.sdk.GicMQClient; import com.gic.mq.sdk.GicMQClient;
import com.gic.sharing.core.service.api.service.MqApiService; import com.gic.sharing.core.service.api.service.MqApiService;
import com.task.allocation.qo.TaskAllocationComputed;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -48,6 +50,9 @@ public class TestController extends WebBaseController { ...@@ -48,6 +50,9 @@ public class TestController extends WebBaseController {
@Autowired @Autowired
private DealSyncOperationApiService dealSyncOperationApiService; private DealSyncOperationApiService dealSyncOperationApiService;
@Autowired
private MemberTagImportDealService memberTagImportDealService;
// //
// @RequestMapping("/testList") // @RequestMapping("/testList")
// @ResponseBody // @ResponseBody
...@@ -191,4 +196,21 @@ public class TestController extends WebBaseController { ...@@ -191,4 +196,21 @@ public class TestController extends WebBaseController {
} }
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
/**
* 刷新单个标签同步到队列
*
* @return
*/
@RequestMapping("/memberTag")
@ResponseBody
public HaobanResponse memberTag(String id, String tagId) {
TaskAllocationComputed task = new TaskAllocationComputed();
task.setTaskAllocationId(id);
task.setTaskSignKey(tagId);
task.setTaskStatus(TaskAllocationComputed.TASK_STATUS_SUCCESS);
memberTagImportDealService.run(JSONObject.toJSONString(task));
return resultResponse(HaoBanErrCode.ERR_1);
}
} }
...@@ -60,4 +60,7 @@ ...@@ -60,4 +60,7 @@
<dubbo:reference interface="com.gic.haoban.app.customer.service.api.service.QywxTagSyncApiService" <dubbo:reference interface="com.gic.haoban.app.customer.service.api.service.QywxTagSyncApiService"
id="qywxTagSyncApiService"/> id="qywxTagSyncApiService"/>
<dubbo:reference interface="com.gic.member.tag.api.service.MemberTagImportDealService"
id="memberTagImportDealService"/>
</beans> </beans>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment