Explorar el Código

二手小程序

zhijiezhao hace 1 semana
padre
commit
f9f37eb8be
Se han modificado 1 ficheros con 3 adiciones y 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">