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
5622bf4a
Commit
5622bf4a
authored
May 16, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(richText+module): 改造自主服务模块
parent
1d656452
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
2171 additions
and
2441 deletions
+2171
-2441
readme.md
readme.md
+4
-0
RichTextBean.java
...ava/com/dlbridge/jadp/plugins/cmpt/bean/RichTextBean.java
+2
-1
CmptMapper.xml
.../com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
+10
-1
JoyfulCheckinRecordsMapper.java
...p/plugins/cmpt/dao/mapper/JoyfulCheckinRecordsMapper.java
+0
-18
JoyfulCheckinRecordsMapper.xml
...dp/plugins/cmpt/dao/mapper/JoyfulCheckinRecordsMapper.xml
+0
-31
JoyfulRichTextMapper.xml
...dge/jadp/plugins/cmpt/dao/mapper/JoyfulRichTextMapper.xml
+0
-129
ModuleMapper.java
...m/dlbridge/jadp/plugins/cmpt/dao/mapper/ModuleMapper.java
+1
-1
ModuleMapper.xml
...om/dlbridge/jadp/plugins/cmpt/dao/mapper/ModuleMapper.xml
+6
-9
RichTextMapper.java
...dlbridge/jadp/plugins/cmpt/dao/mapper/RichTextMapper.java
+1
-1
RichTextMapper.xml
.../dlbridge/jadp/plugins/cmpt/dao/mapper/RichTextMapper.xml
+17
-7
Cmpt.java
...n/java/com/dlbridge/jadp/plugins/cmpt/dao/model/Cmpt.java
+25
-0
JoyfulCheckinRecords.java
...dge/jadp/plugins/cmpt/dao/model/JoyfulCheckinRecords.java
+0
-11
Module.java
...java/com/dlbridge/jadp/plugins/cmpt/dao/model/Module.java
+5
-0
RichText.java
...va/com/dlbridge/jadp/plugins/cmpt/dao/model/RichText.java
+7
-3
CmptService.java
...a/com/dlbridge/jadp/plugins/cmpt/service/CmptService.java
+99
-48
JoyfulCheckinRecordsService.java
...adp/plugins/cmpt/service/JoyfulCheckinRecordsService.java
+0
-44
ModuleService.java
...com/dlbridge/jadp/plugins/cmpt/service/ModuleService.java
+2
-2
RichTextService.java
...m/dlbridge/jadp/plugins/cmpt/service/RichTextService.java
+1
-1
JoyfulRoadController.java
.../dlbridge/jadp/plugins/cmpt/web/JoyfulRoadController.java
+0
-296
MicroApiController.java
...om/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
+22
-0
ModuleController.java
.../com/dlbridge/jadp/plugins/cmpt/web/ModuleController.java
+9
-21
ModuleSettingController.java
...bridge/jadp/plugins/cmpt/web/ModuleSettingController.java
+1
-1
ServiceSettingController.java
...ridge/jadp/plugins/cmpt/web/ServiceSettingController.java
+1
-1
module.jsp
src/main/webapp/WEB-INF/views/cmpt/module.jsp
+581
-583
service.jsp
src/main/webapp/WEB-INF/views/cmpt/service.jsp
+937
-841
menu.jsp
src/main/webapp/WEB-INF/views/common/menu.jsp
+440
-391
No files found.
readme.md
0 → 100644
View file @
5622bf4a
## 打包
```
bash
mvn clean package
-DskipTests
```
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/bean/RichTextBean.java
View file @
5622bf4a
...
@@ -7,7 +7,8 @@ public class RichTextBean {
...
@@ -7,7 +7,8 @@ public class RichTextBean {
// 服务类型(3:特色民宿:4:旅游景点,5:特色餐饮 6:当地特产 7: 应急避险 8: 医疗点位 9:运动产品)
// 服务类型(3:特色民宿:4:旅游景点,5:特色餐饮 6:当地特产 7: 应急避险 8: 医疗点位 9:运动产品)
private
String
type
;
private
String
type
;
// 点位类型 (1:打卡点,2:服务驿站,3:民宿:4:景点,5:餐饮)
// 点位类型 (1:打卡点,2:服务驿站,3:民宿:4:景点,5:餐饮)
private
String
category
;
// 分类id
private
Integer
moduleId
;
private
String
title
;
private
String
title
;
private
String
lng
;
private
String
lng
;
// 赛事id
// 赛事id
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
View file @
5622bf4a
...
@@ -155,6 +155,11 @@
...
@@ -155,6 +155,11 @@
a.cmpt_name as cmptName,
a.cmpt_name as cmptName,
a.logo,
a.logo,
date_format(start_time,'%Y-%m-%d') startTime,
date_format(start_time,'%Y-%m-%d') startTime,
date_format(end_time,'%Y-%m-%d') endTime,
date_format(a.start_time,'%Y-%m-%d %H:%i:%s') as startTimeStr,
date_format(a.end_time,'%Y-%m-%d %H:%i:%s') as endTimeStr,
date_format(c.openTime,'%Y-%m-%d %H:%i:%s') as openTime,
date_format(c.deadLine,'%Y-%m-%d %H:%i:%s') as deadLine,
a.bg_color as cmptbgColor,
a.bg_color as cmptbgColor,
a.create_by AS "createBy",
a.create_by AS "createBy",
a.create_date AS "createDate",
a.create_date AS "createDate",
...
@@ -251,7 +256,11 @@
...
@@ -251,7 +256,11 @@
<select
id=
"getCmptFromEnroll"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt"
>
<select
id=
"getCmptFromEnroll"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt"
>
select cmptName,date_format(startTime,'%Y-%m-%d %H:%i:%s') startTime,
select cmptName,date_format(startTime,'%Y-%m-%d %H:%i:%s') startTime,
date_format(ifnull(endTime,now()),'%Y-%m-%d %H:%i:%s') endTime,type cmptType
date_format(ifnull(endTime,now()),'%Y-%m-%d %H:%i:%s') endTime,type as cmptType,
b.city as city,
b.province as province,
b.area as area,
b.location as location
from common.neucmpt a inner join raceenroll.competition b on a.gcmptid = b.cmptid
from common.neucmpt a inner join raceenroll.competition b on a.gcmptid = b.cmptid
where a.gtcmptid=#{cmptid}
where a.gtcmptid=#{cmptid}
</select>
</select>
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/JoyfulCheckinRecordsMapper.java
deleted
100644 → 0
View file @
1d656452
package
com
.
dlbridge
.
jadp
.
plugins
.
cmpt
.
dao
.
mapper
;
import
com.dlbridge.jadp.plugins.cmpt.dao.model.JoyfulCheckinRecords
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 活动签到打卡记录
*
* @author LI
*/
public
interface
JoyfulCheckinRecordsMapper
{
int
insJoyfulCheckinRecords
(
JoyfulCheckinRecords
joyfulCheckinRecords
);
List
<
JoyfulCheckinRecords
>
getJoyfulCheckinRecordsList
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"offset"
)
int
offset
,
@Param
(
"pageCount"
)
int
pageCount
);
}
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/JoyfulCheckinRecordsMapper.xml
deleted
100644 → 0
View file @
1d656452
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.dlbridge.jadp.plugins.cmpt.dao.mapper.JoyfulCheckinRecordsMapper"
>
<insert
id=
"insJoyfulCheckinRecords"
>
INSERT INTO gksite.joyful_checkin_records (
userId
,activity_id
,checkin_time
) VALUES (
#{userId}
,#{activityId}
,now()
)
</insert>
<select
id=
"getJoyfulCheckinRecordsList"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.JoyfulCheckinRecords"
>
SELECT
t2.title
,DATE_FORMAT(t1.checkin_time,'%Y/%m/%d %H:%i:%s') AS checkinTime
FROM
gksite.joyful_checkin_records t1
INNER JOIN gksite.joyful_rich_text t2
ON t1.activity_id = t2.id
AND t2.del_flg = '0'
WHERE
t1.userId = #{userId}
ORDER BY t1.checkin_time DESC
LIMIT #{offset}, #{pageCount}
</select>
</mapper>
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/JoyfulRichTextMapper.xml
deleted
100644 → 0
View file @
1d656452
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.dlbridge.jadp.plugins.cmpt.dao.mapper.JoyfulRichTextMapper"
>
<insert
id=
"insJoyfulRichText"
>
INSERT INTO gksite.joyful_rich_text(
userId
,type
,category
,title
,address
,lng
,lat
,content
,img_url
,remark1
,remark2
,remark3
,remark4
,status
,del_flg
,create_time
,create_user
) VALUES (
#{userId}
,#{type}
,#{category}
,#{title}
,#{address}
,#{lng}
,#{lat}
,#{content}
,#{imgUrl}
,#{remark1}
,#{remark2}
,#{remark3}
,#{remark4}
,#{status}
,'0'
,now()
,#{userId}
)
</insert>
<update
id=
"updJoyfulRichText"
>
UPDATE
gksite.joyful_rich_text
SET
userId = #{userId}
,type = #{type}
,category = #{category}
,title = #{title}
,address = #{address}
,lng = #{lng}
,lat = #{lat}
,content = #{content}
,img_url = #{imgUrl}
,remark1 = #{remark1}
,remark2 = #{remark2}
,remark3 = #{remark3}
,remark4 = #{remark4}
,status = #{status}
,update_time = now()
,update_user = #{userId}
WHERE
id = #{id}
</update>
<update
id=
"delJoyfulRichText"
>
UPDATE
gksite.joyful_rich_text
SET
del_flg = '1'
,update_time = now()
,update_user = #{userId}
WHERE
id = #{id}
</update>
<select
id=
"getJoyfulRichTextById"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.JoyfulRichText"
>
SELECT id
, userId
, type
, title
, address
, lng
, lat
, content
, img_url AS imgUrl
, remark1
, remark2
, remark3
, remark4
, status
, category
FROM gksite.joyful_rich_text
WHERE id = #{id}
</select>
<select
id=
"getJoyfulRichTextList"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.JoyfulRichText"
>
SELECT
id
,title
,address
,lng
,lat
,img_url AS imgUrl
,remark1
,remark2
,remark3
,remark4
,type
,status
,category
FROM
gksite.joyful_rich_text
WHERE
del_flg = '0'
<if
test=
"type != null and type != ''"
>
AND type = #{type}
</if>
<if
test=
"title != null and title != ''"
>
AND title like concat('%',#{title},'%')
</if>
<if
test=
"category != null and category != ''"
>
AND FIND_IN_SET(#{category}, category)
</if>
</select>
</mapper>
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/ModuleMapper.java
View file @
5622bf4a
...
@@ -13,7 +13,7 @@ public interface ModuleMapper {
...
@@ -13,7 +13,7 @@ public interface ModuleMapper {
int
delete
(
Module
module
);
int
delete
(
Module
module
);
List
<
Module
>
getList
(
@Param
(
"status"
)
Integer
status
);
List
<
Module
>
getList
(
@Param
(
"
cmptId"
)
Integer
cmptId
,
@Param
(
"
status"
)
Integer
status
);
int
update
(
Module
module
);
int
update
(
Module
module
);
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/ModuleMapper.xml
View file @
5622bf4a
...
@@ -4,13 +4,10 @@
...
@@ -4,13 +4,10 @@
<insert
id=
"add"
>
<insert
id=
"add"
>
INSERT INTO gk_module (
INSERT INTO gk_module (
icon, name, sort, path, is_deleted, status, create_time, update_time
icon, name, sort, path, is_deleted, status, create_time, update_time,cmpt_id
) VALUES (
) VALUES (#{icon}, #{name}, #{sort}, #{path}, #{isDeleted}, #{status}, NOW(), NOW(),#{cmptId})
#{icon}, #{name}, #{sort}, #{path}, #{isDeleted}, #{status}, NOW(), NOW()
)
</insert>
</insert>
<update
id=
"delete"
>
<update
id=
"delete"
>
UPDATE gk_module
UPDATE gk_module
SET is_deleted = true
SET is_deleted = true
...
@@ -18,21 +15,21 @@
...
@@ -18,21 +15,21 @@
</update>
</update>
<select
id=
"getList"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Module"
>
<select
id=
"getList"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Module"
>
SELECT id, icon, name,path, sort, is_deleted AS isDeleted, status, create_time AS createTime, update_time AS updateTime
SELECT id, icon, name,path, sort, is_deleted AS isDeleted, status,
cmpt_id AS cmptId,
create_time AS createTime, update_time AS updateTime
FROM gk_module
FROM gk_module
WHERE is_deleted = 0
WHERE is_deleted = 0
AND cmpt_id = #{cmptId}
<if
test=
"status!= null"
>
<if
test=
"status!= null"
>
AND status = #{status}
AND status = #{status}
</if>
</if>
ORDER BY sort ASC
ORDER BY sort ASC
</select>
</select>
<select
id=
"getById"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Module"
>
<select
id=
"getById"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Module"
>
SELECT id, icon, name,path, sort, is_deleted AS isDeleted, status, create_time AS createTime, update_time AS updateTime
SELECT id, icon, name,path, sort, is_deleted AS isDeleted, status,
cmpt_id AS cmptId,
create_time AS createTime, update_time AS updateTime
FROM gk_module
FROM gk_module
WHERE id = #{id} AND is_deleted = 0
WHERE id = #{id} AND is_deleted = 0
</select>
</select>
<select
id=
"getByName"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Module"
>
<select
id=
"getByName"
resultType=
"com.dlbridge.jadp.plugins.cmpt.dao.model.Module"
>
SELECT id, icon, name,path, sort, is_deleted AS isDeleted, status, create_time AS createTime, update_time AS updateTime
SELECT id, icon, name,path, sort, is_deleted AS isDeleted,
cmpt_id AS cmptId,
status, create_time AS createTime, update_time AS updateTime
FROM gk_module
FROM gk_module
WHERE name = #{name} AND is_deleted = 0
WHERE name = #{name} AND is_deleted = 0
</select>
</select>
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/RichTextMapper.java
View file @
5622bf4a
...
@@ -20,5 +20,5 @@ public interface RichTextMapper {
...
@@ -20,5 +20,5 @@ public interface RichTextMapper {
List
<
RichText
>
getById
(
@Param
(
"id"
)
String
id
);
List
<
RichText
>
getById
(
@Param
(
"id"
)
String
id
);
List
<
RichText
>
getPage
(
@Param
(
"type"
)
String
type
,
@Param
(
"title"
)
String
title
,
@Param
(
"
category"
)
String
category
,
@Param
(
"cmptId"
)
Integer
cmptId
,
@Param
(
"page"
)
Integer
page
,
@Param
(
"pageSize"
)
Integer
pageSize
);
List
<
RichText
>
getPage
(
@Param
(
"type"
)
String
type
,
@Param
(
"title"
)
String
title
,
@Param
(
"
moduleId"
)
Integer
category
,
@Param
(
"cmptId"
)
Integer
cmptId
,
@Param
(
"page"
)
Integer
page
,
@Param
(
"pageSize"
)
Integer
pageSize
);
}
}
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/RichTextMapper.xml
View file @
5622bf4a
...
@@ -5,7 +5,9 @@
...
@@ -5,7 +5,9 @@
<insert
id=
"add"
>
<insert
id=
"add"
>
INSERT INTO gksite.gk_rich_text( userId
INSERT INTO gksite.gk_rich_text( userId
, type
, type
, category
, path
, app_id
, module_id
, title
, title
, address
, address
, lng
, lng
...
@@ -23,7 +25,9 @@
...
@@ -23,7 +25,9 @@
, cmpt_id)
, cmpt_id)
VALUES ( #{userId}
VALUES ( #{userId}
, #{type}
, #{type}
, #{category}
, #{path}
, #{appId}
, #{moduleId}
, #{title}
, #{title}
, #{address}
, #{address}
, #{lng}
, #{lng}
...
@@ -47,7 +51,9 @@
...
@@ -47,7 +51,9 @@
SET
SET
userId = #{userId}
userId = #{userId}
,type = #{type}
,type = #{type}
,category = #{category}
,app_id = #{appId}
,path = #{path}
,module_id = #{moduleId}
,title = #{title}
,title = #{title}
,address = #{address}
,address = #{address}
,lng = #{lng}
,lng = #{lng}
...
@@ -81,6 +87,8 @@
...
@@ -81,6 +87,8 @@
SELECT id
SELECT id
, userId
, userId
, cmpt_id AS cmptId
, cmpt_id AS cmptId
, app_id AS appId
, path
, type
, type
, title
, title
, address
, address
...
@@ -93,7 +101,7 @@
...
@@ -93,7 +101,7 @@
, remark3
, remark3
, remark4
, remark4
, status
, status
,
category
,
module_id AS moduleId
FROM gksite.gk_rich_text
FROM gksite.gk_rich_text
WHERE id = #{id}
WHERE id = #{id}
</select>
</select>
...
@@ -103,6 +111,8 @@
...
@@ -103,6 +111,8 @@
id
id
,title
,title
,address
,address
,app_id AS appId
,path
,lng
,lng
,lat
,lat
,img_url AS imgUrl
,img_url AS imgUrl
...
@@ -112,7 +122,7 @@
...
@@ -112,7 +122,7 @@
,remark4
,remark4
,type
,type
,status
,status
,
category
,
module_id AS moduleId
FROM
FROM
gksite.gk_rich_text
gksite.gk_rich_text
WHERE
WHERE
...
@@ -126,8 +136,8 @@
...
@@ -126,8 +136,8 @@
<if
test=
"title != null and title != ''"
>
<if
test=
"title != null and title != ''"
>
AND title like concat('%',#{title},'%')
AND title like concat('%',#{title},'%')
</if>
</if>
<if
test=
"
category != null and category
!= ''"
>
<if
test=
"
moduleId != null and moduleId
!= ''"
>
AND FIND_IN_SET(#{
category}, category
)
AND FIND_IN_SET(#{
moduleId}, module_id
)
</if>
</if>
LIMIT #{pageSize} OFFSET #{page}
LIMIT #{pageSize} OFFSET #{page}
</select>
</select>
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/model/Cmpt.java
View file @
5622bf4a
...
@@ -33,6 +33,26 @@ public class Cmpt extends JaapRecord<Cmpt> {
...
@@ -33,6 +33,26 @@ public class Cmpt extends JaapRecord<Cmpt> {
private
String
startTime
;
private
String
startTime
;
@ApiModelProperty
(
value
=
"赛事结束时间"
,
notes
=
"赛事结束时间"
)
@ApiModelProperty
(
value
=
"赛事结束时间"
,
notes
=
"赛事结束时间"
)
private
String
endTime
;
private
String
endTime
;
@ApiModelProperty
(
value
=
"赛事开始时间"
,
notes
=
"赛事开始时间"
)
private
String
startTimeStr
;
@ApiModelProperty
(
value
=
"赛事结束时间"
,
notes
=
"赛事结束时间"
)
private
String
endTimeStr
;
@ApiModelProperty
(
value
=
"报名开始时间"
,
notes
=
"报名开始时间"
)
private
String
openTime
;
@ApiModelProperty
(
value
=
"报名结束时间"
,
notes
=
"报名结束时间"
)
private
String
deadLine
;
@ApiModelProperty
(
value
=
"城市"
,
notes
=
"城市"
)
private
String
city
;
@ApiModelProperty
(
value
=
"省份"
,
notes
=
"省份"
)
private
String
province
;
@ApiModelProperty
(
value
=
"区域"
,
notes
=
"区域"
)
private
String
area
;
@ApiModelProperty
(
value
=
"详细地址"
,
notes
=
"详细地址"
)
private
String
location
;
private
boolean
isDayRank
;
private
boolean
isDayRank
;
private
boolean
isWeekRank
;
private
boolean
isWeekRank
;
...
@@ -47,6 +67,11 @@ public class Cmpt extends JaapRecord<Cmpt> {
...
@@ -47,6 +67,11 @@ public class Cmpt extends JaapRecord<Cmpt> {
private
int
cmptStatus
;
private
int
cmptStatus
;
@ApiModelProperty
(
value
=
"报名状态"
,
notes
=
"报名状态"
)
private
int
enrollStatus
;
@ApiModelProperty
(
value
=
"比赛状态"
,
notes
=
"比赛状态"
)
private
int
openStatus
;
private
int
auditStatus
;
private
int
auditStatus
;
}
}
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/model/JoyfulCheckinRecords.java
deleted
100644 → 0
View file @
1d656452
package
com
.
dlbridge
.
jadp
.
plugins
.
cmpt
.
dao
.
model
;
import
lombok.Data
;
@Data
public
class
JoyfulCheckinRecords
{
private
String
userId
;
private
String
activityId
;
private
String
checkinTime
;
private
String
title
;
}
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/model/Module.java
View file @
5622bf4a
...
@@ -7,8 +7,12 @@ import java.sql.Timestamp;
...
@@ -7,8 +7,12 @@ import java.sql.Timestamp;
@Data
@Data
public
class
Module
{
public
class
Module
{
private
Long
id
;
private
Long
id
;
//赛事id
private
Long
cmptId
;
// 图标URL
// 图标URL
private
String
icon
;
private
String
icon
;
...
@@ -34,5 +38,6 @@ public class Module {
...
@@ -34,5 +38,6 @@ public class Module {
// 更新时间
// 更新时间
//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private
Timestamp
updateTime
;
private
Timestamp
updateTime
;
}
}
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/model/RichText.java
View file @
5622bf4a
...
@@ -7,10 +7,10 @@ public class RichText {
...
@@ -7,10 +7,10 @@ public class RichText {
private
Integer
id
;
private
Integer
id
;
private
Integer
userId
;
private
Integer
userId
;
private
Integer
cmptId
;
private
Integer
cmptId
;
//
服务类型(3:特色民宿:4:旅游景点,5:特色餐饮 6:当地特产 7: 应急避险 8: 医疗点位 9:运动产品
)
//
类型配置(1 网页 2 小程序(appId,path) 3 短连接(#小程序://) 4 页面(小程序) 5文档word,pdf 6 图片 png 7 定位
)
private
Integer
type
;
private
Integer
type
;
//
点位类型 (1:打卡点,2:服务驿站,3:民宿:4:景点,5:餐饮)
//
分类id
private
String
category
;
private
Integer
moduleId
;
private
String
title
;
private
String
title
;
private
String
address
;
private
String
address
;
private
Double
lng
;
private
Double
lng
;
...
@@ -23,4 +23,8 @@ public class RichText {
...
@@ -23,4 +23,8 @@ public class RichText {
private
String
remark4
;
private
String
remark4
;
private
Integer
status
;
private
Integer
status
;
private
Integer
delFlg
;
private
Integer
delFlg
;
// appId
private
String
appId
;
// 小程序路径/文件地址/图片地址
private
String
path
;
}
}
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/CmptService.java
View file @
5622bf4a
This diff is collapsed.
Click to expand it.
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/JoyfulCheckinRecordsService.java
deleted
100644 → 0
View file @
1d656452
package
com
.
dlbridge
.
jadp
.
plugins
.
cmpt
.
service
;
import
com.dlbridge.jadp.plugins.cmpt.dao.mapper.JoyfulCheckinRecordsMapper
;
import
com.dlbridge.jadp.plugins.cmpt.dao.model.JoyfulCheckinRecords
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
* 活动签到打卡记录
*
* @author LI
*/
@Service
public
class
JoyfulCheckinRecordsService
{
@Resource
JoyfulCheckinRecordsMapper
joyfulCheckinRecordsMapper
;
/**
* 活动签到打卡记录 追加
*
* @param joyfulCheckinRecords
* @return
*/
public
int
insJoyfulCheckinRecords
(
JoyfulCheckinRecords
joyfulCheckinRecords
)
{
return
joyfulCheckinRecordsMapper
.
insJoyfulCheckinRecords
(
joyfulCheckinRecords
);
}
/**
* 活动签到打卡记录 条件检索
*
* @param userId
* @param pageNo
* @param pageCount
* @return
*/
public
List
<
JoyfulCheckinRecords
>
getJoyfulCheckinRecordsList
(
String
userId
,
int
pageNo
,
int
pageCount
)
{
int
offset
=
PointService
.
getOffset
(
pageNo
,
pageCount
);
List
<
JoyfulCheckinRecords
>
joyfulCheckinRecordsList
=
joyfulCheckinRecordsMapper
.
getJoyfulCheckinRecordsList
(
userId
,
offset
,
pageCount
);
return
joyfulCheckinRecordsList
;
}
}
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/ModuleService.java
View file @
5622bf4a
...
@@ -21,8 +21,8 @@ public class ModuleService {
...
@@ -21,8 +21,8 @@ public class ModuleService {
return
moduleMapper
.
delete
(
module
);
return
moduleMapper
.
delete
(
module
);
}
}
public
List
<
Module
>
listModules
(
Integer
status
)
{
public
List
<
Module
>
listModules
(
Integer
cmptId
,
Integer
status
)
{
return
moduleMapper
.
getList
(
status
);
return
moduleMapper
.
getList
(
cmptId
,
status
);
}
}
public
int
updateModuleStatus
(
Module
module
)
{
public
int
updateModuleStatus
(
Module
module
)
{
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/RichTextService.java
View file @
5622bf4a
...
@@ -82,7 +82,7 @@ public class RichTextService {
...
@@ -82,7 +82,7 @@ public class RichTextService {
* @return
* @return
*/
*/
public
List
<
RichText
>
getPage
(
RichTextBean
richTextBean
,
int
page
,
int
pageSize
)
{
public
List
<
RichText
>
getPage
(
RichTextBean
richTextBean
,
int
page
,
int
pageSize
)
{
List
<
RichText
>
RichTextList
=
richTextMapper
.
getPage
(
richTextBean
.
getType
(),
richTextBean
.
getTitle
(),
richTextBean
.
get
Category
(),
richTextBean
.
getCmptId
(),
page
,
pageSize
);
List
<
RichText
>
RichTextList
=
richTextMapper
.
getPage
(
richTextBean
.
getType
(),
richTextBean
.
getTitle
(),
richTextBean
.
get
ModuleId
(),
richTextBean
.
getCmptId
(),
page
,
pageSize
);
if
(
StringUtils
.
isNotBlank
(
richTextBean
.
getDistance
()))
{
if
(
StringUtils
.
isNotBlank
(
richTextBean
.
getDistance
()))
{
RichTextList
=
RichTextList
.
stream
().
filter
(
model
->
this
.
notGtDistance
(
model
,
richTextBean
)).
collect
(
Collectors
.
toList
());
RichTextList
=
RichTextList
.
stream
().
filter
(
model
->
this
.
notGtDistance
(
model
,
richTextBean
)).
collect
(
Collectors
.
toList
());
}
}
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/JoyfulRoadController.java
deleted
100644 → 0
View file @
1d656452
This diff is collapsed.
Click to expand it.
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/MicroApiController.java
View file @
5622bf4a
...
@@ -132,6 +132,9 @@ public class MicroApiController {
...
@@ -132,6 +132,9 @@ public class MicroApiController {
@Resource
@Resource
CustomerService
customerService
;
CustomerService
customerService
;
@Resource
private
WeatherService
weatherService
;
@PostMapping
(
value
=
"/bindCmpt"
)
@PostMapping
(
value
=
"/bindCmpt"
)
@ApiResponses
({
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"成功"
),
@ApiResponse
(
code
=
200
,
message
=
"成功"
),
...
@@ -1495,6 +1498,25 @@ public class MicroApiController {
...
@@ -1495,6 +1498,25 @@ public class MicroApiController {
return
Result
.
success
().
setContent
(
hashOperations
.
keys
(
"best_mark_no"
));
return
Result
.
success
().
setContent
(
hashOperations
.
keys
(
"best_mark_no"
));
}
}
@GetMapping
(
value
=
"/getWeatherNow/{areacode}"
)
@ApiOperation
(
value
=
"当前天气"
,
notes
=
"当前天气"
,
tags
=
"当前天气"
)
@ApiImplicitParam
(
value
=
"地区编码"
,
name
=
"areacode"
,
required
=
true
,
paramType
=
"path"
,
defaultValue
=
"101090301"
)
public
Result
<
Map
<
String
,
Object
>>
getWeatherNow
(
@PathVariable
(
"areacode"
)
String
areacode
)
{
Map
<
String
,
Object
>
map
=
weatherService
.
getWeatherNow
(
areacode
);
return
Result
.
success
().
setContent
(
map
);
}
@GetMapping
(
value
=
"/getWeatherDay/{areacode}/{days}"
)
@ApiOperation
(
value
=
"近期天气"
,
notes
=
"近期天气"
,
tags
=
"近期天气"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
value
=
"地区编码"
,
name
=
"areacode"
,
required
=
true
,
paramType
=
"path"
,
defaultValue
=
"101090301"
),
@ApiImplicitParam
(
value
=
"未来天数"
,
name
=
"days"
,
required
=
true
,
paramType
=
"path"
,
defaultValue
=
"3"
)})
public
Result
<
Map
<
String
,
Object
>>
getWeatherDay
(
@PathVariable
(
"areacode"
)
String
areacode
,
@PathVariable
(
"days"
)
String
days
)
{
Map
<
String
,
Object
>
map
=
weatherService
.
getWeatherDay
(
areacode
,
days
);
return
Result
.
success
().
setContent
(
map
);
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"-aaa"
.
split
(
"-"
)[
0
]+
","
+
"-aaa"
.
split
(
"-"
)[
1
]);
System
.
out
.
println
(
"-aaa"
.
split
(
"-"
)[
0
]+
","
+
"-aaa"
.
split
(
"-"
)[
1
]);
}
}
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/ModuleController.java
View file @
5622bf4a
package
com
.
dlbridge
.
jadp
.
plugins
.
cmpt
.
web
;
package
com
.
dlbridge
.
jadp
.
plugins
.
cmpt
.
web
;
import
com.dlbridge.jadp.common.interceptor.PageView
;
import
com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt
;
import
com.dlbridge.jadp.plugins.cmpt.dao.model.Module
;
import
com.dlbridge.jadp.plugins.cmpt.dao.model.Module
;
import
com.dlbridge.jadp.plugins.cmpt.service.CmptService
;
import
com.dlbridge.jadp.plugins.cmpt.service.ModuleService
;
import
com.dlbridge.jadp.plugins.cmpt.service.ModuleService
;
import
com.neusoft.www.utils.web.Result
;
import
com.neusoft.www.utils.web.Result
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -10,6 +13,7 @@ import io.swagger.annotations.ApiSort;
...
@@ -10,6 +13,7 @@ import io.swagger.annotations.ApiSort;
import
lombok.extern.log4j.Log4j2
;
import
lombok.extern.log4j.Log4j2
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
...
@@ -17,14 +21,15 @@ import java.util.List;
...
@@ -17,14 +21,15 @@ import java.util.List;
@Log4j2
@Log4j2
@RestController
@RestController
@RequestMapping
(
value
=
"gk/module"
)
@RequestMapping
(
value
=
"gk/module"
)
@Api
(
value
=
"
自助服务模块"
,
tags
=
"自助服务模块
"
)
@Api
(
value
=
"
分类管理"
,
tags
=
"分类管理
"
)
@ApiSort
(
10
)
@ApiSort
(
10
)
public
class
ModuleController
{
public
class
ModuleController
{
@Resource
@Resource
private
ModuleService
moduleService
;
private
ModuleService
moduleService
;
//-------------------------自助服务模块-----------------------
//-------------------------服务分类模块-----------------------
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
@ApiOperation
(
value
=
"新增服务模块"
,
notes
=
"新增一个新的服务模块"
)
@ApiOperation
(
value
=
"新增服务模块"
,
notes
=
"新增一个新的服务模块"
)
...
@@ -33,16 +38,6 @@ public class ModuleController {
...
@@ -33,16 +38,6 @@ public class ModuleController {
if
(
StringUtils
.
isBlank
(
module
.
getName
()))
{
if
(
StringUtils
.
isBlank
(
module
.
getName
()))
{
return
Result
.
fail
().
setMsg
(
"服务模块名称不能为空!"
);
return
Result
.
fail
().
setMsg
(
"服务模块名称不能为空!"
);
}
}
if
(
StringUtils
.
isBlank
(
module
.
getIcon
()))
{
return
Result
.
fail
().
setMsg
(
"服务模块图标不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
module
.
getIcon
()))
{
return
Result
.
fail
().
setMsg
(
"服务模块图标不能为空!"
);
}
Module
exitModule
=
moduleService
.
getModuleByName
(
module
.
getName
());
if
(
exitModule
!=
null
){
return
Result
.
fail
().
setMsg
(
"服务模块已存在!"
);
}
int
result
=
moduleService
.
addModule
(
module
);
int
result
=
moduleService
.
addModule
(
module
);
if
(
result
!=
1
)
{
if
(
result
!=
1
)
{
return
Result
.
fail
().
setMsg
(
"新增失败!"
);
return
Result
.
fail
().
setMsg
(
"新增失败!"
);
...
@@ -56,13 +51,6 @@ public class ModuleController {
...
@@ -56,13 +51,6 @@ public class ModuleController {
if
(
StringUtils
.
isBlank
(
module
.
getName
()))
{
if
(
StringUtils
.
isBlank
(
module
.
getName
()))
{
return
Result
.
fail
().
setMsg
(
"服务模块名称不能为空!"
);
return
Result
.
fail
().
setMsg
(
"服务模块名称不能为空!"
);
}
}
if
(
StringUtils
.
isBlank
(
module
.
getIcon
()))
{
return
Result
.
fail
().
setMsg
(
"服务模块图标不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
module
.
getPath
()))
{
return
Result
.
fail
().
setMsg
(
"跳转路径不能为空!"
);
}
int
result
=
moduleService
.
updateModule
(
module
);
int
result
=
moduleService
.
updateModule
(
module
);
if
(
result
!=
1
)
{
if
(
result
!=
1
)
{
return
Result
.
fail
().
setMsg
(
"更新失败!"
);
return
Result
.
fail
().
setMsg
(
"更新失败!"
);
...
@@ -88,8 +76,8 @@ public class ModuleController {
...
@@ -88,8 +76,8 @@ public class ModuleController {
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
@ApiOperation
(
value
=
"获取服务模块列表"
,
notes
=
"获取所有服务模块列表"
)
@ApiOperation
(
value
=
"获取服务模块列表"
,
notes
=
"获取所有服务模块列表"
)
public
Result
<
List
<
Module
>>
listModules
(
@RequestParam
(
value
=
"status"
,
required
=
false
)
Integer
status
)
{
public
Result
<
List
<
Module
>>
listModules
(
@RequestParam
(
value
=
"
cmptId"
)
Integer
cmptId
,
@RequestParam
(
value
=
"
status"
,
required
=
false
)
Integer
status
)
{
List
<
Module
>
serviceModules
=
moduleService
.
listModules
(
status
);
List
<
Module
>
serviceModules
=
moduleService
.
listModules
(
cmptId
,
status
);
return
Result
.
success
().
setContent
(
serviceModules
);
return
Result
.
success
().
setContent
(
serviceModules
);
}
}
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/ModuleSettingController.java
View file @
5622bf4a
...
@@ -23,7 +23,7 @@ public class ModuleSettingController {
...
@@ -23,7 +23,7 @@ public class ModuleSettingController {
@RequestMapping
(
"index/{cmptId}"
)
@RequestMapping
(
"index/{cmptId}"
)
@PageView
@PageView
public
ModelAndView
outterLink
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
ModelAndView
mv
)
{
public
ModelAndView
modulePage
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
ModelAndView
mv
)
{
Cmpt
cmpt
=
cmptService
.
queryCmptBycmptId
(
cmptId
);
Cmpt
cmpt
=
cmptService
.
queryCmptBycmptId
(
cmptId
);
mv
.
addObject
(
"cmpt"
,
cmpt
);
mv
.
addObject
(
"cmpt"
,
cmpt
);
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/ServiceSettingController.java
View file @
5622bf4a
...
@@ -29,7 +29,7 @@ public class ServiceSettingController {
...
@@ -29,7 +29,7 @@ public class ServiceSettingController {
@RequestMapping
(
"index/{cmptId}"
)
@RequestMapping
(
"index/{cmptId}"
)
@PageView
@PageView
public
ModelAndView
outterLink
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
ModelAndView
mv
)
{
public
ModelAndView
servicePage
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
ModelAndView
mv
)
{
Cmpt
cmpt
=
cmptService
.
queryCmptBycmptId
(
cmptId
);
Cmpt
cmpt
=
cmptService
.
queryCmptBycmptId
(
cmptId
);
mv
.
addObject
(
"cmpt"
,
cmpt
);
mv
.
addObject
(
"cmpt"
,
cmpt
);
...
...
src/main/webapp/WEB-INF/views/cmpt/module.jsp
View file @
5622bf4a
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
pageEncoding=
"utf-8"
%>
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
pageEncoding=
"utf-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ taglib
prefix=
"fn"
uri=
"http://java.sun.com/jsp/jstl/functions"
%>
<%@ taglib
prefix=
"fn"
uri=
"http://java.sun.com/jsp/jstl/functions"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<!doctype html>
<!doctype html>
<html>
<html>
<head>
<head>
<title>
自助服务模块
</title>
<title>
自助服务模块
</title>
<!-- Bootstrap CSS-->
<!-- Bootstrap CSS-->
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/vendor/bootstrap/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/vendor/bootstrap/css/bootstrap.min.css"
>
...
@@ -138,7 +138,6 @@
...
@@ -138,7 +138,6 @@
}
}
.saveDiv
{
.saveDiv
{
display
:
flex
;
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
...
@@ -237,11 +236,11 @@
...
@@ -237,11 +236,11 @@
left
:
0
;
left
:
0
;
}
}
</style>
</style>
</head>
</head>
<body>
<body>
<jsp:include
page=
"../common/header.jsp"
></jsp:include>
<jsp:include
page=
"../common/header.jsp"
></jsp:include>
<div
class=
"page-content d-flex align-items-stretch main-body"
>
<div
class=
"page-content d-flex align-items-stretch main-body"
>
<jsp:include
page=
"../common/menu.jsp"
></jsp:include>
<jsp:include
page=
"../common/menu.jsp"
></jsp:include>
<div
class=
"rght"
id=
"module"
>
<div
class=
"rght"
id=
"module"
>
<div
class=
"section"
>
<div
class=
"section"
>
...
@@ -268,7 +267,7 @@
...
@@ -268,7 +267,7 @@
<th
style=
"text-align: center"
>
图标
</th>
<th
style=
"text-align: center"
>
图标
</th>
<th
style=
"text-align: left"
>
模块名
</th>
<th
style=
"text-align: left"
>
模块名
</th>
<th
style=
"text-align: left"
>
排序
</th>
<th
style=
"text-align: left"
>
排序
</th>
<th
style=
"text-align: left"
>
路径
</th>
<th
style=
"text-align: left"
>
链接
</th>
<th
style=
"text-align: center"
>
状态
</th>
<th
style=
"text-align: center"
>
状态
</th>
<th
style=
"text-align: center"
>
操作
</th>
<th
style=
"text-align: center"
>
操作
</th>
</tr>
</tr>
...
@@ -276,9 +275,10 @@
...
@@ -276,9 +275,10 @@
<tbody>
<tbody>
<tr
v-if=
""
v-for=
"item in list"
:data-id=
"item.id"
>
<tr
v-if=
""
v-for=
"item in list"
:data-id=
"item.id"
>
<td
style=
"text-align: center"
>
<td
style=
"text-align: center"
>
<img
:src=
"item.icon"
style=
"width:80px;height:80px;"
/>
<img
:src=
"item.icon"
style=
"width:80px;height:80px;"
v-if=
"item.icon"
/>
<span
v-else
>
未设置
</span>
</td>
</td>
<td
class=
"name"
style=
"text-align: left;"
>
<td
class=
"name"
style=
"text-align: left;"
>
<span
v-text=
"item.name"
></span>
<span
v-text=
"item.name"
></span>
</td>
</td>
...
@@ -286,7 +286,8 @@
...
@@ -286,7 +286,8 @@
<span
v-text=
"item.sort"
></span>
<span
v-text=
"item.sort"
></span>
</td>
</td>
<td
class=
"name"
style=
"text-align: left;"
>
<td
class=
"name"
style=
"text-align: left;"
>
<span
v-text=
"item.path"
></span>
<span
v-text=
"item.path"
v-if=
"item.path"
></span>
<span
v-else
>
未设置
</span>
</td>
</td>
<td
style=
"text-align: center"
>
<td
style=
"text-align: center"
>
...
@@ -339,7 +340,7 @@
...
@@ -339,7 +340,7 @@
</div>
</div>
<div>
<div>
<input
class=
"input"
type=
"text"
v-model=
"module.path"
<input
class=
"input"
type=
"text"
v-model=
"module.path"
placeholder=
"请输入跳转路径
"
>
placeholder=
"请输入跳转路径(可选 支持小程序内部跳转和h5)
"
>
</div>
</div>
</div>
</div>
<div
class=
"func"
>
<div
class=
"func"
>
...
@@ -354,7 +355,7 @@
...
@@ -354,7 +355,7 @@
<div
class=
"func"
>
<div
class=
"func"
>
<span
class=
"title-new"
>
服务模块封面
</span>
<span
class=
"title-new"
>
服务模块封面/图标(可选)
</span>
<span
style=
"font-size: 16px;color: #ce3939;margin:10px 0;"
>
<span
style=
"font-size: 16px;color: #ce3939;margin:10px 0;"
>
<span
<span
style=
"font-size: 12px;display: inline-block;border-radius: 50%;height: 18px;width: 18px;background: #ce3939;color: white;text-align: center;"
>
注
</span>
style=
"font-size: 12px;display: inline-block;border-radius: 50%;height: 18px;width: 18px;background: #ce3939;color: white;text-align: center;"
>
注
</span>
...
@@ -404,7 +405,7 @@
...
@@ -404,7 +405,7 @@
module
:
{
module
:
{
"id"
:
null
,
"id"
:
null
,
"name"
:
null
,
"name"
:
null
,
"sort"
:
1
0
,
"sort"
:
10
0
,
"path"
:
null
,
"path"
:
null
,
"icon"
:
null
,
"icon"
:
null
,
"status"
:
1
,
// 状态(0:关闭 1:开启)
"status"
:
1
,
// 状态(0:关闭 1:开启)
...
@@ -445,7 +446,8 @@
...
@@ -445,7 +446,8 @@
"name"
:
null
,
"name"
:
null
,
"icon"
:
null
,
"icon"
:
null
,
"path"
:
null
,
"path"
:
null
,
"sort"
:
10
,
cmptId
:
getCId
(),
"sort"
:
100
,
"status"
:
1
,
// 状态(0:关闭 1:开启)
"status"
:
1
,
// 状态(0:关闭 1:开启)
"isDeleted"
:
0
// 删除状态(0:未删除 1:已删除)
"isDeleted"
:
0
// 删除状态(0:未删除 1:已删除)
};
};
...
@@ -478,21 +480,10 @@
...
@@ -478,21 +480,10 @@
// 保存
// 保存
submit
()
{
submit
()
{
const
module
=
{
...
this
.
module
,
status
:
Number
(
this
.
module
.
status
),
sort
:
Number
(
this
.
module
.
sort
)
}
const
module
=
{
...
this
.
module
,
status
:
Number
(
this
.
module
.
status
),
sort
:
Number
(
this
.
module
.
sort
)
}
// 假设 service 对象已经定义并初始化
if
(
!
module
.
icon
)
{
layer
.
msg
(
"图标图片!"
,
{
icon
:
5
,
duration
:
1500
});
return
;
}
if
(
!
module
.
name
)
{
if
(
!
module
.
name
)
{
layer
.
msg
(
"模块标题不能为空!"
,
{
icon
:
5
,
duration
:
1500
});
layer
.
msg
(
"模块名不能为空!"
,
{
icon
:
5
,
duration
:
1500
});
return
;
}
if
(
!
module
.
path
)
{
layer
.
msg
(
"跳转路径不能为空!"
,
{
icon
:
5
,
duration
:
1500
});
return
;
return
;
}
}
const
url
=
this
.
module
.
id
?
'/gk/module/update'
:
'/gk/module/add'
const
url
=
this
.
module
.
id
?
'/gk/module/update'
:
'/gk/module/add'
$
.
ajax
({
$
.
ajax
({
url
:
url
,
url
:
url
,
...
@@ -502,10 +493,17 @@
...
@@ -502,10 +493,17 @@
beforeSend
:
()
=>
{
beforeSend
:
()
=>
{
layer
.
load
()
layer
.
load
()
},
},
success
:
()
=>
{
success
:
(
res
)
=>
{
if
(
res
.
code
==
1
)
{
layer
.
msg
(
'保存成功!'
);
layer
.
msg
(
'保存成功!'
);
app
.
$data
.
dialog
=
false
;
app
.
$data
.
dialog
=
false
;
app
.
queryAll
();
app
.
queryAll
();
}
else
{
layer
.
msg
(
res
.
msg
);
app
.
$data
.
dialog
=
false
;
app
.
queryAll
();
}
},
},
complete
:
()
=>
{
complete
:
()
=>
{
layer
.
closeAll
()
layer
.
closeAll
()
...
@@ -518,8 +516,8 @@
...
@@ -518,8 +516,8 @@
},
},
// 查询所有
// 查询所有
queryAll
()
{
queryAll
()
{
if
(
!
getCId
)
return
if
(
!
getCId
()
)
return
const
url
=
'/gk/module/list?status=1'
const
url
=
'/gk/module/list?status=1&cmptId='
+
getCId
()
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
contentType
:
'application/json'
,
contentType
:
'application/json'
,
...
@@ -594,6 +592,6 @@
...
@@ -594,6 +592,6 @@
});
});
app
.
queryAll
();
app
.
queryAll
();
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
\ No newline at end of file
src/main/webapp/WEB-INF/views/cmpt/service.jsp
View file @
5622bf4a
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/views/common/menu.jsp
View file @
5622bf4a
This diff is collapsed.
Click to expand it.
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