瀏覽代碼

读取通知请求方式修改

dudm 3 年之前
父節點
當前提交
8637fb6bba

+ 1 - 1
tianhu-system/src/main/java/com/tianhu/system/controller/OwnNoticeController.java

@@ -75,7 +75,7 @@ public class OwnNoticeController extends BaseController
     /**
      * 消息读取
      */
-    @PostMapping("/readWork/{noticeId}")
+    @GetMapping("/readWork/{noticeId}")
     public R readWork(@PathVariable("noticeId") String noticeId)
     {
         //获取当前企业的编号

+ 1 - 1
tianhu-system/src/main/resources/mapper/system/OwnNoticeMapper.xml

@@ -39,6 +39,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<if test="workType != null and workType != ''">
 			AND work_type = #{workType}
 		</if>
-		ORDER BY snyr_user_status,create_time DESC
+		ORDER BY create_time DESC
 	</select>
 </mapper>