yonge 5 年之前
父節點
當前提交
d54544f804

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/SysMessageMapper.xml

@@ -154,7 +154,7 @@
 	<select id="queryPage" parameterType="map" resultMap="message">
 		select * from sys_message
 		<include refid="queryCondition" />
-		<include refid="global.orderby" />
+		order by create_on_ desc
 		<include refid="global.limit" />
 	</select>
 

+ 1 - 9
mec-web/src/main/java/com/ym/mec/web/controller/SysConfigController.java

@@ -4,9 +4,7 @@ import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 
 import java.util.Date;
-import java.util.HashMap;
 import java.util.List;
-import java.util.Map;
 
 import org.apache.commons.lang.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -34,13 +32,7 @@ public class SysConfigController extends BaseController {
 	@GetMapping(value = "list")
 	public Object configList() {
 		List<SysConfig> configs = sysConfigService.findAll(null);
-		Map<String, Object> map = new HashMap<String, Object>();
-		if (configs != null && configs.size() > 0) {
-			for (SysConfig config : configs) {
-				map.put(config.getParamName(), config.getParanValue());
-			}
-		}
-		return succeed(map);
+		return succeed(configs);
 	}
 
 	@ApiOperation(value = "修改参数")