Pārlūkot izejas kodu

11月9日库存管理

XMLWAN 2 gadus atpakaļ
vecāks
revīzija
439e657193
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      conf/app.conf
  2. 1 1
      service/user_service.go

+ 1 - 1
conf/app.conf Parādīt failu

1
 appname = 血透
1
 appname = 血透
2
-httpport = 9531
2
+httpport = 9529
3
 runmode = dev
3
 runmode = dev
4
 #dev/prod
4
 #dev/prod
5
 
5
 

+ 1 - 1
service/user_service.go Parādīt failu

51
 func GetAllDoctorAndNurseSix(orgId, appid int64) (doctors []AdminUserList, nurses []AdminUserList, err error) {
51
 func GetAllDoctorAndNurseSix(orgId, appid int64) (doctors []AdminUserList, nurses []AdminUserList, err error) {
52
 
52
 
53
 	var users []AdminUserList
53
 	var users []AdminUserList
54
-	err = readUserDb.Table("sgj_user_admin_role as uar").Joins("JOIN sgj_user_admin as ua ON ua.id = uar.admin_user_id").Where("org_id=? and app_id =? and uar.user_type IN (2,3) and ua.status=1", orgId, appid).Select("ua.id, uar.user_name as name, uar.user_type,uar.status").Scan(&users).Error
54
+	err = readUserDb.Table("sgj_user_admin_role as uar").Joins("JOIN sgj_user_admin as ua ON ua.id = uar.admin_user_id").Where("org_id=? and app_id =? and uar.user_type IN (2,3)", orgId, appid).Select("ua.id, uar.user_name as name, uar.user_type,uar.status").Scan(&users).Error
55
 	if err != nil {
55
 	if err != nil {
56
 		return
56
 		return
57
 	}
57
 	}