|
@@ -4,6 +4,7 @@ import com.tzld.longarticle.recommend.server.model.WxUserGetResponse;
|
|
|
import com.tzld.longarticle.recommend.server.remote.WxUserManagementRemoteService;
|
|
|
import com.tzld.longarticle.recommend.server.repository.mapper.crawler.ArticleGzhDeveloperMapper;
|
|
|
import com.tzld.longarticle.recommend.server.repository.mapper.crawler.ArticleUserGroupMapper;
|
|
|
+import com.tzld.longarticle.recommend.server.repository.model.ArticleGzhDeveloper;
|
|
|
import com.tzld.longarticle.recommend.server.repository.model.ArticleUserGroup;
|
|
|
import com.tzld.longarticle.recommend.server.util.CommonCollectionUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -34,7 +35,7 @@ public class UserManagementService {
|
|
|
@Autowired
|
|
|
private ArticleGzhDeveloperMapper articleGzhDeveloperMapper;
|
|
|
|
|
|
- public void addGZH(String gzhId, int groupNum) {
|
|
|
+ public void addGZH(String gzhId, String appId, int groupNum) {
|
|
|
|
|
|
// syncAllUserOnce(gzhId, groupNum);
|
|
|
|
|
@@ -95,11 +96,10 @@ public class UserManagementService {
|
|
|
|
|
|
log.info("end sync user gzhId={}", gzhId);
|
|
|
|
|
|
-// ArticleGzhDeveloper obj = new ArticleGzhDeveloper();
|
|
|
-// obj.setAppId(appId);
|
|
|
-// obj.setGzhId(gzhId);
|
|
|
-// articleGzhDeveloperMapper.insert(obj);
|
|
|
-// log.info("start group gzhId={}", gzhId);
|
|
|
+ ArticleGzhDeveloper obj = new ArticleGzhDeveloper();
|
|
|
+ obj.setAppId(appId);
|
|
|
+ obj.setGzhId(gzhId);
|
|
|
+ articleGzhDeveloperMapper.insert(obj);
|
|
|
|
|
|
|
|
|
}
|