ソースを参照

Merge branch 'master' of http://git.shengws.com/csx/XT_New

csx 5 年 前
コミット
4b8e996b2d

+ 1 - 1
conf/app.conf ファイルの表示

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

+ 1 - 1
controllers/mobile_api_controllers/admin_user_api_controller.go ファイルの表示

20
 	adminUserInfo := c.GetMobileAdminUserInfo()
20
 	adminUserInfo := c.GetMobileAdminUserInfo()
21
 	//orgId, _ := service.GetCreatByOrgId(adminUserInfo.Org.Id)
21
 	//orgId, _ := service.GetCreatByOrgId(adminUserInfo.Org.Id)
22
 	id := adminUserInfo.AdminUser.Id
22
 	id := adminUserInfo.AdminUser.Id
23
-	es, _ := service.GetAdminUserElectronicSignature(adminUserInfo.Org.Id, adminUserInfo.App.Id, id)
23
+	es, _ := service.GetAdminUserElectronicSignatureTwo(id)
24
 	if es != nil {
24
 	if es != nil {
25
 		c.ServeSuccessJSON(map[string]interface{}{
25
 		c.ServeSuccessJSON(map[string]interface{}{
26
 			"state":                1,
26
 			"state":                1,

+ 13 - 0
service/admin_service.go ファイルの表示

273
 	return counts, nil
273
 	return counts, nil
274
 }
274
 }
275
 
275
 
276
+func GetAdminUserElectronicSignatureTwo(userid int64) (*models.AdminUserElectronicSignature, error) {
277
+	var es models.AdminUserElectronicSignature
278
+	err := readUserDb.Model(&models.AdminUserElectronicSignature{}).Where("creator=? and status=1", userid).First(&es).Error
279
+
280
+	if err == gorm.ErrRecordNotFound {
281
+		return nil, nil
282
+	}
283
+	if err != nil {
284
+		return nil, err
285
+	}
286
+	return &es, nil
287
+}
288
+
276
 func GetAdminUserElectronicSignature(orgID int64, appID int64, userID int64) (*models.AdminUserElectronicSignature, error) {
289
 func GetAdminUserElectronicSignature(orgID int64, appID int64, userID int64) (*models.AdminUserElectronicSignature, error) {
277
 	var es models.AdminUserElectronicSignature
290
 	var es models.AdminUserElectronicSignature
278
 	err := readUserDb.Model(&models.AdminUserElectronicSignature{}).Where("org_id=? and app_id=? and creator=? and status=1", orgID, appID, userID).First(&es).Error
291
 	err := readUserDb.Model(&models.AdminUserElectronicSignature{}).Where("org_id=? and app_id=? and creator=? and status=1", orgID, appID, userID).First(&es).Error

+ 1 - 1
service/print_data_service/schedule_dialysis/print_schedule_dialysis_models.go ファイルの表示

410
 	PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
410
 	PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
411
 	Score                        string `gorm:"column:score" json:"score"`
411
 	Score                        string `gorm:"column:score" json:"score"`
412
 	SickConditionOther           string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
412
 	SickConditionOther           string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
413
-	Precaution                   int64  `gorm:"column:precaution" json:"precaution"`
413
+	Precaution                   string `gorm:"column:precaution" json:"precaution"`
414
 	PrecautionOther              string `gorm:"column:precaution_other" json:"precaution_other"`
414
 	PrecautionOther              string `gorm:"column:precaution_other" json:"precaution_other"`
415
 	PsychologicalOther           string `gorm:"column:psychological_other" json:"psychological_other"`
415
 	PsychologicalOther           string `gorm:"column:psychological_other" json:"psychological_other"`
416
 	IsPrecaution                 int64  `gorm:"column:is_precaution" json:"is_precaution"`
416
 	IsPrecaution                 int64  `gorm:"column:is_precaution" json:"is_precaution"`