コード例 #1
0
 public String createEpRTaskEmployee(
     String taskId,
     String employeeId,
     String userId,
     String allotUserId,
     String executeTime,
     BigDecimal executeTimeType,
     BigDecimal taskType,
     String supportEmployee) {
   if (StringUtils.isBlank(taskId)) {
     throw new BusinessException("taskId", ErrorCode.PARAMETER_NOT_FOUND);
   }
   if (StringUtils.isBlank(employeeId)) {
     throw new BusinessException("employeeId", ErrorCode.PARAMETER_NOT_FOUND);
   }
   if (StringUtils.isBlank(allotUserId)) {
     throw new BusinessException("allotUserId", ErrorCode.PARAMETER_NOT_FOUND);
   }
   if (StringUtils.isBlank(executeTime)) {
     throw new BusinessException("executeTime", ErrorCode.PARAMETER_NOT_FOUND);
   }
   String id = sequenceDAO.getEpRTaskEmployeeSeq();
   EpRTaskEmployee erte = new EpRTaskEmployee();
   erte.setId(id);
   erte.setTaskId(taskId);
   erte.setEmployeeId(employeeId);
   erte.setUserId(userId);
   erte.setAllotUserId(allotUserId);
   erte.setExecuteTime(executeTime);
   erte.setExecuteTimeType(executeTimeType);
   erte.setTaskType(taskType);
   erte.setSupportEmployee(supportEmployee);
   epRTaskEmployeeDAO.insert(erte);
   return id;
 }
コード例 #2
0
  public List<EpRTaskEmployeeDetailVO> ListEpRTaskEmployee(
      String taskId, String employeeId, String userId, String allotUserId, String executeTime) {
    EpRTaskEmployee epRTaskEmployee = new EpRTaskEmployee();
    epRTaskEmployee.setTaskId(taskId);
    epRTaskEmployee.setEmployeeId(employeeId);
    epRTaskEmployee.setUserId(userId);
    epRTaskEmployee.setAllotUserId(allotUserId);
    epRTaskEmployee.setExecuteTime(executeTime);

    List<EpRTaskEmployeeDetailVO> list = epRTaskEmployeeDAO.ListEpRTaskEmployee(epRTaskEmployee);
    return list;
  }