Commit 66490fbb by 墨竹

fix:离职继承bug修改

parent 64aafc3c
......@@ -150,13 +150,13 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
dto.setStatusFlag(1);
dto.setCreateTime(new Date());
dto.setUpdateTime(new Date());
int insert = mapper.insert(EntityUtil.changeEntityByJSON(TabHaobanStaffClerkRelation.class, dto));
// setMainStore(dto);
String s = insert > 0 ? dto.getStaffClerkRelationId() : null;
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;
}
......@@ -184,7 +184,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
}
@Override
public String insert(StaffClerkRelationDTO staffClerkRelation) {
String uuid = StringUtil.randomUUID();
......@@ -228,7 +227,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
}
@Override
public StaffClerkRelationDTO getByClerkIdNoStatus(String clerkId){
public StaffClerkRelationDTO getByClerkIdNoStatus(String 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