"SELECT sta.uniqueIdentificationAccount,sta.staffId,sta.staffName,sta.staffWorkNumber,sta.phone,sta.email,sta.logNumber,sta.lastTimeOfLanding,sta.staffGradeId,sta.staffProfessionalArchitectureId,sta.roleId,gra.staffGradeName,pro.staffProfessionalArchitectureName from staff sta,staff_grade gra,staff_professional_architecture pro where sta.isdel = 0 and sta.staffGradeId = gra.staffGradeId and pro.staffProfessionalArchitectureId = sta.staffProfessionalArchitectureId and sta.roleId != 1 and sta.roleId !=2",
"SELECT sta.uniqueIdentificationAccount,sta.staffId,sta.staffName,sta.staffWorkNumber,sta.phone,sta.email,sta.logNumber,sta.lastTimeOfLanding,sta.staffGradeId,sta.staffProfessionalArchitectureId,sta.roleId,gra.staffGradeName,pro.staffProfessionalArchitectureName from staff sta,staff_grade gra,staff_professional_architecture pro where sta.isdel = 0 and sta.staffGradeId = gra.staffGradeId and pro.staffProfessionalArchitectureId = sta.staffProfessionalArchitectureId and sta.roleId != 1 and sta.roleId !=2 and sta.schoolId = #{schoolId}",
// " <if test='nameAndNumber!=null'> and sta.staffName like CONCAT('%',#{nameAndNumber},'%') or sta.staffWorkNumber like CONCAT('%',#{nameAndNumber},'%') GROUP BY sta.staffId</if>",
" <if test='nameAndNumber!=null'> and sta.staffName like CONCAT('%',#{nameAndNumber},'%')</if>",
"UPDATE user SET isdel = 1 where phone = #{phone}",
"</script> "})
voiddeleteUser(Stringphone);
@Select({"<script>",
"SELECT staffId,staffName,staffWorkNumber,phone,email,logNumber,lastTimeOfLanding,staffGradeId,staffProfessionalArchitectureId,roleId,uniqueIdentificationAccount,schoolId from staff where isdel = 0 and staffId = #{staffId}",
"SELECT cla.className,t.loginNumber,t.lastLoginTime,t.uniqueIdentificationAccount,t.studentId,t.studentName,t.studentNumber,t.phone,t.email,t.roleId,t.schoolId,t.professionalId,t.gradeId,t.classId,t.experimentalClassId,(SELECT GROUP_CONCAT(c.experimentalClassName) FROM experimental_class_ning c WHERE FIND_IN_SET(c.experimentalClassId,t.experimentalClassId)) AS experimentName FROM student t,class cla WHERE t.isdel =0 and t.classId = cla.classId",
"SELECT cla.className,t.loginNumber,t.lastLoginTime,t.uniqueIdentificationAccount,t.studentId,t.studentName,t.studentNumber,t.phone,t.email,t.roleId,t.schoolId,t.professionalId,t.gradeId,t.classId,t.experimentalClassId,(SELECT GROUP_CONCAT(c.experimentalClassName) FROM experimental_class_ning c WHERE FIND_IN_SET(c.experimentalClassId,t.experimentalClassId)) AS experimentName FROM student t,class cla WHERE t.isdel =0 and t.classId = cla.classId and t.schoolId=#{schoolId}",
" <if test='searchContent!=null'> and t.studentName like CONCAT('%',#{searchContent},'%') or t.studentNumber like CONCAT('%',#{searchContent},'%')</if>",
" <if test='professionalIds!=null'> and FIND_IN_SET(t.professionalId,#{professionalIds})</if>",
" <if test='gradeIds!=null'> and FIND_IN_SET(t.gradeId,#{gradeIds}) </if>",
@ -30,10 +30,16 @@ public interface StudentMapper {