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

添加离职人员同步删除考勤组相关人员

parent 8168ca41
......@@ -45,6 +45,9 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
@Autowired
private IWindowFeign windowFeign;
@Override
public List<WindowPdu> subWindowPduList(WindowPdu pdu) {
List<WindowPdu> subList = new ArrayList<>();
......@@ -83,6 +86,22 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
return ownerList;
}
@Override
protected void saveBefore(WindowOwnerEntity entity, Context context) throws AppException {
super.saveBefore(entity, context);
if(!ObjectUtils.isEmpty(entity.getWindowOwnerDetailList())){
entity.setWindowCount(entity.getWindowOwnerDetailList().size());
}
}
@Override
protected void updateBefore(WindowOwnerEntity entity, Context context) throws AppException {
super.updateBefore(entity, context);
if(!ObjectUtils.isEmpty(entity.getWindowOwnerDetailList())){
entity.setWindowCount(entity.getWindowOwnerDetailList().size());
}
}
@Override
protected void saveAfter(WindowOwnerEntity entity, Context context) throws AppException {
if (!ObjectUtils.isEmpty(entity.getWindowOwnerDetailList())) {
......
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