Commit ab4989c9 by fudahua

绑定的时候 新增小程序配置

parent 45f36623
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from tab_haoban_material from tab_haoban_material
where material_id in where material_id in
<foreach collection="materialIds" item="item" open="(" close=")"> <foreach collection="materialIds" item="item" open="(" close=")" separator=",">
#{item,jdbcType=VARCHAR} #{item,jdbcType=VARCHAR}
</foreach> </foreach>
</select> </select>
......
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gic.commons.util.GICMQClientUtil; import com.gic.commons.util.GICMQClientUtil;
import com.gic.haoban.base.api.common.ServiceResponse; import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.manage.api.dto.MaterialDTO;
import com.gic.haoban.manage.api.enums.ChannelCodeEnum; import com.gic.haoban.manage.api.enums.ChannelCodeEnum;
import com.gic.haoban.manage.api.service.DepartmentApiService; import com.gic.haoban.manage.api.service.*;
import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.api.service.TestApiService;
import com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService;
import com.gic.haoban.manage.service.service.MemberUnionRelatedService; import com.gic.haoban.manage.service.service.MemberUnionRelatedService;
import com.gic.mq.sdk.GicMQClient; import com.gic.mq.sdk.GicMQClient;
import com.gic.wechat.api.service.qywx.QywxDepartmentApiService; import com.gic.wechat.api.service.qywx.QywxDepartmentApiService;
...@@ -51,15 +49,23 @@ public class ServiceTest { ...@@ -51,15 +49,23 @@ public class ServiceTest {
@Autowired @Autowired
private MemberUnionRelatedService memberUnionRelatedService; private MemberUnionRelatedService memberUnionRelatedService;
@Autowired
private MaterialApiService materialApiService;
private final ExecutorService pools = Executors.newFixedThreadPool(50); private final ExecutorService pools = Executors.newFixedThreadPool(50);
@Test @Test
public void test11() { public void test11() {
ServiceResponse response = wxEnterpriseRelatedApiService.flushBindStoreByEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000" List<String> ids = new ArrayList<>();
, "ca66a01b79474c40b3e7c7f93daf1a3b", "-1", ChannelCodeEnum.SYNC_UNBIND.getCode()); ids.add("8f5ddb9df0a54332acfa2d5804e90c64");
System.out.println(JSONObject.toJSONString(response)); List<MaterialDTO> materialDTOS = materialApiService.listMaterialByIds(ids);
System.out.println(JSONObject.toJSONString(materialDTOS));
// ServiceResponse response = wxEnterpriseRelatedApiService.flushBindStoreByEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000"
// , "ca66a01b79474c40b3e7c7f93daf1a3b", "-1", ChannelCodeEnum.SYNC_UNBIND.getCode());
// System.out.println(JSONObject.toJSONString(response));
} }
......
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