DengBiao преди 1 година
родител
ревизия
25b61dcca9
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. +3
    -1
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go
  2. +3
    -1
      app/admin/svc/enterprise_manage/svc_self_support_for_school.go

+ 3
- 1
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go Целия файл

@@ -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+"%")
}


+ 3
- 1
app/admin/svc/enterprise_manage/svc_self_support_for_school.go Целия файл

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


Зареждане…
Отказ
Запис