Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
micro_app
gk
Commits
9f557bc0
Commit
9f557bc0
authored
Aug 11, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(service): 自助服务新增排序
parent
da9aa408
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
RichTextMapper.xml
.../dlbridge/jadp/plugins/cmpt/dao/mapper/RichTextMapper.xml
+8
-2
RichText.java
...va/com/dlbridge/jadp/plugins/cmpt/dao/model/RichText.java
+2
-0
service.jsp
src/main/webapp/WEB-INF/views/cmpt/service.jsp
+15
-0
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/RichTextMapper.xml
View file @
9f557bc0
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
, create_time
, create_time
, create_user
, create_user
, cmpt_id
, cmpt_id
, icon_url)
, icon_url
, sort)
VALUES ( #{userId}
VALUES ( #{userId}
, #{type}
, #{type}
, #{path}
, #{path}
...
@@ -44,7 +45,8 @@
...
@@ -44,7 +45,8 @@
, now()
, now()
, #{userId}
, #{userId}
, #{cmptId}
, #{cmptId}
, #{iconUrl})
, #{iconUrl}
, #{sort})
</insert>
</insert>
<update
id=
"update"
>
<update
id=
"update"
>
...
@@ -71,6 +73,7 @@
...
@@ -71,6 +73,7 @@
,update_time = now()
,update_time = now()
,update_user = #{userId}
,update_user = #{userId}
,cmpt_id = #{cmptId}
,cmpt_id = #{cmptId}
,sort = #{sort}
WHERE
WHERE
id = #{id}
id = #{id}
</update>
</update>
...
@@ -91,6 +94,7 @@
...
@@ -91,6 +94,7 @@
, userId
, userId
, cmpt_id AS cmptId
, cmpt_id AS cmptId
, app_id AS appId
, app_id AS appId
, sort
, path
, path
, type
, type
, title
, title
...
@@ -116,6 +120,7 @@
...
@@ -116,6 +120,7 @@
,title
,title
,address
,address
,app_id AS appId
,app_id AS appId
,sort
,path
,path
,lng
,lng
,lat
,lat
...
@@ -145,6 +150,7 @@
...
@@ -145,6 +150,7 @@
<if
test=
"moduleId != null and moduleId != ''"
>
<if
test=
"moduleId != null and moduleId != ''"
>
AND FIND_IN_SET(#{moduleId}, module_id)
AND FIND_IN_SET(#{moduleId}, module_id)
</if>
</if>
ORDER BY sort
LIMIT #{pageSize} OFFSET #{page}
LIMIT #{pageSize} OFFSET #{page}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/model/RichText.java
View file @
9f557bc0
...
@@ -32,4 +32,6 @@ public class RichText {
...
@@ -32,4 +32,6 @@ public class RichText {
private
String
appId
;
private
String
appId
;
// 小程序路径/文件地址/图片地址
// 小程序路径/文件地址/图片地址
private
String
path
;
private
String
path
;
// 排序
private
Integer
sort
;
}
}
\ No newline at end of file
src/main/webapp/WEB-INF/views/cmpt/service.jsp
View file @
9f557bc0
...
@@ -528,7 +528,20 @@
...
@@ -528,7 +528,20 @@
</label>
</label>
</div>
</div>
</div>
</div>
<div
class=
"func"
>
<span
class=
"title-new"
>
排序
</span>
<span
style=
"font-size: 16px;color: #ce3939;margin:10px 0;"
>
<span
style=
"font-size: 12px;display: inline-block;border-radius: 50%;height: 18px;width: 18px;background: #ce3939;color: white;text-align: center;"
>
注
</span>
<span
style=
"display: inline"
>
越小越靠前
</span>
</span>
<div>
<input
class=
"input"
type=
"number"
v-model=
"service.sort"
placeholder=
"请输入排序"
>
</div>
</div>
</div>
</div>
<div
class=
"saveDiv"
>
<div
class=
"saveDiv"
>
<span
@
click=
"cancel"
class=
"cancel"
>
取消
</span>
<span
@
click=
"cancel"
class=
"cancel"
>
取消
</span>
<span
@
click=
"submit"
class=
"submit"
>
保存
</span>
<span
@
click=
"submit"
class=
"submit"
>
保存
</span>
...
@@ -569,6 +582,7 @@
...
@@ -569,6 +582,7 @@
"delFlg"
:
null
,
// 删除状态(0:未删除 1:已删除)
"delFlg"
:
null
,
// 删除状态(0:未删除 1:已删除)
"appId"
:
null
,
// 小程序appid
"appId"
:
null
,
// 小程序appid
"path"
:
null
,
// 小程序路径/文件地址/图片地址
"path"
:
null
,
// 小程序路径/文件地址/图片地址
sort
:
100
,
// 排序
},
},
moduleIndex
:
0
,
moduleIndex
:
0
,
keyword
:
''
,
keyword
:
''
,
...
@@ -753,6 +767,7 @@
...
@@ -753,6 +767,7 @@
remark4
:
null
,
remark4
:
null
,
status
:
1
,
status
:
1
,
delFlg
:
null
,
delFlg
:
null
,
sort
:
100
,
// 排序
};
};
},
},
// 编辑
// 编辑
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment