Explorar o código

二手小程序

zhijiezhao hai 1 semana
pai
achega
f9f37eb8be
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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">