1 Star 0 Fork 90

hexiangyun / third_party_libpng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ProjectInfoOperation.java 961 Bytes
一键复制 编辑 原始数据 按行查看 历史
hexiangyun 提交于 2022-12-28 10:09 . CI测试,请勿合入!!!
package com.huawei.operation;
import com.huawei.entity.vo.codecheck.project.ProjectInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public class ProjectInfoOperation {
@Autowired
@Qualifier("codeCheckMongoTemplate")
private MongoTemplate mongoTemplate;
/**
* 查询所有项目信息
*
* @return
*/
public List<ProjectInfoVo> getAll() {
Criteria projectId = Criteria.where("projectId").exists(true).ne("").ne(null);
Query query = Query.query(projectId);
return mongoTemplate.find(query, ProjectInfoVo.class);
}
}
1
https://gitee.com/hexiangyun/third_party_libpng.git
git@gitee.com:hexiangyun/third_party_libpng.git
hexiangyun
third_party_libpng
third_party_libpng
master

搜索帮助