Просмотр исходного кода

MallReplyMapper 添加 updateSetAreaCode 方法

reghao 7 месяцев назад
Родитель
Сommit
5cb72744b0

+ 1 - 0
content/content-service/src/main/java/cn/reghao/tnb/content/app/geo/db/mapper/MallReplyMapper.java

@@ -14,6 +14,7 @@ import java.util.List;
 @Mapper
 @Mapper
 public interface MallReplyMapper extends BaseMapper<MallReply> {
 public interface MallReplyMapper extends BaseMapper<MallReply> {
     void updateSetCup(@Param("replyId") long replyId, @Param("cup") String cup);
     void updateSetCup(@Param("replyId") long replyId, @Param("cup") String cup);
+    void updateSetAreaCode(@Param("replyId") long replyId, @Param("areaCode") int areaCode);
 
 
     List<MallReply> findByItemType(int itemType);
     List<MallReply> findByItemType(int itemType);
     List<MallReply> findByItemId(String itemId);
     List<MallReply> findByItemId(String itemId);

+ 5 - 0
content/content-service/src/main/resources/mapper/geo/MallReplyMapper.xml

@@ -14,6 +14,11 @@
         set cup=#{cup}
         set cup=#{cup}
         where reply_id=#{replyId}
         where reply_id=#{replyId}
     </update>
     </update>
+    <update id="updateSetAreaCode">
+        update geo_mall_reply
+        set area_code=#{areaCode}
+        where reply_id=#{replyId}
+    </update>
 
 
     <select id="findAll" resultType="cn.reghao.tnb.content.app.geo.model.po.MallReply">
     <select id="findAll" resultType="cn.reghao.tnb.content.app.geo.model.po.MallReply">
         select *
         select *