Bladeren bron

耗材参数

XMLWAN 4 jaren geleden
bovenliggende
commit
d3380a3295
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      controllers/data_api_controller.go

+ 2 - 1
controllers/data_api_controller.go Bestand weergeven

@@ -79,6 +79,7 @@ func (c *DataApiController) CreateConfig() {
79 79
 	// 验证关键字段的值是否重复
80 80
 
81 81
 	thisConfig, _ := service.FindConfigByTitle(dataconfig.Module, dataconfig.FieldName, adminUserInfo.CurrentOrgId)
82
+	fmt.Println("99999", thisConfig)
82 83
 	if thisConfig.ID > 0 {
83 84
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeFieldExist)
84 85
 		return
@@ -385,7 +386,7 @@ func configFormData(dataconfig *models.Dataconfig, data []byte) (code int) {
385 386
 	}
386 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 390
 		if configBody["title"] == nil || reflect.TypeOf(configBody["title"]).String() != "string" {
390 391
 			utils.ErrorLog("title")
391 392
 			code = enums.ErrorCodeParamWrong