|
|
@ -41,8 +41,17 @@ public class SysColumnServiceImpl extends ServiceImpl<SysColumnMapper, SysColumn |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean sameLevelJudgment(ColumnWeightReqVO column) { |
|
|
|
public boolean sameLevelJudgment(ColumnWeightReqVO column) { |
|
|
|
QueryWrapper<SysColumn> queryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<SysColumn> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryWrapper.eq("column_name", column.getColumnName()); |
|
|
|
queryWrapper.eq("column_name", column.getColumnName()); |
|
|
|
queryWrapper.eq("level", column.getLevel()); |
|
|
|
|
|
|
|
|
|
|
|
if (column.getId() != null) { |
|
|
|
|
|
|
|
queryWrapper.eq("father_id", column.getId()); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
queryWrapper.eq("father_id", 0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryWrapper.eq("site_id", column.getSiteId()); |
|
|
|
queryWrapper.eq("site_id", column.getSiteId()); |
|
|
|
queryWrapper.eq("deleted", 1); |
|
|
|
queryWrapper.eq("deleted", 1); |
|
|
|
SysColumn sysColumn = mapper.selectOne(queryWrapper); |
|
|
|
SysColumn sysColumn = mapper.selectOne(queryWrapper); |
|
|
|