|
@@ -101,41 +101,42 @@ class TestController {
|
|
|
for (equipment in equipmentList){
|
|
|
setCode.add(equipment.classCode!!)
|
|
|
}
|
|
|
- for (type in setCode.toList()) {
|
|
|
- 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)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ logger.debug("类型= ${setCode.size}")
|
|
|
+// for (type in setCode.toList()) {
|
|
|
+// 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()
|
|
|
}
|