|
@@ -28,7 +28,7 @@ func (this *CommonApiController) GetInspectionMajor() {
|
28
|
28
|
|
29
|
29
|
func (this *CommonApiController) GetInspectionMinor() {
|
30
|
30
|
id, _ := this.GetInt64("id")
|
31
|
|
- fmt.Println("id", id)
|
|
31
|
+ fmt.Println("id----------------------------------------", id)
|
32
|
32
|
minor, err := service.GetInspectionMinor(id)
|
33
|
33
|
if err != nil {
|
34
|
34
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
@@ -52,9 +52,10 @@ func (this *CommonApiController) GetInspectionRange() {
|
52
|
52
|
})
|
53
|
53
|
}
|
54
|
54
|
|
55
|
|
-func (this *CommonApiController) SaveInspectionTwo() {
|
|
55
|
+func (this *CommonApiController) SaveConfiguration() {
|
56
|
56
|
adminInfo := this.GetAdminUserInfo()
|
57
|
57
|
orgid := adminInfo.CurrentOrgId
|
|
58
|
+ fmt.Println(orgid)
|
58
|
59
|
fmt.Println("触发-------------------0")
|
59
|
60
|
dataBody := make(map[string]interface{}, 0)
|
60
|
61
|
err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
|
@@ -89,3 +90,16 @@ func (this *CommonApiController) SaveInspectionTwo() {
|
89
|
90
|
"standard": standard,
|
90
|
91
|
})
|
91
|
92
|
}
|
|
93
|
+
|
|
94
|
+func (this *CommonApiController) GetConfigurationlist() {
|
|
95
|
+ adminUser := this.GetAdminUserInfo()
|
|
96
|
+ orgid := adminUser.CurrentOrgId
|
|
97
|
+ configurationlist, err := service.GetConfigurationlist(orgid)
|
|
98
|
+ if err != nil {
|
|
99
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
100
|
+ return
|
|
101
|
+ }
|
|
102
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
103
|
+ "configurationlist": configurationlist,
|
|
104
|
+ })
|
|
105
|
+}
|