feat:密码数据处理,验签排除空字符串,导出接口

This commit is contained in:
shuo.wang
2025-04-28 22:24:49 +08:00
parent 6da34ba779
commit bd80c5477f
48 changed files with 1532 additions and 233 deletions

View File

@@ -53,4 +53,12 @@
create_time,update_time,create_user,
update_user,c_shop_name,settler_bank_back_photo_url,settler_is_same_partner,juridical_is_same_partner
</sql>
<select id="getSpecificByShopIdList" resultType="com.cool.store.entity.BuildInformationDO">
select shop_id as shopId, c_shop_name as cShopName
from xfsg_build_information
where shop_id in
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>

View File

@@ -1,173 +1,193 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cool.store.mapper.HyPartnerUserInfoMapper">
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyPartnerUserInfoDO">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="user_channel_id" jdbcType="BIGINT" property="userChannelId" />
<result column="crm_create_time" jdbcType="TIMESTAMP" property="crmCreateTime" />
<result column="openid" jdbcType="VARCHAR" property="openid" />
<result column="downstream_system_salting" jdbcType="VARCHAR" property="downstreamSystemSalting" />
<result column="downstream_system_password" jdbcType="VARCHAR" property="downstreamSystemPassword" />
<result column="downstream_system_secondary_password" jdbcType="VARCHAR" property="downstreamSystemSecondaryPassword" />
</resultMap>
<sql id="Base_Column_List">
id, partner_id, mobile, create_time, update_time, user_channel_id, crm_create_time, openid, downstream_system_salting, downstream_system_password,downstream_system_secondary_password
</sql>
<select id="selectByPartnerId" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
where partner_id = #{partnerId}
</select>
<select id="selectByMobile" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
where mobile = #{mobile}
</select>
<select id="selectByOpenid" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
where openid = #{openid}
</select>
<select id="selectByPartnerIds" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
<where>
<if test="partnerIdList!=null and partnerIdList.size>0">
<foreach collection="partnerIdList" open="and partner_id in (" close=")" separator="," item="partnerId">
#{partnerId}
</foreach>
</if>
</where>
</select>
<select id="selectLastCrmCreateTime" resultType="java.lang.String">
SELECT crm_create_time as crmCreateTime FROM xfsg_partner_user_info ORDER BY crm_create_time desc limit 1
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyPartnerUserInfoDO">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="partner_id" jdbcType="VARCHAR" property="partnerId"/>
<result column="mobile" jdbcType="VARCHAR" property="mobile"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="user_channel_id" jdbcType="BIGINT" property="userChannelId"/>
<result column="crm_create_time" jdbcType="TIMESTAMP" property="crmCreateTime"/>
<result column="openid" jdbcType="VARCHAR" property="openid"/>
<result column="downstream_system_salting" jdbcType="VARCHAR" property="downstreamSystemSalting"/>
<result column="downstream_system_password" jdbcType="VARCHAR" property="downstreamSystemPassword"/>
<result column="downstream_system_secondary_password" jdbcType="VARCHAR"
property="downstreamSystemSecondaryPassword"/>
</resultMap>
<sql id="Base_Column_List">
id, partner_id, mobile, create_time, update_time, user_channel_id, crm_create_time, openid,
downstream_system_salting, downstream_system_password,downstream_system_secondary_password
</sql>
<select id="selectByPartnerId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
where partner_id = #{partnerId}
</select>
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
insert into xfsg_partner_user_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="record.partnerId != null">
partner_id,
</if>
<if test="record.mobile != null">
mobile,
</if>
<if test="record.createTime != null">
create_time,
</if>
<if test="record.updateTime != null">
update_time,
</if>
<if test="record.userChannelId!=null">
user_channel_id,
</if>
<if test="record.ecWantShopArea!=null">
ec_want_shop_area,
</if>
<if test="record.crmCreateTime!=null">
crm_create_time,
</if>
<if test="record.openid!=null">
openid,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="record.partnerId != null">
#{record.partnerId},
</if>
<if test="record.mobile != null">
#{record.mobile},
</if>
<if test="record.createTime != null">
#{record.createTime},
</if>
<if test="record.updateTime != null">
#{record.updateTime},
</if>
<if test="record.userChannelId != null">
#{record.userChannelId},
</if>
<if test="record.ecWantShopArea != null">
#{record.ecWantShopArea},
</if>
<if test="record.crmCreateTime != null">
#{record.crmCreateTime},
</if>
<if test="record.openid != null">
#{record.openid},
</if>
</trim>
</insert>
<select id="selectByMobile" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
where mobile = #{mobile}
</select>
<update id="updateByPrimaryKeySelective">
update xfsg_partner_user_info
<set>
<if test="record.partnerId != null">
partner_id = #{record.partnerId},
</if>
<if test="record.mobile != null">
mobile = #{record.mobile},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime},
</if>
<if test="record.ecWantShopArea != null">
ec_want_shop_area = #{record.ecWantShopArea},
</if>
<if test="record.openid != null">
openid = #{record.openid},
</if>
</set>
where id = #{record.id}
</update>
<select id="selectByOpenid" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
where openid = #{openid}
</select>
<update id="updateByPartnerId">
update xfsg_partner_user_info
<set>
<if test="record.mobile != null">
mobile = #{record.mobile},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime},
</if>
</set>
where partner_id = #{record.partnerId}
</update>
<update id="updatePasswordByPartnerId">
update xfsg_partner_user_info
<set>
<if test="record.downstreamSystemSalting != null">
downstream_system_salting = #{record.downstreamSystemSalting},
</if>
<if test="record.downstreamSystemPassword != null">
downstream_system_password = #{record.downstreamSystemPassword},
</if>
<if test="record.downstreamSystemSecondaryPassword != null">
downstream_system_secondary_password = #{record.downstreamSystemSecondaryPassword},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime},
</if>
</set>
where partner_id = #{record.partnerId}
</update>
<select id="selectByPartnerIds" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"></include>
from xfsg_partner_user_info
<where>
<if test="partnerIdList!=null and partnerIdList.size>0">
<foreach collection="partnerIdList" open="and partner_id in (" close=")" separator="," item="partnerId">
#{partnerId}
</foreach>
</if>
</where>
</select>
<select id="selectLastCrmCreateTime" resultType="java.lang.String">
SELECT crm_create_time as crmCreateTime FROM xfsg_partner_user_info ORDER BY crm_create_time desc limit 1
</select>
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
insert into xfsg_partner_user_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="record.partnerId != null">
partner_id,
</if>
<if test="record.mobile != null">
mobile,
</if>
<if test="record.createTime != null">
create_time,
</if>
<if test="record.updateTime != null">
update_time,
</if>
<if test="record.userChannelId!=null">
user_channel_id,
</if>
<if test="record.ecWantShopArea!=null">
ec_want_shop_area,
</if>
<if test="record.crmCreateTime!=null">
crm_create_time,
</if>
<if test="record.openid!=null">
openid,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="record.partnerId != null">
#{record.partnerId},
</if>
<if test="record.mobile != null">
#{record.mobile},
</if>
<if test="record.createTime != null">
#{record.createTime},
</if>
<if test="record.updateTime != null">
#{record.updateTime},
</if>
<if test="record.userChannelId != null">
#{record.userChannelId},
</if>
<if test="record.ecWantShopArea != null">
#{record.ecWantShopArea},
</if>
<if test="record.crmCreateTime != null">
#{record.crmCreateTime},
</if>
<if test="record.openid != null">
#{record.openid},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective">
update xfsg_partner_user_info
<set>
<if test="record.partnerId != null">
partner_id = #{record.partnerId},
</if>
<if test="record.mobile != null">
mobile = #{record.mobile},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime},
</if>
<if test="record.ecWantShopArea != null">
ec_want_shop_area = #{record.ecWantShopArea},
</if>
<if test="record.openid != null">
openid = #{record.openid},
</if>
</set>
where id = #{record.id}
</update>
<update id="updateByPartnerId">
update xfsg_partner_user_info
<set>
<if test="record.mobile != null">
mobile = #{record.mobile},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime},
</if>
</set>
where partner_id = #{record.partnerId}
</update>
<update id="updatePasswordByPartnerId">
update xfsg_partner_user_info
<set>
<if test="record.downstreamSystemSalting != null">
downstream_system_salting = #{record.downstreamSystemSalting},
</if>
<if test="record.downstreamSystemPassword != null">
downstream_system_password = #{record.downstreamSystemPassword},
</if>
<if test="record.downstreamSystemSecondaryPassword != null">
downstream_system_secondary_password = #{record.downstreamSystemSecondaryPassword},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime},
</if>
</set>
where partner_id = #{record.partnerId}
</update>
<update id="dataHandle">
<foreach collection="list" item="item" separator=";">
update xfsg_partner_user_info
<set>
<if test="record.downstreamSystemSalting != null">
downstream_system_salting = #{item.downstreamSystemSalting},
</if>
<if test="record.downstreamSystemPassword != null">
downstream_system_password = #{item.downstreamSystemPassword},
</if>
<if test="record.downstreamSystemSecondaryPassword != null">
downstream_system_secondary_password = #{item.downstreamSystemSecondaryPassword},
</if>
</set>
where id = #{item.id}
</foreach>
</update>
</mapper>

View File

@@ -41,4 +41,18 @@
receiving_create_time, receiving_update_time, receiving_create_user, receiving_update_user,
declare_goods_type
</sql>
<select id="getSpecificByShopIdList" resultType="com.cool.store.entity.OrderSysInfoDO">
select
shop_id as shopId,
declare_goods_logistics_warehouse as declareGoodsLogisticsWarehouse,
declare_goods_type as declareGoodsType,
declare_goods_date as declareGoodsDate,
receiving_firm_name as receivingFirmName,
receiving_ms_bank_account as receivingMsBankAccount
from xfsg_order_sys_info
where shop_id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>

View File

@@ -311,6 +311,20 @@
#{request.areaCode})
</if>
</select>
<select id="getPointAndDetailByIds" resultType="com.cool.store.dto.PointInfoDTO">
select a.id as pointId,
a.province as province,
a.city as city,
a.district as district,
a.point_area as pointArea,
b.month_rent as monthRent
from xfsg_point_info a
left join xfsg_point_detail_info b on a.id = b.point_id
where a.id in
<foreach collection="pointIds" item="pointId" index="index" open="(" separator="," close=")">
#{pointId}
</foreach>
</select>
<update id="recyclePoint">
update xfsg_point_info set line_id = null, shop_id = null, select_status = 0, update_time = now(), point_status

View File

@@ -158,11 +158,36 @@
#{shopId}
</foreach>
</update>
<update id="dateHandle">
<foreach collection="list" item="item" separator=";">
update xfsg_shop_account
<set>
<if test="record.passwordSalt != null">
password_salt = #{item.passwordSalt},
</if>
<if test="record.password != null">
password = #{item.password},
</if>
<if test="record.secondaryPassword != null">
secondary_password = #{item.secondaryPassword},
</if>
</set>
where id = #{item.id}
</foreach>
</update>
<select id="getALlFail">
<select id="getALlFail">
select * from xfsg_shop_account WHERE
system_name in ('火码POS')
and status = 6
</select>
<select id="getSpecificByShopIds" resultType="com.cool.store.entity.ShopAccountDO">
select shop_id as shopId,system_name as systemName,status from xfsg_shop_account
where shop_id in
<foreach collection="shopIds" item="shopId" open="(" close=")" separator=",">
#{shopId}
</foreach>
</select>
</mapper>

View File

@@ -276,6 +276,8 @@
select
a.id as id,
a.line_id as lineId,
a.point_id as pointId,
a.store_type as storeType,
a.shop_name as shopName,
a.want_shop_area_id as wantShopAreaId,
a.shop_code as shopCode,
@@ -455,6 +457,17 @@
from xfsg_shop_info
where deleted = 0 and line_id = #{lineId} and shop_code is not null
</select>
<select id="getListByTime" resultType="com.cool.store.entity.ShopInfoDO">
select a.id as id ,
a.create_time,
a.partner_id as partnerId,
a.line_id as lineId
from xfsg_shop_info a
LEFT JOIN xfsg_partner_user_info b ON a.partner_id = b.partner_id
where
a.create_time >= '2025-04-19 00:00:00'
and b.downstream_system_salting is null;
</select>
<update id="batchUpdate" parameterType="list">
<foreach collection="list" item="item" index="index" open="" close="" separator=";">

View File

@@ -417,4 +417,18 @@
where
shop_id = #{shopId} and deleted = 0 and is_terminated = 1 and shop_stage in (1,2)
</select>
<select id="getShopSubStages" resultType="com.cool.store.entity.ShopStageInfoDO">
select shop_id as shopId,
shop_sub_stage as shopSubStage,
shop_sub_stage_status as shopSubStageStatus,
is_terminated as isTerminated,
actual_complete_time as actualCompleteTime
from xfsg_shop_stage_info where shop_stage = 2 or shop_stage = 1 or shop_sub_stage = 230 or shop_sub_stage = 240
<if test="shopIds !=null and shopIds.size()>0">
and shop_id in
<foreach collection="shopIds" item="shopId" index="index" open="(" separator="," close=")">
#{shopId}
</foreach>
</if>
</select>
</mapper>

View File

@@ -20,4 +20,7 @@
<select id="getByCode" resultType="com.cool.store.entity.WarehouseInfoDO">
select * from xfsg_warehouse_info where warehouse_code = #{code}
</select>
<select id="getAll" resultType="com.cool.store.entity.WarehouseInfoDO">
select * from xfsg_warehouse_info
</select>
</mapper>