Ver código fonte

+ 我的报名列表

chen.cheng 10 meses atrás
pai
commit
20c1826acd

+ 6 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/cp/CpsContentInfoController.java

@@ -94,6 +94,12 @@ public class CpsContentInfoController extends BaseController {
         return toAjax(cpsContentInfoService.deleteCpsContentInfoByIds(ids));
     }
 
+
+    @GetMapping("/ids/{ids}")
+    public AjaxResult selectCpsContentInfoByIds(@PathVariable Long[] ids) {
+        return AjaxResult.success(cpsContentInfoService.selectCpsContentInfoByIds(ids));
+    }
+
     @Log(title = "点赞内容", businessType = BusinessType.UPDATE)
     @PostMapping("/{openId}/like")
     public AjaxResult likeContent(@RequestBody CpsContentInfo cpsContentInfo, @PathVariable String openId) {

+ 1 - 1
ruoyi-admin/src/main/resources/application.yml

@@ -52,7 +52,7 @@ spring:
     # 国际化资源文件路径
     basename: i18n/messages
   profiles:
-    active: hm
+    active: druid
   # 文件上传
   servlet:
     multipart:

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/CpsContentInfoMapper.java

@@ -68,4 +68,6 @@ public interface CpsContentInfoMapper
 
     void updateDisLikeContent(Long id);
 
+    List<CpsContentInfo> selectCpsContentInfoByIds(Long[] ids);
+
 }

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ICpsContentInfoService.java

@@ -51,6 +51,8 @@ public interface ICpsContentInfoService
      */
     public int deleteCpsContentInfoByIds(Long[] ids);
 
+    List<CpsContentInfo> selectCpsContentInfoByIds(Long[] ids);
+
     /**
      * 删除发布内容信息
      *

+ 5 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CpsContentInfoServiceImpl.java

@@ -92,6 +92,11 @@ public class CpsContentInfoServiceImpl implements ICpsContentInfoService
         return cpsContentInfoMapper.deleteCpsContentInfoByIds(ids);
     }
 
+
+    @Override
+    public List<CpsContentInfo> selectCpsContentInfoByIds(Long[] ids) {
+        return cpsContentInfoMapper.selectCpsContentInfoByIds(ids);
+    }
     /**
      * 删除发布内容信息
      *

+ 9 - 0
ruoyi-system/src/main/resources/mapper/cp/CpsContentInfoMapper.xml

@@ -132,4 +132,13 @@
             #{id}
         </foreach>
     </delete>
+
+    <select id="selectCpsContentInfoByIds" parameterType="String" resultMap="CpsContentInfoResult">
+        <include refid="selectCpsContentInfoVo"/>
+        where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </select>
+
 </mapper>

+ 1 - 0
ruoyi-system/src/main/resources/mapper/cp/CpsUsrApplyMapper.xml

@@ -77,6 +77,7 @@
                  inner JOIN sys_dict_data dicReview
                             on usrApply.review_state = dicReview.dict_value and dicReview.dict_type = 'review_state'
         where usrApply.usr_wechat_id = #{usrId}
+        order by usrApply.create_time desc
     </select>
 
     <select id="selectCpsUsrApplyList" parameterType="com.ruoyi.system.domain.CpsUsrApply"