|
|
|
@ -217,10 +217,10 @@ func BacthSetClassGraduateStatus(in *BaseClassProto.BacthSetClassGraduateStageAr
|
|
|
|
|
//1:恢复为正常班级 -3:毕业
|
|
|
|
|
//(1)批量设置班级中学生的状态为毕业状态
|
|
|
|
|
var flag int
|
|
|
|
|
if in.Status == 3 {
|
|
|
|
|
if in.Status == -3 {
|
|
|
|
|
flag = 1
|
|
|
|
|
} else {
|
|
|
|
|
flag = 3
|
|
|
|
|
flag = -3
|
|
|
|
|
}
|
|
|
|
|
sql := `update t_base_student set b_use=? where class_id=? and b_use=?`
|
|
|
|
|
_, err := db.SQL(sql, in.Status, in.Ids[i], flag).Execute()
|
|
|
|
|