|
@ -102,13 +102,17 @@ public class PowerAxisTagServiceImpl extends BaseServiceImpl<PowerAxisTagDao, Po |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "缺少参数"); |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "缺少参数"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
QueryWrapper<PowerAxisTagEntity> wrapper = new QueryWrapper<>(); |
|
|
List<PowerAxisTagCategoryResultDTO> res = baseDao.selectByTagCategory(tagCategory,customerId); |
|
|
wrapper.eq("TAG_CATEGORY", tagCategory) |
|
|
return res; |
|
|
.eq("FORBIDDEN_FLAG", EpmetDelFlagEnum.NORMAL.value()) |
|
|
|
|
|
.eq(FieldConstant.CUSTOMER_ID, customerId) |
|
|
|
|
|
.orderByAsc("STRUCT_LEVEL", FieldConstant.CREATED_TIME); |
|
|
|
|
|
|
|
|
|
|
|
return ConvertUtils.sourceToTarget(baseDao.selectList(wrapper), PowerAxisTagCategoryResultDTO.class); |
|
|
// QueryWrapper<PowerAxisTagEntity> wrapper = new QueryWrapper<>();
|
|
|
|
|
|
// wrapper.eq("TAG_CATEGORY", tagCategory)
|
|
|
|
|
|
// .eq("FORBIDDEN_FLAG", EpmetDelFlagEnum.NORMAL.value())
|
|
|
|
|
|
// .eq(FieldConstant.CUSTOMER_ID, customerId)
|
|
|
|
|
|
// .orderByAsc("STRUCT_LEVEL", FieldConstant.CREATED_TIME);
|
|
|
|
|
|
//
|
|
|
|
|
|
// return ConvertUtils.sourceToTarget(baseDao.selectList(wrapper), PowerAxisTagCategoryResultDTO.class);
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
@ -135,4 +139,4 @@ public class PowerAxisTagServiceImpl extends BaseServiceImpl<PowerAxisTagDao, Po |
|
|
public Integer selectStructLevelById(String customerId, String tagCategory, String axisStructId) { |
|
|
public Integer selectStructLevelById(String customerId, String tagCategory, String axisStructId) { |
|
|
return baseDao.selectStructLevelById(customerId, tagCategory, axisStructId); |
|
|
return baseDao.selectStructLevelById(customerId, tagCategory, axisStructId); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|