zhijiezhao преди 1 седмица
родител
ревизия
f9f37eb8be
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/main/resources/mapper/user/ShopMapper.xml

+ 3 - 1
src/main/resources/mapper/user/ShopMapper.xml

@@ -48,7 +48,9 @@
     </insert>
 
     <update id="updateUserShopId">
-        update user set shopID = #{shopID}
+        update user
+        set shopID = #{shopID}
+        where userId = #{userID}
     </update>
 
     <update id="updateShop">