Commit 5d5f8fd8 by 田超

Merge branch 'feature/1003185' into 'master'

feat: [1003185] 权益配置选群加社群名字字段,添加拼群开关,立享权益添加排序

See merge request rays/pcloud-book!827
parents fa7c0866 d78b9210
...@@ -44,6 +44,9 @@ public class PcloudBookGroupClassifyVO { ...@@ -44,6 +44,9 @@ public class PcloudBookGroupClassifyVO {
@ApiModelProperty("城市名称") @ApiModelProperty("城市名称")
private String cityName; private String cityName;
@ApiModelProperty("社群名称")
private String groupQrcodeName;
public String getCityName() { public String getCityName() {
return cityName; return cityName;
} }
...@@ -148,6 +151,14 @@ public class PcloudBookGroupClassifyVO { ...@@ -148,6 +151,14 @@ public class PcloudBookGroupClassifyVO {
this.groupPic = groupPic; this.groupPic = groupPic;
} }
public String getGroupQrcodeName() {
return groupQrcodeName;
}
public void setGroupQrcodeName(String groupQrcodeName) {
this.groupQrcodeName = groupQrcodeName;
}
@Override @Override
public String toString() { public String toString() {
return "PcloudBookGroupClassifyVO{" + return "PcloudBookGroupClassifyVO{" +
......
...@@ -51,4 +51,6 @@ public interface RightsSettingItemDao extends BaseDao<RightsSettingItem>{ ...@@ -51,4 +51,6 @@ public interface RightsSettingItemDao extends BaseDao<RightsSettingItem>{
Map<Long, RightsSettingClassify> getRightsClassifyMap(ArrayList<Long> longs); Map<Long, RightsSettingClassify> getRightsClassifyMap(ArrayList<Long> longs);
List<RightsSettingItem> getItemsByClassify(Long firstClassify, Long secondClassify, Long gradeLabelId, Long subjectLabelId, Long volLabelId, String rightsType, Integer readType, Long rightsClassifyId); List<RightsSettingItem> getItemsByClassify(Long firstClassify, Long secondClassify, Long gradeLabelId, Long subjectLabelId, Long volLabelId, String rightsType, Integer readType, Long rightsClassifyId);
List<RightsSettingItem> getRightSettingInfo(String serveType, String rightsType, Long rightsSettingId);
} }
\ No newline at end of file
...@@ -84,4 +84,13 @@ public class RightsSettingItemDaoImpl extends BaseDaoImpl<RightsSettingItem> imp ...@@ -84,4 +84,13 @@ public class RightsSettingItemDaoImpl extends BaseDaoImpl<RightsSettingItem> imp
map.put("rightsClassifyId",rightsClassifyId); map.put("rightsClassifyId",rightsClassifyId);
return getSessionTemplate().selectList(getStatement("getItemsByClassify"), map); return getSessionTemplate().selectList(getStatement("getItemsByClassify"), map);
} }
@Override
public List<RightsSettingItem> getRightSettingInfo(String serveType, String rightsType, Long rightsSettingId){
Map<String,Object> map = new HashMap<>();
map.put("serveType",serveType);
map.put("rightsType",rightsType);
map.put("rightsSettingId",rightsSettingId);
return getSessionTemplate().selectList(getStatement("getRightSettingInfo"), map);
}
} }
...@@ -101,4 +101,9 @@ public class RightsSettingItem extends BaseEntity { ...@@ -101,4 +101,9 @@ public class RightsSettingItem extends BaseEntity {
* 阅读方式1轻松2高效3深度 * 阅读方式1轻松2高效3深度
*/ */
private Integer readType; private Integer readType;
/**
* 拼群开关 0 不拼 1 拼
*/
private Integer collageState;
} }
\ No newline at end of file
...@@ -63,4 +63,10 @@ public class RightsSettingNow { ...@@ -63,4 +63,10 @@ public class RightsSettingNow {
private Boolean onlineCourseOpen; private Boolean onlineCourseOpen;
/**
* 排序后的settingTitle集合
*/
@ApiModelProperty("排序后的settingTitle集合")
private List<RightsSettingTitle> newRightsSettingTitles;
} }
\ No newline at end of file
...@@ -52,4 +52,10 @@ public class RightsSettingTitle implements Serializable { ...@@ -52,4 +52,10 @@ public class RightsSettingTitle implements Serializable {
*/ */
private Boolean deepRead; private Boolean deepRead;
/**
* 拼群开关 0 不拼 1 拼
*/
private Integer collageState;
private Integer seqNum;
} }
\ No newline at end of file
...@@ -65,9 +65,9 @@ public class RightsSettingFacede { ...@@ -65,9 +65,9 @@ public class RightsSettingFacede {
@GetMapping("getRightsSetting") @GetMapping("getRightsSetting")
public ResponseDto<RightsSetting> getRightsSetting( public ResponseDto<RightsSetting> getRightsSetting(
// @RequestHeader("token") String token, @RequestHeader("token") String token,
@RequestParam("id") Long id ) throws PermissionException { @RequestParam("id") Long id ) throws PermissionException {
// SessionUtil.getToken4Redis(token); SessionUtil.getToken4Redis(token);
return new ResponseDto<RightsSetting>(rightsSettingBiz.getRightsSetting(id)); return new ResponseDto<RightsSetting>(rightsSettingBiz.getRightsSetting(id));
} }
......
...@@ -5,8 +5,8 @@ server: ...@@ -5,8 +5,8 @@ server:
eureka: eureka:
instance: instance:
status-page-url-path: /book/v1.0/swagger-ui.html status-page-url-path: /book/v1.0/swagger-ui.html
# client: client:
# register-with-eureka: false #禁止自己当做服务注册 register-with-eureka: false #禁止自己当做服务注册
spring: spring:
application: application:
......
...@@ -1126,6 +1126,7 @@ ...@@ -1126,6 +1126,7 @@
a.create_user as adviserId, a.create_user as adviserId,
count(b.classify_id) AS groupCount, count(b.classify_id) AS groupCount,
c.agent_id as agentId, c.agent_id as agentId,
c.group_qrcode_name as groupQrcodeName,
city_code cityCode city_code cityCode
FROM FROM
book_group_classify a book_group_classify a
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<result property="easyRead" column="easy_read" jdbcType="TINYINT" /> <result property="easyRead" column="easy_read" jdbcType="TINYINT" />
<result property="efficientRead" column="efficient_read" jdbcType="TINYINT" /> <result property="efficientRead" column="efficient_read" jdbcType="TINYINT" />
<result property="deepRead" column="deep_read" jdbcType="TINYINT" /> <result property="deepRead" column="deep_read" jdbcType="TINYINT" />
<result property="collageState" column="collage_state" jdbcType="INTEGER" />
</resultMap> </resultMap>
<!--通过实体作为筛选条件查询--> <!--通过实体作为筛选条件查询-->
...@@ -25,7 +26,7 @@ ...@@ -25,7 +26,7 @@
i.id, i.rights_setting_id rightsSettingId, i.id, i.rights_setting_id rightsSettingId,
i.rights_type rightsType, i.rights_classify_id rightsClassifyId, i.rights_type rightsType, i.rights_classify_id rightsClassifyId,
i.description, i.create_time createTime, i.title,i.uuid,i.open_state openState,i.service_desc serviceDesc,i.serve_type serveType, i.description, i.create_time createTime, i.title,i.uuid,i.open_state openState,i.service_desc serviceDesc,i.serve_type serveType,
c.book_id bookId, i.easy_read easyRead,i.efficient_read efficientRead,i.deep_read deepRead c.book_id bookId, i.easy_read easyRead,i.efficient_read efficientRead,i.deep_read deepRead,i.collage_state collageState
from book.rights_setting_item i from book.rights_setting_item i
LEFT JOIN rights_setting c ON c.id=i.rights_setting_id LEFT JOIN rights_setting c ON c.id=i.rights_setting_id
<where> <where>
...@@ -107,9 +108,9 @@ ...@@ -107,9 +108,9 @@
<!--新增所有列--> <!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true"> <insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into book.rights_setting_item(rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,service_desc,serve_type, insert into book.rights_setting_item(rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,service_desc,serve_type,
easy_read,efficient_read,deep_read) easy_read,efficient_read,deep_read,collage_state)
values (#{rightsSettingId}, #{rightsType}, #{rightsClassifyId}, #{description}, NOW(), #{title},#{uuid},#{openState},#{serviceDesc},#{serveType}, values (#{rightsSettingId}, #{rightsType}, #{rightsClassifyId}, #{description}, NOW(), #{title},#{uuid},#{openState},#{serviceDesc},#{serveType},
#{easyRead},#{efficientRead},#{deepRead}) #{easyRead},#{efficientRead},#{deepRead},#{collageState})
</insert> </insert>
<!--通过权益主键删除--> <!--通过权益主键删除-->
...@@ -125,7 +126,7 @@ ...@@ -125,7 +126,7 @@
<insert id="batchInsert" useGeneratedKeys="true" parameterType="java.util.List"> <insert id="batchInsert" useGeneratedKeys="true" parameterType="java.util.List">
insert into book.rights_setting_item ( insert into book.rights_setting_item (
rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,service_desc,serve_type, rights_setting_id, rights_type, rights_classify_id, description, create_time,title,uuid,open_state,service_desc,serve_type,
easy_read,efficient_read,deep_read easy_read,efficient_read,deep_read,collage_state
) )
values values
<foreach collection="list" item="item" index="index" separator="," > <foreach collection="list" item="item" index="index" separator="," >
...@@ -140,7 +141,8 @@ ...@@ -140,7 +141,8 @@
#{item.openState}, #{item.openState},
#{item.serviceDesc}, #{item.serviceDesc},
#{item.serveType}, #{item.serveType},
#{item.easyRead},#{item.efficientRead},#{item.deepRead} #{item.easyRead},#{item.efficientRead},#{item.deepRead},
#{item.collageState}
) )
</foreach> </foreach>
</insert> </insert>
...@@ -201,4 +203,19 @@ ...@@ -201,4 +203,19 @@
</where> </where>
</select> </select>
<select id="getRightSettingInfo" parameterType="list" resultMap="RightsSettingItemMap">
SELECT id, rights_setting_id, serve_type , rights_type ,collage_state
FROM rights_setting_item
WHERE 1=1
<if test="serveType!=null">
and serve_type=#{serveType}
</if>
<if test="rightsType!=null">
and rights_type=#{rightsType}
</if>
<if test="rightsSettingId!=null">
and rights_setting_id=#{rightsSettingId}
</if>
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -14,12 +14,14 @@ ...@@ -14,12 +14,14 @@
<result column="easy_read" jdbcType="TINYINT" property="easyRead" /> <result column="easy_read" jdbcType="TINYINT" property="easyRead" />
<result column="efficient_read" jdbcType="TINYINT" property="efficientRead" /> <result column="efficient_read" jdbcType="TINYINT" property="efficientRead" />
<result column="deep_read" jdbcType="TINYINT" property="deepRead" /> <result column="deep_read" jdbcType="TINYINT" property="deepRead" />
<result column="seq_num" jdbcType="INTEGER" property="seqNum" />
<result column="collage_state" jdbcType="TINYINT" property="collageState" />
</resultMap> </resultMap>
<sql id="baseSql"> <sql id="baseSql">
id, rights_setting_id, rights_setting_title, id, rights_setting_id, rights_setting_title,
rights_setting_desc, open_state, create_time, rights_setting_desc, open_state, create_time,
update_time,rights_setting_now_type,serve_type,easy_read,efficient_read,deep_read update_time,rights_setting_now_type,serve_type,easy_read,efficient_read,deep_read,seq_num,collage_state
</sql> </sql>
<insert id="insert" parameterType="com.pcloud.book.rightsSetting.entity.RightsSettingTitle"> <insert id="insert" parameterType="com.pcloud.book.rightsSetting.entity.RightsSettingTitle">
insert into rights_setting_title (id, rights_setting_id, rights_setting_title, insert into rights_setting_title (id, rights_setting_id, rights_setting_title,
...@@ -97,12 +99,12 @@ ...@@ -97,12 +99,12 @@
<insert id="batchInsert" parameterType="com.pcloud.book.rightsSetting.entity.RightsSettingTitle" useGeneratedKeys="true" keyProperty="id"> <insert id="batchInsert" parameterType="com.pcloud.book.rightsSetting.entity.RightsSettingTitle" useGeneratedKeys="true" keyProperty="id">
insert into rights_setting_title (rights_setting_id, rights_setting_title, insert into rights_setting_title (rights_setting_id, rights_setting_title,
rights_setting_desc, open_state, create_time, update_time,rights_setting_now_type,serve_type, rights_setting_desc, open_state, create_time, update_time,rights_setting_now_type,serve_type,
easy_read,efficient_read,deep_read) easy_read,efficient_read,deep_read,seq_num, collage_state)
values values
<foreach collection="list" item="item" index="index" separator=","> <foreach collection="list" item="item" index="index" separator=",">
(#{item.rightsSettingId,jdbcType=BIGINT}, #{item.rightsSettingTitle,jdbcType=VARCHAR}, (#{item.rightsSettingId,jdbcType=BIGINT}, #{item.rightsSettingTitle,jdbcType=VARCHAR},
#{item.rightsSettingDesc,jdbcType=VARCHAR}, #{item.openState,jdbcType=TINYINT}, now(), now(),#{item.rightsSettingNowType},#{item.serveType}, #{item.rightsSettingDesc,jdbcType=VARCHAR}, #{item.openState,jdbcType=TINYINT}, now(), now(),#{item.rightsSettingNowType},#{item.serveType},
#{item.easyRead},#{item.efficientRead},#{item.deepRead}) #{item.easyRead},#{item.efficientRead},#{item.deepRead},#{item.seqNum}, #{item.collageState})
</foreach> </foreach>
</insert> </insert>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment