|
@@ -39,7 +39,7 @@ public class GetDeviceInfoController {
|
|
|
Long temId = null;
|
|
|
if (param.getId() == null) {
|
|
|
temId = 1L;
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
temId = param.getId();
|
|
|
}
|
|
|
|
|
@@ -61,4 +61,16 @@ public class GetDeviceInfoController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询已启的模板库列表
|
|
|
+ */
|
|
|
+ @PostMapping("/getEnableTemplateList")
|
|
|
+ public R<List<TemplateLibrary>> getEnableTemplateList() {
|
|
|
+ List<TemplateLibrary> templateIPage = templateLibraryService.list(new LambdaQueryWrapper<TemplateLibrary>()
|
|
|
+ .eq(TemplateLibrary::getStatus, 0)
|
|
|
+ .eq(TemplateLibrary::getDelFlag, 0));
|
|
|
+ return R.ok(templateIPage);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|