Browse Source

代码优化

Zhaops 6 years ago
parent
commit
cf510604b3

+ 2 - 0
icssman-service/src/main/java/com/diagbot/web/IntroduceInfoController.java

@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
+import springfox.documentation.annotations.ApiIgnore;
 
 import javax.validation.Valid;
 import java.util.List;
@@ -107,6 +108,7 @@ public class IntroduceInfoController {
             notes = "map:查询条件(=),key为数据库字段名<br>")
     @PostMapping("/getByMap")
     @SysLogger("getByMap")
+    @ApiIgnore
     public RespDTO<IntroduceInfo> getByMap(@RequestBody Map<String, Object> map) {
         List<IntroduceInfo> data = introduceInfoFacade.getByMap(map);
         return RespDTO.onSuc(data);

+ 1 - 0
icssman-service/src/main/resources/mapper/IntroduceInfoMapper.xml

@@ -56,5 +56,6 @@
     <if test="introducePageVO.tagName != null and introducePageVO.tagName != '' ">
         and t.tag_name like concat('%',#{introducePageVO.tagName},'%')
     </if>
+    order by info.gmt_modified desc
     </select>
 </mapper>