Commit e432283b by fudahua

Merge branch 'developer' into 'master'

解绑删除

See merge request haoban3.0/haoban-manage3.0!111
parents 03add52e 59dfd77a
...@@ -7,11 +7,13 @@ import com.gic.haoban.base.api.common.BasePageInfo; ...@@ -7,11 +7,13 @@ import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.common.utils.PageUtil; import com.gic.haoban.common.utils.PageUtil;
import com.gic.haoban.manage.api.dto.HandoverExternalDTO; import com.gic.haoban.manage.api.dto.HandoverExternalDTO;
import com.gic.haoban.manage.api.dto.HandoverStaffFriendCountDTO; import com.gic.haoban.manage.api.dto.HandoverStaffFriendCountDTO;
import com.gic.haoban.manage.api.service.StaffClerkRelationApiService;
import com.gic.haoban.manage.service.config.Config; import com.gic.haoban.manage.service.config.Config;
import com.gic.haoban.manage.service.dao.mapper.*; import com.gic.haoban.manage.service.dao.mapper.*;
import com.gic.haoban.manage.service.entity.*; import com.gic.haoban.manage.service.entity.*;
import com.gic.haoban.manage.service.service.HandoverService; import com.gic.haoban.manage.service.service.HandoverService;
import com.gic.haoban.manage.service.service.SecretSettingService; import com.gic.haoban.manage.service.service.SecretSettingService;
import com.gic.haoban.manage.service.service.StaffClerkRelationService;
import com.gic.wechat.api.dto.qywx.QywxTransferCustomerInfoDTO; import com.gic.wechat.api.dto.qywx.QywxTransferCustomerInfoDTO;
import com.gic.wechat.api.dto.qywx.QywxUnassignedInfoDTO; import com.gic.wechat.api.dto.qywx.QywxUnassignedInfoDTO;
import com.gic.wechat.api.service.qywx.QywxUserApiService; import com.gic.wechat.api.service.qywx.QywxUserApiService;
...@@ -69,6 +71,9 @@ public class HandoverServiceImpl implements HandoverService { ...@@ -69,6 +71,9 @@ public class HandoverServiceImpl implements HandoverService {
@Autowired @Autowired
private TabHaobanClerkMainStoreRelatedMapper clerkMainStoreRelatedMapper; private TabHaobanClerkMainStoreRelatedMapper clerkMainStoreRelatedMapper;
@Autowired
private StaffClerkRelationService staffClerkRelationService;
@Override @Override
public boolean saveHandover(String wxEnterpriseId, List<QywxUnassignedInfoDTO> infoList) { public boolean saveHandover(String wxEnterpriseId, List<QywxUnassignedInfoDTO> infoList) {
logger.info("saveHandover-保存离职基础数据:{}", wxEnterpriseId); logger.info("saveHandover-保存离职基础数据:{}", wxEnterpriseId);
...@@ -142,6 +147,10 @@ public class HandoverServiceImpl implements HandoverService { ...@@ -142,6 +147,10 @@ public class HandoverServiceImpl implements HandoverService {
} else { } else {
handoverStaff.setHandoverStaffId(ToolUtil.randomUUID()); handoverStaff.setHandoverStaffId(ToolUtil.randomUUID());
handoverStaffMapper.insertSelective(handoverStaff); handoverStaffMapper.insertSelective(handoverStaff);
//解绑
List<String> staffIds = new ArrayList<>();
staffIds.add(handoverStaff.getStaffId());
staffClerkRelationService.cleanStaffClerk(handoverStaff.getWxEnterpriseId(), staffIds);
} }
} }
......
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