浏览代码

老师端首页bug修改

zouxuan 3 年之前
父节点
当前提交
e10a08a0de

+ 3 - 1
cms/src/main/java/com/ym/mec/cms/controller/NewsController.java

@@ -2,6 +2,7 @@ package com.ym.mec.cms.controller;
 
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 
 import java.util.ArrayList;
@@ -185,7 +186,8 @@ public class NewsController extends BaseController {
 	}
 
 	@ApiOperation("查询资讯详情")
-	@ApiImplicitParam(name = "id", value = "资讯ID编号", required = true, dataType = "Long")
+	@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "资讯ID编号", required = true, dataType = "Long"),
+			@ApiImplicitParam(name = "memo", value = "版本号",  dataType = "String") })
 	@GetMapping("/list/tree")
 	public Object listWithTree(Integer id, String memo) {
 		return succeed(sysNewsTypeService.listWithTree(id,memo));

+ 1 - 0
cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -315,5 +315,6 @@
 		<if test="memo != null and memo !=''">
 			AND memo_ = #{memo}
 		</if>
+		ORDER BY order_ DESC
 	</select>
 </mapper>