提交 aa7f2548 编写于 作者: doc_wei's avatar doc_wei

公共获取小程序分类列表

上级 5f6c5e90
......@@ -31,4 +31,6 @@ public interface RmTypeDao {
public Map<String, Object> queryRmTypeISLowerByThisId(Map<String, Object> map) throws Exception;
public List<Map<String, Object>> queryRmTypeAllList(Map<String, Object> map) throws Exception;
}
......@@ -19,4 +19,6 @@ public interface RmTypeService {
public void editRmTypeSortLowerById(InputObject inputObject, OutputObject outputObject) throws Exception;
public void queryRmTypeAllList(InputObject inputObject, OutputObject outputObject) throws Exception;
}
......@@ -181,6 +181,26 @@ public class RmTypeServiceImpl implements RmTypeService{
rmTypeDao.editRmTypeSortTopById(topBean);
}
}
/**
*
* @Title: queryRmTypeAllList
* @Description: 获取所有小程序分类
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public void queryRmTypeAllList(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> map = inputObject.getParams();
List<Map<String, Object>> beans = rmTypeDao.queryRmTypeAllList(map);
if(beans != null && !beans.isEmpty()){
outputObject.setBeans(beans);
outputObject.settotal(beans.size());
}
}
......
......@@ -127,4 +127,20 @@ public class RmTypeController {
rmTypeService.editRmTypeSortLowerById(inputObject, outputObject);
}
/**
*
* @Title: queryRmTypeAllList
* @Description: 获取所有小程序分类
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/RmTypeController/queryRmTypeAllList")
@ResponseBody
public void queryRmTypeAllList(InputObject inputObject, OutputObject outputObject) throws Exception{
rmTypeService.queryRmTypeAllList(inputObject, outputObject);
}
}
......@@ -127,4 +127,13 @@
ORDER BY a.sort DESC LIMIT 1
</select>
<select id="queryRmTypeAllList" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.name
FROM
rm_type a
ORDER BY a.sort DESC, a.create_time DESC
</select>
</mapper>
\ No newline at end of file
......@@ -3,6 +3,7 @@
<!--
- allUse 是否需要登录才能使用 1是 0否 默认为否
-->
<!-- 登录开始 -->
<url id="login001" path="/post/SysEveUserController/queryUserToLogin" val="登录" allUse="0">
<property id="userCode" name="userCode" ref="" var="账号"/>
<property id="password" name="password" ref="" var="密码"/>
......@@ -15,6 +16,12 @@
</url>
<url id="login005" path="/post/SysEveUserController/queryAllMenuBySession" val="获取全部菜单列表" allUse="1">
</url>
<!-- 登录结束 -->
<!-- 公共请求开始 -->
<url id="common001" path="/post/RmTypeController/queryRmTypeAllList" val="获取所有小程序分类" allUse="1">
</url>
<!-- 公共请求结束 -->
<!-- 系统角色用户管理开始 -->
<url id="sys001" path="/post/SysEveUserController/querySysUserList" val="获取用户列表" allUse="1">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册