Browse Source

耗材参数

XMLWAN 4 years ago
parent
commit
d3380a3295
1 changed files with 2 additions and 1 deletions
  1. 2 1
      controllers/data_api_controller.go

+ 2 - 1
controllers/data_api_controller.go View File

79
 	// 验证关键字段的值是否重复
79
 	// 验证关键字段的值是否重复
80
 
80
 
81
 	thisConfig, _ := service.FindConfigByTitle(dataconfig.Module, dataconfig.FieldName, adminUserInfo.CurrentOrgId)
81
 	thisConfig, _ := service.FindConfigByTitle(dataconfig.Module, dataconfig.FieldName, adminUserInfo.CurrentOrgId)
82
+	fmt.Println("99999", thisConfig)
82
 	if thisConfig.ID > 0 {
83
 	if thisConfig.ID > 0 {
83
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeFieldExist)
84
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeFieldExist)
84
 		return
85
 		return
385
 	}
386
 	}
386
 	dataconfig.Module = module
387
 	dataconfig.Module = module
387
 
388
 
388
-	if module == "education" || module == "summary" || module == "course_disease" || module == "rescue_record" || module == "nursing_record" || module == "special_record" {
389
+	if module == "education" || module == "summary" || module == "course_disease" || module == "rescue_record" || module == "nursing_record" || module == "special_record" || module == "special_treatment" {
389
 		if configBody["title"] == nil || reflect.TypeOf(configBody["title"]).String() != "string" {
390
 		if configBody["title"] == nil || reflect.TypeOf(configBody["title"]).String() != "string" {
390
 			utils.ErrorLog("title")
391
 			utils.ErrorLog("title")
391
 			code = enums.ErrorCodeParamWrong
392
 			code = enums.ErrorCodeParamWrong