|
@@ -67,7 +67,7 @@ public class SysEnterpriseAreaServiceImpl extends ServiceImpl<SysEnterpriseAreaM
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public void updateRelation(Long deptId, Collection<Long> areaCodes) {
|
|
public void updateRelation(Long deptId, Collection<Long> areaCodes) {
|
|
// 删除旧的
|
|
// 删除旧的
|
|
- this.remove(Wrappers.<SysEnterpriseArea>lambdaQuery().eq(SysEnterpriseArea::getEntId, deptId).eq(SysEnterpriseArea::getAreaId, areaCodes));
|
|
|
|
|
|
+ this.remove(Wrappers.<SysEnterpriseArea>lambdaQuery().eq(SysEnterpriseArea::getEntId, deptId));
|
|
// 插入信息
|
|
// 插入信息
|
|
LocalDateTime now = LocalDateTime.now();
|
|
LocalDateTime now = LocalDateTime.now();
|
|
List<SysEnterpriseArea> collect = areaCodes.stream().map(code -> {
|
|
List<SysEnterpriseArea> collect = areaCodes.stream().map(code -> {
|