|
|
@@ -115,6 +115,13 @@ public class CorpKfServiceImpl implements CorpKfService {
|
|
|
public void setKfDuty(CorpKfDutyReq dutyReq) {
|
|
|
String openKfId = dutyReq.getOpenKfId();
|
|
|
List<CorpKfAccountFollow> dutyList = dutyReq.getDutyList();
|
|
|
+ //非单个 删除其他设置
|
|
|
+ if (!dutyReq.getIsUpdateSingle()) {
|
|
|
+ List<CorpKfAccountFollow> exists = dutyList.stream().filter(c -> c.getId() != null).collect(Collectors.toList());
|
|
|
+ corpKfAccountFollowMapper.delete(Wrappers.lambdaQuery(CorpKfAccountFollow.class)
|
|
|
+ .eq(CorpKfAccountFollow::getOpenKfId, openKfId)
|
|
|
+ .notIn(CorpKfAccountFollow::getId, exists));
|
|
|
+ }
|
|
|
|
|
|
dutyList.forEach(duty -> {
|
|
|
if (duty.getId() != null) {
|