获取cookie

This commit is contained in:
Lenovo 2024-07-03 13:29:27 +08:00
parent 01de361e5c
commit c8b469da38
2 changed files with 15 additions and 5 deletions

View File

@ -57,6 +57,7 @@ public class MeituanController {
storeInfo.setStoreName(cookie.getWmPoiName());
storeInfo.setStoreCookie(cookie.getCookie());
storeInfo.setPlatformType(String.valueOf(cookie.getBingType()));
storeInfo.setStoreCode(valueFromCookie("wmPoiId",cookie.getCookie()));
storeInfo.setBindTime(new Date());
return R.ok(busStoreInfoService.insertBusStoreInfo(storeInfo));
}

View File

@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.business.mapper.BusStoreInfoMapper">
<resultMap type="BusStoreInfo" id="BusStoreInfoResult">
<result property="id" column="id" />
<result property="platformType" column="platform_type" />
@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectBusStoreInfoList" parameterType="BusStoreInfo" resultMap="BusStoreInfoResult">
<include refid="selectBusStoreInfoVo"/>
<where>
<where>
<if test="platformType != null and platformType != ''"> and platform_type = #{platformType}</if>
<if test="storeCode != null and storeCode != ''"> and store_code = #{storeCode}</if>
<if test="storeName != null and storeName != ''"> and store_name like concat('%', #{storeName}, '%')</if>
@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="saleBindTime != null "> and sale_bind_time = #{saleBindTime}</if>
</where>
</select>
<select id="selectBusStoreInfoById" parameterType="Long" resultMap="BusStoreInfoResult">
<include refid="selectBusStoreInfoVo"/>
where id = #{id}
@ -63,6 +63,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="platformType != null">platform_type,</if>
<if test="storeCode != null">store_code,</if>
<if test="storeName != null">store_name,</if>
<if test="storeAccount != null">store_account,</if>
<if test="storePassword != null">store_password,</if>
<if test="storeCookie != null">store_cookie,</if>
<if test="storeBelong != null">store_belong,</if>
<if test="grantStatus != null">grant_status,</if>
<if test="returnVisitStatus != null">return_visit_status,</if>
@ -83,6 +86,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="platformType != null">#{platformType},</if>
<if test="storeCode != null">#{storeCode},</if>
<if test="storeName != null">#{storeName},</if>
<if test="storeAccount != null">#{storeAccount},</if>
<if test="storePassword != null">#{storePassword},</if>
<if test="storeCookie != null">#{storeCookie},</if>
<if test="storeBelong != null">#{storeBelong},</if>
<if test="grantStatus != null">#{grantStatus},</if>
<if test="returnVisitStatus != null">#{returnVisitStatus},</if>
@ -106,6 +112,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="platformType != null">platform_type = #{platformType},</if>
<if test="storeCode != null">store_code = #{storeCode},</if>
<if test="storeName != null">store_name = #{storeName},</if>
<if test="storeAccount != null">store_account = #{storeAccount},</if>
<if test="storePassword != null">store_password = #{storePassword},</if>
<if test="storeCookie != null">store_cookie = #{storeCookie},</if>
<if test="storeBelong != null">store_belong = #{storeBelong},</if>
<if test="grantStatus != null">grant_status = #{grantStatus},</if>
<if test="returnVisitStatus != null">return_visit_status = #{returnVisitStatus},</if>
@ -129,9 +138,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteBusStoreInfoByIds" parameterType="String">
delete from bus_store_info where id in
delete from bus_store_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
</mapper>