Commit 66490fbb by 墨竹

fix:离职继承bug修改

parent 64aafc3c
...@@ -150,13 +150,13 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService ...@@ -150,13 +150,13 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
dto.setStatusFlag(1); dto.setStatusFlag(1);
dto.setCreateTime(new Date()); dto.setCreateTime(new Date());
dto.setUpdateTime(new Date()); dto.setUpdateTime(new Date());
int insert = mapper.insert(EntityUtil.changeEntityByJSON(TabHaobanStaffClerkRelation.class, dto)); int insert = mapper.insert(EntityUtil.changeEntityByJSON(TabHaobanStaffClerkRelation.class, dto));
// setMainStore(dto);
String s = insert > 0 ? dto.getStaffClerkRelationId() : null; String s = insert > 0 ? dto.getStaffClerkRelationId() : null;
if (null != s) { if (null != s) {
String staffId = dto.getStaffId();
clerkMainStoreRelatedService.getMainStoreByStaffId(staffId, dto.getWxEnterpriseId());
//推入日志 //推入日志
staffClerkBindLogService.pushToMq(dto.getStaffId(), optStaffId, BindTypeEnum.BIND.getVal(), chanelCode, dto.getStaffClerkRelationId()); staffClerkBindLogService.pushToMq(staffId, optStaffId, BindTypeEnum.BIND.getVal(), chanelCode, dto.getStaffClerkRelationId());
} }
return s; return s;
} }
...@@ -184,7 +184,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService ...@@ -184,7 +184,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
} }
@Override @Override
public String insert(StaffClerkRelationDTO staffClerkRelation) { public String insert(StaffClerkRelationDTO staffClerkRelation) {
String uuid = StringUtil.randomUUID(); String uuid = StringUtil.randomUUID();
...@@ -228,7 +227,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService ...@@ -228,7 +227,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
} }
@Override @Override
public StaffClerkRelationDTO getByClerkIdNoStatus(String clerkId){ public StaffClerkRelationDTO getByClerkIdNoStatus(String clerkId) {
return EntityUtil.changeEntityByJSON(StaffClerkRelationDTO.class, mapper.getByClerkIdNoStatus(clerkId)); return EntityUtil.changeEntityByJSON(StaffClerkRelationDTO.class, mapper.getByClerkIdNoStatus(clerkId));
} }
......
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