예제 #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;
  }
예제 #2
0
 @Override
 public List<SimpleUser> findUsersNotDoReportYet(
     Integer projectId, Date onDate, @CacheKey Integer sAccountId) {
   return standupReportMapperExt.findUsersNotDoReportYet(projectId, onDate);
 }
예제 #3
0
 @Override
 public SimpleStandupReport findById(Integer standupId, Integer sAccountId) {
   return standupReportMapperExt.findReportById(standupId);
 }
예제 #4
0
 @Override
 public List<GroupItem> getReportsCount(StandupReportSearchCriteria criteria) {
   return standupReportMapperExt.getReportsCount(criteria);
 }