浏览代码

消息分类

zouxuan 4 年之前
父节点
当前提交
4e2f17cf1f

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SysMessageServiceImpl.java

@@ -296,7 +296,7 @@ public class SysMessageServiceImpl extends BaseServiceImpl<Long, SysMessage> imp
 
 	@Override
 	public Object queryTypeList() {
-		HashMap<Object, Object> map = new HashMap<>(4);
+		HashMap<Object, Object> map = new LinkedHashMap<>(4);
 		map.put("ALL","全部");
 		map.put("PAY","缴费信息");
 		map.put("COURSE","课程信息");

+ 2 - 1
mec-teacher/src/main/java/com/ym/mec/teacher/controller/SysMessageController.java

@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiOperation;
 
 import java.io.IOException;
 import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Map;
 
 import org.apache.commons.lang3.StringUtils;
@@ -54,7 +55,7 @@ public class SysMessageController extends BaseController {
 	@ApiOperation("获取消息分类类型")
 	@GetMapping(value = "typeList")
 	public Object typeList(){
-		HashMap<Object, Object> map = new HashMap<>(4);
+		HashMap<Object, Object> map = new LinkedHashMap<>(4);
 		map.put("ALL","全部");
 		map.put("ATTENDANCE","考勤信息");
 		map.put("COURSE","课程信息");

+ 2 - 1
mec-web/src/main/java/com/ym/mec/web/controller/SysMessageController.java

@@ -20,6 +20,7 @@ import com.ym.mec.common.controller.BaseController;
 import com.ym.mec.common.page.PageInfo;
 
 import java.util.HashMap;
+import java.util.LinkedHashMap;
 
 @RestController
 @Api(tags = "消息服务")
@@ -50,7 +51,7 @@ public class SysMessageController extends BaseController {
 	@ApiOperation("获取消息分类类型")
 	@GetMapping(value = "typeList")
 	public Object typeList(){
-		HashMap<Object, Object> map = new HashMap<>(4);
+		HashMap<Object, Object> map = new LinkedHashMap<>(4);
 		map.put("ALL","全部");
 		map.put("PAY","缴费信息");
 		map.put("STUDENT","学员信息");

+ 2 - 1
mec-web/src/main/java/com/ym/mec/web/controller/education/SysEduMessageController.java

@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Map;
 
 @RestController
@@ -49,7 +50,7 @@ public class SysEduMessageController extends BaseController {
 	@ApiOperation("获取消息分类类型")
 	@GetMapping(value = "typeList")
 	public Object typeList(){
-		HashMap<Object, Object> map = new HashMap<>(4);
+		HashMap<Object, Object> map = new LinkedHashMap<>(4);
 		map.put("ALL","全部");
 		map.put("PAY","缴费信息");
 		map.put("STUDENT","学员信息");