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">