mirror of https://github.com/longtai-cn/hippo4j
parent
c84a44b167
commit
3720616b53
@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package cn.hippo4j.config.model.biz.threadpool;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* config modify query resp
|
||||
*/
|
||||
@Data
|
||||
public class ConfigModificationQueryRespDTO {
|
||||
|
||||
/**
|
||||
* his_config_verify id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* config modify type
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* tenant id
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* item id
|
||||
*/
|
||||
private String itemId;
|
||||
|
||||
/**
|
||||
* thread pool id
|
||||
*/
|
||||
private String tpId;
|
||||
|
||||
/**
|
||||
* thread pool identify
|
||||
*/
|
||||
private String identify;
|
||||
|
||||
/**
|
||||
* modify user
|
||||
*/
|
||||
private String modifyUser;
|
||||
|
||||
/**
|
||||
* verify status
|
||||
*/
|
||||
private Integer verifyStatus;
|
||||
|
||||
/**
|
||||
* gmt create
|
||||
*/
|
||||
private Date gmtCreate;
|
||||
|
||||
/**
|
||||
* gmt verify
|
||||
*/
|
||||
private Date gmtVerify;
|
||||
|
||||
/**
|
||||
* verify user
|
||||
*/
|
||||
private String verifyUser;
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package cn.hippo4j.config.service.biz;
|
||||
|
||||
import cn.hippo4j.config.model.biz.threadpool.ConfigModificationQueryRespDTO;
|
||||
import cn.hippo4j.config.model.biz.threadpool.ThreadPoolQueryReqDTO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
/**
|
||||
* config modification application query service
|
||||
*/
|
||||
public interface ConfigModificationQueryService {
|
||||
|
||||
/**
|
||||
* query config modification application page
|
||||
* @param reqDTO
|
||||
* @return
|
||||
*/
|
||||
IPage<ConfigModificationQueryRespDTO> queryApplicationPage(ThreadPoolQueryReqDTO reqDTO);
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package cn.hippo4j.config.service.biz.impl;
|
||||
|
||||
import cn.hippo4j.common.enums.DelEnum;
|
||||
import cn.hippo4j.config.mapper.HisConfigVerifyMapper;
|
||||
import cn.hippo4j.config.model.ConfigAllInfo;
|
||||
import cn.hippo4j.config.model.HisConfigVerifyInfo;
|
||||
import cn.hippo4j.config.model.biz.threadpool.ConfigModificationQueryRespDTO;
|
||||
import cn.hippo4j.config.model.biz.threadpool.ThreadPoolQueryReqDTO;
|
||||
import cn.hippo4j.config.model.biz.threadpool.ThreadPoolRespDTO;
|
||||
import cn.hippo4j.config.service.biz.ConfigModificationQueryService;
|
||||
import cn.hippo4j.config.toolkit.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class ConfigModificationQueryServiceImpl implements ConfigModificationQueryService {
|
||||
|
||||
@Resource
|
||||
private HisConfigVerifyMapper hisConfigVerifyMapper;
|
||||
|
||||
@Override
|
||||
public IPage<ConfigModificationQueryRespDTO> queryApplicationPage(ThreadPoolQueryReqDTO reqDTO) {
|
||||
LambdaQueryWrapper<HisConfigVerifyInfo> wrapper = Wrappers.lambdaQuery(HisConfigVerifyInfo.class)
|
||||
.eq(!StringUtils.isBlank(reqDTO.getTenantId()), HisConfigVerifyInfo::getTenantId, reqDTO.getTenantId())
|
||||
.eq(!StringUtils.isBlank(reqDTO.getItemId()), HisConfigVerifyInfo::getItemId, reqDTO.getItemId())
|
||||
.orderByDesc(HisConfigVerifyInfo::getGmtCreate);
|
||||
return hisConfigVerifyMapper.selectPage(reqDTO, wrapper).convert(each -> BeanUtil.convert(each, ConfigModificationQueryRespDTO.class));
|
||||
}
|
||||
}
|
Loading…
Reference in new issue