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