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