| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public void removeLocDetl(Long locId) {
|
| | | List<LocDetl> locDetls = this.list(new LambdaQueryWrapper<LocDetl>().eq(LocDetl::getLocId, locId));
|
| | | for (LocDetl locDetl : locDetls) {
|
| | | boolean remove = locDetlFieldService.remove(new LambdaQueryWrapper<LocDetlField>().eq(LocDetlField::getDetlId, locDetl.getId()));
|
| | | if (!remove) {
|
| | | throw new CoolException("扩展字段删除失败");
|
| | | }
|
| | |
|
| | | // if (!remove) {
|
| | | // throw new CoolException("扩展字段删除失败");
|
| | | // }
|
| | | boolean result = this.removeById(locDetl.getId());
|
| | | if (!result) {
|
| | | throw new CoolException("明细删除失败");
|
| | | }
|
| | | // if (!result) {
|
| | | // throw new CoolException("明细删除失败");
|
| | | // }
|
| | | }
|
| | | }
|
| | |
|