|
|
@@ -371,7 +371,9 @@ func CentralKitchenForSchoolStudentList(req md.CentralKitchenForSchoolStudentLis |
|
|
|
classWithUserIdentityIdsTwo = append(classWithUserIdentityIdsTwo, v.UserIdentityId) |
|
|
|
} |
|
|
|
} |
|
|
|
sess := db.Db.Where("user_identity.enterprise_id =?", req.EnterpriseId).And("identity =?", enum2.UserIdentityForCentralKitchenForStudent) |
|
|
|
sess := db.Db.Where("user_identity.enterprise_id =?", req.EnterpriseId). |
|
|
|
And("identity =?", enum2.UserIdentityForCentralKitchenForStudent). |
|
|
|
And("state =?", enum2.UserIdentityStateForNormal) |
|
|
|
if req.Name != "" { |
|
|
|
sess.And("user_identity.name like ?", "%"+req.Name+"%") |
|
|
|
} |
|
|
|