Commit 75f5e432 by 王祖波

批量添加跟进记录

parent b4a95827
package com.gic.haoban.manage.web.controller.potential;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.gic.api.base.commons.BasePageInfo;
import com.gic.api.base.commons.Page;
......@@ -47,10 +48,11 @@ public class ContactController {
if (CollectionUtils.isEmpty(memberIdList)) {
return RestResponse.successResult();
}
DateTime followTime = DateUtil.date();
List<ContactFollowQDTO> list = memberIdList.stream().map(x -> {
ContactFollowQDTO followQDTO = EntityUtil.changeEntityNew(ContactFollowQDTO.class, contactFollowQO);
followQDTO.setMemberId(x);
followQDTO.setFollowTime(DateUtil.date());
followQDTO.setFollowTime(followTime);
return followQDTO;
}).collect(Collectors.toList());
ServiceResponse<Void> serviceResponse = contactFollowApiService.saveBatchFollow(list);
......
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