|
@ -36,9 +36,6 @@ import java.util.Map; |
|
|
@Service |
|
|
@Service |
|
|
public class PowerAxisTagServiceImpl extends BaseServiceImpl<PowerAxisTagDao, PowerAxisTagEntity> implements PowerAxisTagService { |
|
|
public class PowerAxisTagServiceImpl extends BaseServiceImpl<PowerAxisTagDao, PowerAxisTagEntity> implements PowerAxisTagService { |
|
|
|
|
|
|
|
|
// @Autowired
|
|
|
|
|
|
// private PowerAxisTagRedis powerAxisTagRedis;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private LoginUserUtil loginUserUtil; |
|
|
private LoginUserUtil loginUserUtil; |
|
|
|
|
|
|
|
@ -46,7 +43,7 @@ public class PowerAxisTagServiceImpl extends BaseServiceImpl<PowerAxisTagDao, Po |
|
|
@Override |
|
|
@Override |
|
|
public PageData<PowerAxisTagDTO> page(Map<String, Object> params) { |
|
|
public PageData<PowerAxisTagDTO> page(Map<String, Object> params) { |
|
|
IPage<PowerAxisTagEntity> page = baseDao.selectPage( |
|
|
IPage<PowerAxisTagEntity> page = baseDao.selectPage( |
|
|
getPage(params, FieldConstant.CREATED_TIME, false), |
|
|
getPage(params, FieldConstant.CREATED_TIME, true), |
|
|
getWrapper(params) |
|
|
getWrapper(params) |
|
|
); |
|
|
); |
|
|
return getPageData(page, PowerAxisTagDTO.class); |
|
|
return getPageData(page, PowerAxisTagDTO.class); |
|
@ -63,7 +60,8 @@ public class PowerAxisTagServiceImpl extends BaseServiceImpl<PowerAxisTagDao, Po |
|
|
String id = (String) params.get(FieldConstant.ID_HUMP); |
|
|
String id = (String) params.get(FieldConstant.ID_HUMP); |
|
|
|
|
|
|
|
|
QueryWrapper<PowerAxisTagEntity> wrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<PowerAxisTagEntity> wrapper = new QueryWrapper<>(); |
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id) |
|
|
|
|
|
.orderByAsc("STRUCT_LEVEL"); |
|
|
|
|
|
|
|
|
return wrapper; |
|
|
return wrapper; |
|
|
} |
|
|
} |
|
|