Browse Source

****************************************提交分类************************************

weixinVSjinlai 4 years ago
parent
commit
bc72bbed47

+ 37 - 37
datasyn/src/main/kotlin/com/persagy/server/syn/controllers/TestController.kt

@@ -88,44 +88,44 @@ class TestController {
      */
     @Operation(summary = "造对照表数据", description = "",tags = ["001"])
     @GetMapping(value = ["/test/analog/data"])
-    fun analogData(@RequestParam groupCode: String, @RequestBody obj: Types): SBaseResponse{
-        logger.debug("数据= ${obj.toJson()}")
+    fun analogData(@RequestParam groupCode: String): SBaseResponse{
+        logger.debug("数据= ${groupCode.toJson()}")
         try {
-            for (type in obj.types!!) {
-                val defFuncIdList = defFuncIdService.select(SFilter.eq("classCode", type), SFilter.eq("projectId", "Pj4403070003")).exec()
-                for (defFuncId in defFuncIdList){
-                    if (!defFuncId.firstName.isNullOrEmpty()){
-                        if (defFuncId.firstName == "台账参数"){
-                            val dictInfosWanDa = DictInfosWanDa()
-                            dictInfosWanDa.classCode = type
-                            dictInfosWanDa.code = defFuncId.code
-                            dictInfosWanDa.groupCode = groupCode
-                            dictInfosWanDa.projectId = "0"
-                            dictInfosWanDa.name = defFuncId.name
-                            dictInfosWanDa.stage = "mdc"
-                            dictInfosWanDaService.replace(dictInfosWanDa)
-                        }else if (defFuncId.firstName == "技术参数") {
-                            val dictInfosWanDa = DictInfosWanDa()
-                            dictInfosWanDa.classCode = type
-                            dictInfosWanDa.code = defFuncId.code
-                            dictInfosWanDa.groupCode = groupCode
-                            dictInfosWanDa.projectId = "0"
-                            dictInfosWanDa.name = defFuncId.name
-                            dictInfosWanDa.stage = "dpm"
-                            dictInfosWanDaService.replace(dictInfosWanDa)
-                        } else if (defFuncId.firstName == "运行参数"||defFuncId.firstName == "设定参数") {
-                            val dictInfosWanDa = DictInfosWanDa()
-                            dictInfosWanDa.classCode = type
-                            dictInfosWanDa.code = defFuncId.code
-                            dictInfosWanDa.groupCode = groupCode
-                            dictInfosWanDa.projectId = "0"
-                            dictInfosWanDa.name = defFuncId.name
-                            dictInfosWanDa.stage = "moms"
-                            dictInfosWanDaService.replace(dictInfosWanDa)
-                        }
-                    }
-                }
-            }
+//            for (type in obj.types!!) {
+//                val defFuncIdList = defFuncIdService.select(SFilter.eq("classCode", type), SFilter.eq("projectId", "Pj4403070003")).exec()
+//                for (defFuncId in defFuncIdList){
+//                    if (!defFuncId.firstName.isNullOrEmpty()){
+//                        if (defFuncId.firstName == "台账参数"){
+//                            val dictInfosWanDa = DictInfosWanDa()
+//                            dictInfosWanDa.classCode = type
+//                            dictInfosWanDa.code = defFuncId.code
+//                            dictInfosWanDa.groupCode = groupCode
+//                            dictInfosWanDa.projectId = "0"
+//                            dictInfosWanDa.name = defFuncId.name
+//                            dictInfosWanDa.stage = "mdc"
+//                            dictInfosWanDaService.replace(dictInfosWanDa)
+//                        }else if (defFuncId.firstName == "技术参数") {
+//                            val dictInfosWanDa = DictInfosWanDa()
+//                            dictInfosWanDa.classCode = type
+//                            dictInfosWanDa.code = defFuncId.code
+//                            dictInfosWanDa.groupCode = groupCode
+//                            dictInfosWanDa.projectId = "0"
+//                            dictInfosWanDa.name = defFuncId.name
+//                            dictInfosWanDa.stage = "dpm"
+//                            dictInfosWanDaService.replace(dictInfosWanDa)
+//                        } else if (defFuncId.firstName == "运行参数"||defFuncId.firstName == "设定参数") {
+//                            val dictInfosWanDa = DictInfosWanDa()
+//                            dictInfosWanDa.classCode = type
+//                            dictInfosWanDa.code = defFuncId.code
+//                            dictInfosWanDa.groupCode = groupCode
+//                            dictInfosWanDa.projectId = "0"
+//                            dictInfosWanDa.name = defFuncId.name
+//                            dictInfosWanDa.stage = "moms"
+//                            dictInfosWanDaService.replace(dictInfosWanDa)
+//                        }
+//                    }
+//                }
+//            }
         } catch (e: Exception) {
             e.printStackTrace()
         }