Commit ccab29c7 authored by 赵啸非's avatar 赵啸非

添加代办员工评价次数

parent e5158ea3
...@@ -136,6 +136,9 @@ public class BaseAreaServiceImpl extends AbstractCRUDServiceImpl<BaseAreaDao, Ba ...@@ -136,6 +136,9 @@ public class BaseAreaServiceImpl extends AbstractCRUDServiceImpl<BaseAreaDao, Ba
entity = new BaseAreaEntity(); entity = new BaseAreaEntity();
entity.initAttrValue(); entity.initAttrValue();
BeanUtils.copyProperties(group, entity, BeanUtil.getNullPropertyNames(group)); BeanUtils.copyProperties(group, entity, BeanUtil.getNullPropertyNames(group));
entity.setName(group.getShortName());
entity.setCreateTime(new Date()); entity.setCreateTime(new Date());
entity.setCreateUserId(1L); entity.setCreateUserId(1L);
//log.info("新增数据:{}", JSON.toJSONString(group)); //log.info("新增数据:{}", JSON.toJSONString(group));
......
...@@ -196,4 +196,19 @@ public class StaffServiceImpl extends AbstractCRUDServiceImpl<StaffDao, StaffEnt ...@@ -196,4 +196,19 @@ public class StaffServiceImpl extends AbstractCRUDServiceImpl<StaffDao, StaffEnt
} }
return Rest.ok(); return Rest.ok();
} }
@Override
protected void removeBefore(Long[] ids, Context context) throws AppException {
for (Long id : ids) {
StaffEntity staffEntity = this.get(id, context);
if(!ObjectUtils.isEmpty(staffEntity)&&!ObjectUtils.isEmpty(staffEntity.getUserId())){
userService.remove(staffEntity.getUserId(), context);
}
}
super.removeBefore(ids, context);
}
} }
\ No newline at end of file
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