浏览代码

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

csx 4 年前
父节点
当前提交
4b8e996b2d

+ 1 - 1
conf/app.conf 查看文件

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

+ 1 - 1
controllers/mobile_api_controllers/admin_user_api_controller.go 查看文件

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

+ 13 - 0
service/admin_service.go 查看文件

@@ -273,6 +273,19 @@ func GetPatientAgeDistribution() ([]*PatientAgeCountStruct, error) {
273 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 289
 func GetAdminUserElectronicSignature(orgID int64, appID int64, userID int64) (*models.AdminUserElectronicSignature, error) {
277 290
 	var es models.AdminUserElectronicSignature
278 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,7 +410,7 @@ type ReceiveAssessmentVM struct {
410 410
 	PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
411 411
 	Score                        string `gorm:"column:score" json:"score"`
412 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 414
 	PrecautionOther              string `gorm:"column:precaution_other" json:"precaution_other"`
415 415
 	PsychologicalOther           string `gorm:"column:psychological_other" json:"psychological_other"`
416 416
 	IsPrecaution                 int64  `gorm:"column:is_precaution" json:"is_precaution"`