Ver Fonte

律师端申诉

qxy há 3 semanas atrás
pai
commit
d691605c8d

+ 4 - 0
alien-entity/src/main/java/shop/alien/entity/store/CommentAppeal.java

@@ -88,5 +88,9 @@ public class CommentAppeal extends Model<CommentAppeal> {
     @ApiModelProperty(value = "申诉审核单号")
     @TableField("appeal_number")
     private String appealNumber;
+
+    @ApiModelProperty(value = "申诉人id")
+    @TableField("lawyer_user_id")
+    private String lawyerUserId;
 }
 

+ 1 - 1
alien-entity/src/main/java/shop/alien/entity/store/vo/CommentAppealVo.java

@@ -51,7 +51,7 @@ public class CommentAppealVo implements Serializable {
     @ApiModelProperty(value = "图片路径")
     private String imgUrl;
 
-    @ApiModelProperty(value = "图片列表")
+    @ApiModelProperty(value = "申诉图片列表")
     private List<String> imgList;
 
     @ApiModelProperty(value = "创建时间")

+ 2 - 2
alien-entity/src/main/resources/mapper/CommentAppealMapper.xml

@@ -93,7 +93,7 @@
             AND ca.status = #{status}
         </if>
         <if test="userId != null">
-            AND orv.lawyer_user_id = #{userId}
+            AND orv.lawyer_user_id = #{lawyerUserId}
         </if>
         ORDER BY ca.appeal_time DESC
     </select>
@@ -161,7 +161,7 @@
             CASE
                 WHEN orv.is_anonymous = 1 THEN '匿名用户'
                 ELSE lu.user_name
-            END AS review_user_name,
+            END AS userName,
             CASE
                 WHEN orv.is_anonymous = 1 THEN NULL
                 ELSE lu.user_image

+ 6 - 6
alien-lawyer/src/main/java/shop/alien/lawyer/controller/CommentAppealController.java

@@ -77,8 +77,8 @@ public class CommentAppealController {
     })
     @GetMapping("/getPage")
     public R<IPage<CommentAppealVo>> getAppealPage(
-            @RequestParam(defaultValue = "1") int pageNum,
-            @RequestParam(defaultValue = "10") int pageSize,
+            @RequestParam int pageNum,
+            @RequestParam int pageSize,
             @RequestParam(required = false) Integer status,
             @RequestParam(required = false) String userName,
             @RequestParam(required = false) String userPhone,
@@ -115,10 +115,10 @@ public class CommentAppealController {
             @RequestParam(defaultValue = "1") int pageNum,
             @RequestParam(defaultValue = "10") int pageSize,
             @RequestParam(required = false) Integer status,
-            @RequestParam(required = false) Integer userId) {
-        log.info("CommentAppealController.getAppealHistory?pageNum={}, pageSize={}, status={}, userId={}",
-                pageNum, pageSize, status, userId);
-        List<CommentAppealVo> appealList = commentAppealService.getAppealHistory(pageNum, pageSize, status, userId);
+            @RequestParam(required = false) Integer lawyerUserId) {
+        log.info("CommentAppealController.getAppealHistory?pageNum={}, pageSize={}, status={}, lawyerUserId={}",
+                pageNum, pageSize, status, lawyerUserId);
+        List<CommentAppealVo> appealList = commentAppealService.getAppealHistory(pageNum, pageSize, status, lawyerUserId);
         return R.data(appealList, "查询成功");
     }
 

+ 2 - 2
alien-lawyer/src/main/java/shop/alien/lawyer/service/CommentAppealService.java

@@ -66,10 +66,10 @@ public interface CommentAppealService extends IService<CommentAppeal> {
      * @param pageNum  页数
      * @param pageSize 页容
      * @param status   申诉状态 0:待处理, 1:已通过, 2:已驳回
-     * @param userId 评论ID(可选)
+     * @param lawyerUserId 评论ID(可选)
      * @return 分页结果
      */
-    List<CommentAppealVo> getAppealHistory(Integer pageNum, Integer pageSize, Integer status, Integer userId);
+    List<CommentAppealVo> getAppealHistory(Integer pageNum, Integer pageSize, Integer status, Integer lawyerUserId);
 }
 
 

+ 9 - 4
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/CommentAppealServiceImpl.java

@@ -464,16 +464,21 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
     }
 
     @Override
-    public List<CommentAppealVo> getAppealHistory(Integer pageNum, Integer pageSize, Integer status, Integer userId) {
+    public List<CommentAppealVo> getAppealHistory(Integer pageNum, Integer pageSize, Integer status, Integer lawyerUserId) {
         log.info("CommentAppealServiceImpl.getAppealHistory?pageNum={}, pageSize={}, status={}, userId={}",
-                pageNum, pageSize, status, userId);
+                pageNum, pageSize, status, lawyerUserId);
         List<CommentAppealVo> appealList = new ArrayList<>();
         //status 3 查全部
         if(status ==3){
-            appealList  = baseMapper.getAppealHistoryList(null, userId);
+            appealList  = baseMapper.getAppealHistoryList(null, lawyerUserId);
         }else{
             // 查询申诉历史列表
-            appealList  = baseMapper.getAppealHistoryList(status, userId);
+            appealList  = baseMapper.getAppealHistoryList(status, lawyerUserId);
+        }
+
+        // 处理数据转换(图片列表等)
+        for (CommentAppealVo vo : appealList) {
+            processAppealVo(vo);
         }
 
         ListToPage.setPage(appealList, pageNum, pageSize);

+ 1 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/LawFirmPaymentServiceImpl.java

@@ -28,3 +28,4 @@ public class LawFirmPaymentServiceImpl extends ServiceImpl<LawFirmPaymentMapper,
 
 
 
+