Ejemplo n.º 1
0
  @Override
  public SimpleStandupReport findStandupReportByDateUser(
      Integer projectId, String username, Date onDate, Integer sAccountId) {
    StandupReportSearchCriteria criteria = new StandupReportSearchCriteria();
    criteria.setProjectId(new NumberSearchField(projectId));
    criteria.setLogBy(StringSearchField.and(username));
    criteria.setOnDate(new DateSearchField(onDate));
    List reports =
        standupReportMapperExt.findPagableListByCriteria(
            criteria, new RowBounds(0, Integer.MAX_VALUE));

    if (CollectionUtils.isNotEmpty(reports)) {
      return (SimpleStandupReport) reports.get(0);
    }

    return null;
  }
Ejemplo n.º 2
0
 @Override
 public List<SimpleUser> findUsersNotDoReportYet(
     Integer projectId, Date onDate, @CacheKey Integer sAccountId) {
   return standupReportMapperExt.findUsersNotDoReportYet(projectId, onDate);
 }
Ejemplo n.º 3
0
 @Override
 public SimpleStandupReport findById(Integer standupId, Integer sAccountId) {
   return standupReportMapperExt.findReportById(standupId);
 }
Ejemplo n.º 4
0
 @Override
 public List<GroupItem> getReportsCount(StandupReportSearchCriteria criteria) {
   return standupReportMapperExt.getReportsCount(criteria);
 }