|
|
@ -12,6 +12,7 @@ import lombok.AllArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
@ -102,8 +103,10 @@ public class StationClient implements IStationClient { |
|
|
|
@ApiOperation("根据条件查询相关站点列表") |
|
|
|
@ApiOperation("根据条件查询相关站点列表") |
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
public R<List<StationEntity>> list(StationEntity stationEntity) { |
|
|
|
public R<List<StationEntity>> list(StationEntity stationEntity) { |
|
|
|
LambdaQueryWrapper<StationEntity> wrapper = Condition.getQueryWrapper(stationEntity,StationEntity.class); |
|
|
|
LambdaQueryWrapper<StationEntity> wrapper = Condition.getQueryWrapper(stationEntity).lambda(); |
|
|
|
wrapper.eq(StationEntity::getRefDept,stationEntity.getRefDept()); |
|
|
|
if(Func.isNotEmpty(stationEntity.getStatus())) { |
|
|
|
|
|
|
|
wrapper.eq(StationEntity::getStatus,stationEntity.getStatus()); |
|
|
|
|
|
|
|
} |
|
|
|
return R.data(stationService.list(wrapper)); |
|
|
|
return R.data(stationService.list(wrapper)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|