起售(库存校验)
订单备注 登录时传参
This commit is contained in:
@@ -51,6 +51,15 @@
|
||||
where telephone = #{phone,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="selectByShopIdAndPhone" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_shop_user
|
||||
where
|
||||
shop_id=#{shopId}
|
||||
and telephone = #{phone,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from tb_shop_user
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
@@ -397,6 +406,10 @@
|
||||
select * from tb_shop_user where telephone=#{phone} and shop_id=#{shopId}
|
||||
</select>
|
||||
|
||||
<select id="selectPCByPhoneAndShopId" resultMap="BaseResultMap">
|
||||
select * from tb_shop_user where telephone=#{phone} and shop_id=#{shopId} and user_id is null
|
||||
</select>
|
||||
|
||||
<select id="selectAllByUserId" resultMap="BaseResultMap">
|
||||
select * from tb_shop_user where user_id=#{userId}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user