use of com.itrus.portal.db.Project in project portal by ixinportal.
the class OnlineServiceImpl method selectProject.
/*
*得到所有的项目
*/
public Map<Long, Project> selectProject() {
ProjectExample projectex = new ProjectExample();
Map<Long, Project> projectexs = sqlSession.selectMap("com.itrus.portal.db.ProjectMapper.selectByExample", projectex, "id");
return projectexs;
}
use of com.itrus.portal.db.Project in project portal by ixinportal.
the class PersonalBillServiceImpl method getProjectMapByBills.
/**
* 根据订单list查找出对应的projectMap
*
* @param bills
* @return
*/
public Map<Long, Project> getProjectMapByBills(List<PersonalBill> bills) {
Map<Long, Project> projectMap = new HashMap<Long, Project>();
List<Long> projectIds = new ArrayList<Long>();
for (PersonalBill bill : bills) {
projectIds.add(bill.getProject());
}
if (!projectIds.isEmpty()) {
ProjectExample projectExample = new ProjectExample();
ProjectExample.Criteria criteria = projectExample.or();
criteria.andIdIn(projectIds);
projectMap = sqlSession.selectMap("com.itrus.portal.db.ProjectMapper.selectByExample", projectExample, "id");
}
return projectMap;
}
Aggregations