Commit 8a9b6401 by Jadon-jiang Committed by Gitee

!11 master PULL 到 back_end_dev

Merge pull request !11 from Jadon-jiang/master
2 parents 46a8c3a1 2599b491
......@@ -30,9 +30,9 @@ public class WeChatSideController extends BaseController {
*/
@PreAuthorize("@ss.hasPermi('chat:side:list')")
@GetMapping("/list")
public TableDataInfo list() {
public TableDataInfo list(@RequestParam(value = "h5") String h5) {
startPage();
List<WeChatSide> weChatSides = weChatSideService.chatSides();
List<WeChatSide> weChatSides = weChatSideService.chatSides(h5);
return getDataTable(weChatSides);
}
......
......@@ -15,10 +15,10 @@ public interface WeChatSideMapper extends BaseMapper<WeChatSide> {
/**
* 查询侧边栏列表
*
* @param h5 0 pc 1 h5
* @return {@link WeChatSide}s
*/
public List<WeChatSide> selectWeChatSides();
public List<WeChatSide> selectWeChatSides(@Param("h5") String h5);
/**
......
......@@ -16,7 +16,7 @@ public interface IWeChatSideService extends IService<WeChatSide> {
*
* @return {@link WeChatSide}s
*/
public List<WeChatSide> chatSides();
public List<WeChatSide> chatSides(String h5);
/**
* 更新侧边栏信息
......
......@@ -21,8 +21,8 @@ public class WeChatSideServiceImpl extends ServiceImpl<WeChatSideMapper, WeChatS
private WeChatSideMapper weChatSideMapper;
@Override
public List<WeChatSide> chatSides() {
return weChatSideMapper.selectWeChatSides();
public List<WeChatSide> chatSides(String h5) {
return weChatSideMapper.selectWeChatSides(h5);
}
@Override
......
......@@ -31,7 +31,9 @@
FROM
we_chat_side
<where>
`using`=0
<if test="h5!=null and h5!='' and h5=='1'.toString()">
`using`=0
</if>
</where>
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!