Commit 839ec5be by jinxin

定时任务添加

parent 36a6b40b
......@@ -23,6 +23,7 @@ import com.gic.haoban.manage.service.dao.mapper.WxEnterpriseRelatedMapper;
import com.gic.haoban.manage.service.entity.*;
import com.gic.haoban.manage.service.pojo.bo.StaffPrivacyUseLogBO;
import com.gic.haoban.manage.service.service.*;
import com.gic.operating.api.dto.HaobanWxEnterpriseDTO;
import com.gic.operating.api.service.HaobanWxEnterpriseApiService;
import com.gic.wechat.api.service.qywx.QywxUserApiService;
import com.github.pagehelper.Page;
......@@ -563,15 +564,16 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
log.info("定时同步自建应用信息");
List<TabHaobanWxEnterprise> list = wxEnterpriseService.listAllByWxSecurityType(5);
if (CollUtil.isNotEmpty(list)){
list.stream().forEach(a->{
//haobanWxEnterpriseApiService.saveOrUpdate();
});
log.info("查询需要同步的信息:{}",JSON.toJSONString(list));
List<HaobanWxEnterpriseDTO> list1 = EntityUtil.changeEntityListByJSON(HaobanWxEnterpriseDTO.class, list);
haobanWxEnterpriseApiService.batchSaveOrUpdate(list1);
}
return null;
}
@Override
public ServiceResponse<Boolean> deleteByWxEnterpriseId(String wxEnterpriseId) {
log.info("删除的企业微信id:{}",wxEnterpriseId);
wxEnterpriseService.deleteByWxEnterpriseId(wxEnterpriseId);
return ServiceResponse.success(true);
}
......
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