@ -2,10 +2,8 @@ package com.yipin.liuwanr.mapper;
import java.util.List ;
import org.apache.ibatis.annotations.Insert ;
import org.apache.ibatis.annotations.Options ;
import org.apache.ibatis.annotations.Select ;
import org.apache.ibatis.annotations.Update ;
import com.yipin.liuwanr.entity.Student ;
import org.apache.ibatis.annotations.* ;
import com.yipin.liuwanr.entity.Staff ;
import com.yipin.liuwanr.entity.StaffGrade ;
@ -20,13 +18,15 @@ public interface StaffGradeMapper {
"SELECT staffGradeId,staffGradeName,staffProfessionalArchitectureId from staff_grade where isdel = 0 and staffProfessionalArchitectureId = #{staffProfessionalArchitectureId}" ,
"</script> " } )
List < StaffGrade > queryStaffGrade ( Integer staffProfessionalArchitectureId ) ;
// @Update("UPDATE staff_grade SET isdel = 1 where staffGradeId = #{staffGradeId}")
@Update ( "UPDATE staff s,hr_user_info u SET s.isdel = 1,u.isdel = 1 WHERE s.userId = u.userId AND s.userId IN" +
"(<foreach collection='userIds' item='userId' separator=','>" +
"#{userId}" +
"</foreach>)" )
void deleteStaffGrade ( List < Integer > userIds ) ;
@Update ( { "<script>" ,
"UPDATE staff s,hr_user_info u SET s.isdel = 1,u.isdel = 1 WHERE s.userId = u.userId AND s.userId IN"
+ "<foreach collection='userIds' item='stu' open='(' separator=',' close=')'>"
+ "#{stu}"
+ "</foreach> " ,
"</script>" } )
void deleteStaffGrade ( @Param ( "userIds" ) List < Integer > userIds ) ;
@Update ( "UPDATE staff_grade SET isdel = 1 where staffGradeId = #{staffGradeId}" )
void deleteStaffGradePs ( Integer staffGradeId ) ;
@ -41,4 +41,10 @@ public interface StaffGradeMapper {
@Select ( "select userId from staff where staffGradeId =#{staffGradeId} and isdel = 0" )
List < Integer > queryUserIdsByGradeId ( Integer staffGradeId ) ;
@Update ( "UPDATE staff_grade SET isdel = 1 where staffProfessionalArchitectureId = #{staffProfessionalArchitectureId}" )
void delStaffGradeByArchId ( Integer staffProfessionalArchitectureId ) ;
@Update ( "UPDATE staff_grade SET isdel = 1 where staffProfessionalArchitectureId = #{staffProfessionalArchitectureId}" )
void deleteStaffArch ( Integer staffProfessionalArchitectureId ) ;
}