소스 검색

通知修改

zhangchen 1 주 전
부모
커밋
52b03652af

+ 8 - 0
alien-entity/src/main/java/shop/alien/mapper/StoreCommentAppealMapper.java

@@ -124,4 +124,12 @@ public interface StoreCommentAppealMapper extends BaseMapper<StoreCommentAppeal>
     void updateByRecordId(@Param("recordId") Integer recordId,
     void updateByRecordId(@Param("recordId") Integer recordId,
                           @Param("appealStatus") Integer appealStatus,
                           @Param("appealStatus") Integer appealStatus,
                           @Param("finalResult") String finalResult);
                           @Param("finalResult") String finalResult);
+
+
+    @Update("UPDATE store_comment_appeal " +
+            "SET appeal_status = #{appealStatus}, final_result = #{finalResult} " +
+            "WHERE id = #{id}")
+    void updateByRecordIdNew(@Param("id") Integer id,
+                          @Param("appealStatus") Integer appealStatus,
+                          @Param("finalResult") String finalResult);
 }
 }

+ 1 - 1
alien-store/src/main/java/shop/alien/store/service/StoreCommentAppealSupplementJobService.java

@@ -160,7 +160,7 @@ public class StoreCommentAppealSupplementJobService {
                     log.info("【用户补充申诉】用户赢,申诉驳回,申诉ID: {}", appeal.getId());
                     log.info("【用户补充申诉】用户赢,申诉驳回,申诉ID: {}", appeal.getId());
                 }
                 }
 
 
-                storeCommentAppealMapper.updateByRecordId(appeal.getRecordId(),
+                storeCommentAppealMapper.updateByRecordIdNew(appeal.getId(),
                         updateAppeal.getAppealStatus(), updateAppeal.getFinalResult());
                         updateAppeal.getAppealStatus(), updateAppeal.getFinalResult());
                 boolean merchantWins = merchantConfidence > userConfidence;
                 boolean merchantWins = merchantConfidence > userConfidence;
                 sendAppealResultNotifications(appeal, merchantWins);
                 sendAppealResultNotifications(appeal, merchantWins);