| | |
| | | |
| | | @Override |
| | | public XpTargetedServiceVo getById(Long id) { |
| | | XpTargetedService entity = this.getById(id); |
| | | XpTargetedService entity = baseMapper.selectById(id); |
| | | if (entity == null) { |
| | | return null; |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public R deleteByIds(List<Long> ids, SysUser sysUser) { |
| | | List<XpTargetedService> list = new ArrayList<>(); |
| | | for (Long id : ids) { |
| | | list.add(new XpTargetedService(){{ |
| | | setId(id); |
| | | setUpdateBy(sysUser.getNickName()); |
| | | setDeleted(true); |
| | | }}); |
| | | // List<XpTargetedService> list = new ArrayList<>(); |
| | | // for (Long id : ids) { |
| | | // list.add(new XpTargetedService(){{ |
| | | // setId(id); |
| | | // setUpdateBy(sysUser.getNickName()); |
| | | // setUpdateTime(LocalDateTime.now()); |
| | | // setDeleted(true); |
| | | // }}); |
| | | // |
| | | // } |
| | | // this.updateBatchById(list); |
| | | |
| | | } |
| | | this.updateBatchById(list); |
| | | removeBatchByIds(ids); |
| | | return R.ok(); |
| | | } |
| | | } |