Commit c4c27549 by 朱亚洁

feat:[none]rays码bug

parent da6d0c89
...@@ -66,13 +66,6 @@ public interface ResourcePageBiz { ...@@ -66,13 +66,6 @@ public interface ResourcePageBiz {
ResourcePageVO getResourcePageByBookId(Long bookId, Long channelId, Long adviserId, Long wechatUserId); ResourcePageVO getResourcePageByBookId(Long bookId, Long channelId, Long adviserId, Long wechatUserId);
/** /**
* 处理旧数据
* @author:zhuyajie
* @date:2021/3/31 11:38
* * @param null
*/
void dealResource(List<Long> bookGroupIdList, List<Long> sceneIdList);
/**
* 栏目分页查询 * 栏目分页查询
* @author:zhuyajie * @author:zhuyajie
* @date:2021/3/31 19:06 * @date:2021/3/31 19:06
......
...@@ -87,4 +87,12 @@ public interface ResourcePageDao extends BaseDao<ResourcePage>{ ...@@ -87,4 +87,12 @@ public interface ResourcePageDao extends BaseDao<ResourcePage>{
* * @param null * * @param null
*/ */
void batchUpdateSceneIdByBookGroup(List<AddBookGroupServeDTO> list); void batchUpdateSceneIdByBookGroup(List<AddBookGroupServeDTO> list);
/**
* 查栏目对应的资源页
* @author:zhuyajie
* @date:2021/5/6 17:41
* * @param null
*/
ResourcePage getPageByColumnId(Long resourcePageColumnId);
} }
\ No newline at end of file
...@@ -68,4 +68,9 @@ public class ResourcePageDaoImpl extends BaseDaoImpl<ResourcePage> implements Re ...@@ -68,4 +68,9 @@ public class ResourcePageDaoImpl extends BaseDaoImpl<ResourcePage> implements Re
public void batchUpdateSceneIdByBookGroup(List<AddBookGroupServeDTO> list) { public void batchUpdateSceneIdByBookGroup(List<AddBookGroupServeDTO> list) {
getSessionTemplate().update(getStatement("batchUpdateSceneIdByBookGroup"), list); getSessionTemplate().update(getStatement("batchUpdateSceneIdByBookGroup"), list);
} }
@Override
public ResourcePage getPageByColumnId(Long resourcePageColumnId) {
return getSessionTemplate().selectOne(getStatement("getPageByColumnId"), resourcePageColumnId);
}
} }
...@@ -125,17 +125,6 @@ public class ResourcePageFacade { ...@@ -125,17 +125,6 @@ public class ResourcePageFacade {
return new ResponseDto<>(); return new ResponseDto<>();
} }
@ApiOperation("处理旧数据")
@PostMapping("dealResource")
public ResponseDto<?> dealResource(@RequestBody List<Long> qrcodeIdList, @RequestParam("qrcodeType") String qrcodeType){
if ("bookgroup".equals(qrcodeType)) {
resourcePageBiz.dealResource(qrcodeIdList, null);
} else {
resourcePageBiz.dealResource(null, qrcodeIdList);
}
return new ResponseDto<>();
}
@ApiOperation("更新资源页和栏目设置") @ApiOperation("更新资源页和栏目设置")
@PostMapping("updateResourcePageAndColumn") @PostMapping("updateResourcePageAndColumn")
public ResponseDto<?> updateResourcePageAndColumn(@RequestHeader("token") String token, public ResponseDto<?> updateResourcePageAndColumn(@RequestHeader("token") String token,
......
...@@ -51,4 +51,6 @@ public class ResourcePageOneServe extends BaseDto { ...@@ -51,4 +51,6 @@ public class ResourcePageOneServe extends BaseDto {
private Double price; private Double price;
private Integer jumpType; private Integer jumpType;
private String qrcodeType;
} }
...@@ -167,4 +167,21 @@ ...@@ -167,4 +167,21 @@
</foreach> </foreach>
</update> </update>
<select id="getPageByColumnId" resultMap="ResourcePageMap" parameterType="long">
SELECT
p.id,
p.book_group_id,
p.style,
p.show_book,
p.open_rays,
p.qrcode_url,
p.scene_id,
p.official_scene_id
FROM
resource_page_column c
LEFT JOIN resource_page p ON c.resource_page_id = p.id
WHERE
c.id = #{resourcePageColumnId}
</select>
</mapper> </mapper>
\ No newline at end of file
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