Class SquadServiceImpl

java.lang.Object
org.beangle.commons.dao.impl.BaseServiceImpl
org.openurp.base.service.impl.SquadServiceImpl
All Implemented Interfaces:
SquadService

public class SquadServiceImpl extends org.beangle.commons.dao.impl.BaseServiceImpl implements SquadService
  • Constructor Details

    • SquadServiceImpl

      public SquadServiceImpl()
  • Method Details

    • getSquad

      public Squad getSquad(Long id)
      Description copied from interface: SquadService
      返回指定班级号码的学生行政班级信息. 若指定的班级不存在,则返回.
      Specified by:
      getSquad in interface SquadService
      Parameters:
      id -
      Returns:
    • getSquad

      public Squad getSquad(String code)
      Description copied from interface: SquadService
      根据班级代码找到班级
      Specified by:
      getSquad in interface SquadService
      Parameters:
      code -
      Returns:
    • removeSquad

      public void removeSquad(Long id)
      Description copied from interface: SquadService
      删除指定班级号码的行政班信息,如果不存在这样的班级,则返回. 谨慎调用.
      Specified by:
      removeSquad in interface SquadService
      Parameters:
      id -
    • saveOrUpdate

      public void saveOrUpdate(Squad squad)
      Description copied from interface: SquadService
      保存新建的行政班级信息,如果已经存在同样的班级,则抛出异常EntityExistException. 1)记录班级的创建时间和更新时间
      Specified by:
      saveOrUpdate in interface SquadService
      Parameters:
      squad -
    • updateActualStdCount

      public int updateActualStdCount(Long squadId)
      Description copied from interface: SquadService
      计算并更新班级内实际在校人数
      Specified by:
      updateActualStdCount in interface SquadService
      Parameters:
      squadId -
      Returns:
    • updateStdCount

      public int updateStdCount(Long squadId)
      Description copied from interface: SquadService
      计算并更新班级内学籍有效人数
      Specified by:
      updateStdCount in interface SquadService
      Parameters:
      squadId -
    • batchUpdateStdCountOfClass

      public void batchUpdateStdCountOfClass(String squadIdSeq)
      Description copied from interface: SquadService
      批量计算并更新班级内实际在校人数和学籍有效人数
      Specified by:
      batchUpdateStdCountOfClass in interface SquadService
      Parameters:
      squadIdSeq -
    • batchUpdateStdCountOfClass

      public void batchUpdateStdCountOfClass(Long[] squadIds)
      Description copied from interface: SquadService
      批量计算并更新班级内实际在校人数和学籍有效人数
      Specified by:
      batchUpdateStdCountOfClass in interface SquadService
    • batchAddStudentClass

      public void batchAddStudentClass(List students, List squades)
      Description copied from interface: SquadService
      批量增加学生的班级项
      Specified by:
      batchAddStudentClass in interface SquadService
    • batchRemoveStudentClass

      public void batchRemoveStudentClass(List students, List squades)
      Description copied from interface: SquadService
      批量从班级中移出学生
      Specified by:
      batchRemoveStudentClass in interface SquadService
    • updateStudentSquad

      public void updateStudentSquad(Student std, Collection squades, Project project)
      Specified by:
      updateStudentSquad in interface SquadService