This commit is contained in:
@jyuhsin
2025-12-02 15:37:57 +08:00
parent 14ce37f823
commit 54affda864
13 changed files with 96 additions and 33 deletions
@@ -134,6 +134,7 @@ public class FlowDesignController {
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("picIcon", processDesign.getPicIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
dao.insert(processDesign);
@@ -153,6 +154,7 @@ public class FlowDesignController {
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("picIcon", processDesign.getPicIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
processDesignService.update(processDesign);
@@ -172,6 +174,7 @@ public class FlowDesignController {
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("picIcon", processDesign.getPicIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
processDesignService.update(processDesign);
@@ -23,6 +23,11 @@ public class ProcessCategory extends BaseModel {
@ColDefine(type = ColType.VARCHAR, width = 10)
private String name;
@Comment("图片图标")
@Column
@ColDefine(type = ColType.VARCHAR, width = 255)
private String picIcon;
@Comment("图标")
@Column
@ColDefine(type = ColType.VARCHAR, width = 255)
@@ -56,6 +56,10 @@ public class ProcessDesign extends BaseModel {
@Column
private String h5InstanceViewUrl;
@Comment("图片图标")
@Column
private String picIcon;
@Comment("图标")
@Column
private String icon;
@@ -53,6 +53,7 @@ public class SysV4AppsController {
category.put("id", module.getId());
category.put("name", module.getName());
category.put("icon", module.getFaIcon());
category.put("picIcon", module.getIcon());
return category;
}).toList();
return Result.success("获取应用分类成功").addData(categories);
@@ -46,7 +46,7 @@ public class SysV4ServController {
@ApiOperation("获取应用列表")
public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, HttpServletRequest req) {
Sql sql = Sqls.create("""
SELECT t.*
SELECT t.*,(select picIcon from wf_process_design where name = t.name) as picIcon
FROM wf_process_define t
INNER JOIN (
SELECT name, MAX(id) AS max_id