Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -0,0 +1,309 @@
|
||||
<?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.DingdingUserMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.DingdingUserDO">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="userid" jdbcType="VARCHAR" property="userid" />
|
||||
<result column="unionid" jdbcType="VARCHAR" property="unionid" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="is_boss" jdbcType="TINYINT" property="isBoss" />
|
||||
<result column="hired_date" jdbcType="VARCHAR" property="hiredDate" />
|
||||
<result column="is_senior" jdbcType="TINYINT" property="isSenior" />
|
||||
<result column="tel" jdbcType="VARCHAR" property="tel" />
|
||||
<result column="work_place" jdbcType="VARCHAR" property="workPlace" />
|
||||
<result column="email" jdbcType="VARCHAR" property="email" />
|
||||
<result column="active" jdbcType="TINYINT" property="active" />
|
||||
<result column="avatar" jdbcType="VARCHAR" property="avatar" />
|
||||
<result column="is_admin" jdbcType="TINYINT" property="isAdmin" />
|
||||
<result column="is_hide" jdbcType="TINYINT" property="isHide" />
|
||||
<result column="job_number" jdbcType="VARCHAR" property="jobNumber" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="state_code" jdbcType="VARCHAR" property="stateCode" />
|
||||
<result column="real_authed" jdbcType="TINYINT" property="realAuthed" />
|
||||
<result column="db_update_timestamp" jdbcType="TIMESTAMP" property="dbUpdateTimestamp" />
|
||||
<result column="position" jdbcType="VARCHAR" property="position" />
|
||||
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
|
||||
<result column="check_status" jdbcType="TINYINT" property="checkStatus" />
|
||||
<result column="job_status" jdbcType="TINYINT" property="jobStatus" />
|
||||
<result column="config_code_id" jdbcType="INTEGER" property="configCodeId" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.cool.store.entity.DingdingUserDO">
|
||||
<result column="is_leader_in_depts" jdbcType="LONGVARCHAR" property="isLeaderInDepts" />
|
||||
<result column="department" jdbcType="LONGVARCHAR" property="department" />
|
||||
<result column="extattr" jdbcType="LONGVARCHAR" property="extattr" />
|
||||
<result column="roles" jdbcType="LONGVARCHAR" property="roles" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, userid, unionid, remark, is_boss, hired_date, is_senior, tel, work_place, email,
|
||||
active, avatar, is_admin, is_hide, job_number, name, state_code, real_authed, db_update_timestamp,
|
||||
position, mobile, check_status, job_status, config_code_id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
is_leader_in_depts, department, extattr, roles
|
||||
</sql>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
|
||||
insert into dingding_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userid != null">
|
||||
userid,
|
||||
</if>
|
||||
<if test="unionid != null">
|
||||
unionid,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="isBoss != null">
|
||||
is_boss,
|
||||
</if>
|
||||
<if test="hiredDate != null">
|
||||
hired_date,
|
||||
</if>
|
||||
<if test="isSenior != null">
|
||||
is_senior,
|
||||
</if>
|
||||
<if test="tel != null">
|
||||
tel,
|
||||
</if>
|
||||
<if test="workPlace != null">
|
||||
work_place,
|
||||
</if>
|
||||
<if test="email != null">
|
||||
email,
|
||||
</if>
|
||||
<if test="active != null">
|
||||
active,
|
||||
</if>
|
||||
<if test="avatar != null">
|
||||
avatar,
|
||||
</if>
|
||||
<if test="isAdmin != null">
|
||||
is_admin,
|
||||
</if>
|
||||
<if test="isHide != null">
|
||||
is_hide,
|
||||
</if>
|
||||
<if test="jobNumber != null">
|
||||
job_number,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="stateCode != null">
|
||||
state_code,
|
||||
</if>
|
||||
<if test="realAuthed != null">
|
||||
real_authed,
|
||||
</if>
|
||||
<if test="dbUpdateTimestamp != null">
|
||||
db_update_timestamp,
|
||||
</if>
|
||||
<if test="position != null">
|
||||
position,
|
||||
</if>
|
||||
<if test="mobile != null">
|
||||
mobile,
|
||||
</if>
|
||||
<if test="checkStatus != null">
|
||||
check_status,
|
||||
</if>
|
||||
<if test="jobStatus != null">
|
||||
job_status,
|
||||
</if>
|
||||
<if test="configCodeId != null">
|
||||
config_code_id,
|
||||
</if>
|
||||
<if test="isLeaderInDepts != null">
|
||||
is_leader_in_depts,
|
||||
</if>
|
||||
<if test="department != null">
|
||||
department,
|
||||
</if>
|
||||
<if test="extattr != null">
|
||||
extattr,
|
||||
</if>
|
||||
<if test="roles != null">
|
||||
roles,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userid != null">
|
||||
#{userid},
|
||||
</if>
|
||||
<if test="unionid != null">
|
||||
#{unionid},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark},
|
||||
</if>
|
||||
<if test="isBoss != null">
|
||||
#{isBoss},
|
||||
</if>
|
||||
<if test="hiredDate != null">
|
||||
#{hiredDate},
|
||||
</if>
|
||||
<if test="isSenior != null">
|
||||
#{isSenior},
|
||||
</if>
|
||||
<if test="tel != null">
|
||||
#{tel},
|
||||
</if>
|
||||
<if test="workPlace != null">
|
||||
#{workPlace},
|
||||
</if>
|
||||
<if test="email != null">
|
||||
#{email},
|
||||
</if>
|
||||
<if test="active != null">
|
||||
#{active},
|
||||
</if>
|
||||
<if test="avatar != null">
|
||||
#{avatar},
|
||||
</if>
|
||||
<if test="isAdmin != null">
|
||||
#{isAdmin},
|
||||
</if>
|
||||
<if test="isHide != null">
|
||||
#{isHide},
|
||||
</if>
|
||||
<if test="jobNumber != null">
|
||||
#{jobNumber},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="stateCode != null">
|
||||
#{stateCode},
|
||||
</if>
|
||||
<if test="realAuthed != null">
|
||||
#{realAuthed},
|
||||
</if>
|
||||
<if test="dbUpdateTimestamp != null">
|
||||
#{dbUpdateTimestamp},
|
||||
</if>
|
||||
<if test="position != null">
|
||||
#{position},
|
||||
</if>
|
||||
<if test="mobile != null">
|
||||
#{mobile},
|
||||
</if>
|
||||
<if test="checkStatus != null">
|
||||
#{checkStatus},
|
||||
</if>
|
||||
<if test="jobStatus != null">
|
||||
#{jobStatus},
|
||||
</if>
|
||||
<if test="configCodeId != null">
|
||||
#{configCodeId},
|
||||
</if>
|
||||
<if test="isLeaderInDepts != null">
|
||||
#{isLeaderInDepts},
|
||||
</if>
|
||||
<if test="department != null">
|
||||
#{department},
|
||||
</if>
|
||||
<if test="extattr != null">
|
||||
#{extattr},
|
||||
</if>
|
||||
<if test="roles != null">
|
||||
#{roles},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective">
|
||||
update dingding_user
|
||||
<set>
|
||||
<if test="userid != null">
|
||||
userid = #{userid},
|
||||
</if>
|
||||
<if test="unionid != null">
|
||||
unionid = #{unionid},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark},
|
||||
</if>
|
||||
<if test="isBoss != null">
|
||||
is_boss = #{isBoss},
|
||||
</if>
|
||||
<if test="hiredDate != null">
|
||||
hired_date = #{hiredDate},
|
||||
</if>
|
||||
<if test="isSenior != null">
|
||||
is_senior = #{isSenior},
|
||||
</if>
|
||||
<if test="tel != null">
|
||||
tel = #{tel},
|
||||
</if>
|
||||
<if test="workPlace != null">
|
||||
work_place = #{workPlace},
|
||||
</if>
|
||||
<if test="email != null">
|
||||
email = #{email},
|
||||
</if>
|
||||
<if test="active != null">
|
||||
active = #{active},
|
||||
</if>
|
||||
<if test="avatar != null">
|
||||
avatar = #{avatar},
|
||||
</if>
|
||||
<if test="isAdmin != null">
|
||||
is_admin = #{isAdmin},
|
||||
</if>
|
||||
<if test="isHide != null">
|
||||
is_hide = #{isHide},
|
||||
</if>
|
||||
<if test="jobNumber != null">
|
||||
job_number = #{jobNumber},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name},
|
||||
</if>
|
||||
<if test="stateCode != null">
|
||||
state_code = #{stateCode},
|
||||
</if>
|
||||
<if test="realAuthed != null">
|
||||
real_authed = #{realAuthed},
|
||||
</if>
|
||||
<if test="dbUpdateTimestamp != null">
|
||||
db_update_timestamp = #{dbUpdateTimestamp},
|
||||
</if>
|
||||
<if test="position != null">
|
||||
position = #{position},
|
||||
</if>
|
||||
<if test="mobile != null">
|
||||
mobile = #{mobile},
|
||||
</if>
|
||||
<if test="checkStatus != null">
|
||||
check_status = #{checkStatus},
|
||||
</if>
|
||||
<if test="jobStatus != null">
|
||||
job_status = #{jobStatus},
|
||||
</if>
|
||||
<if test="configCodeId != null">
|
||||
config_code_id = #{configCodeId},
|
||||
</if>
|
||||
<if test="isLeaderInDepts != null">
|
||||
is_leader_in_depts = #{isLeaderInDepts},
|
||||
</if>
|
||||
<if test="department != null">
|
||||
department = #{department},
|
||||
</if>
|
||||
<if test="extattr != null">
|
||||
extattr = #{extattr},
|
||||
</if>
|
||||
<if test="roles != null">
|
||||
roles = #{roles},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<select id="selectDingDingUserByMobile" resultType="com.cool.store.entity.DingdingUserDO">
|
||||
select
|
||||
<include refid="Base_Column_List"/>,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from
|
||||
dingding_user
|
||||
where
|
||||
mobile = #{mobile}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -84,7 +84,7 @@
|
||||
partner_url = #{record.partnerUrl},
|
||||
tencent_video_account = #{record.tencentVideoAccount},
|
||||
tencent_video_key = #{record.tencentVideoKey},
|
||||
update_user_id = #{record.updateUserId},
|
||||
update_user_id = #{record.updateUserId}
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -120,10 +120,12 @@
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="getHyIntendDevZoneInfoList" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
*
|
||||
from hy_intend_dev_zone_info
|
||||
where type = #{type}
|
||||
and deleted = 0
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -91,8 +91,8 @@
|
||||
<if test="type!=null and type!=''">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="deleteByMappingIds!=null and deleteByMappingIds.size>0">
|
||||
<foreach collection="deleteByMappingIds" open="and mapping_id in (" close=")" separator="," item="mappingId">
|
||||
<if test="mappingIds!=null and mappingIds.size>0">
|
||||
<foreach collection="mappingIds" open="and mapping_id in (" close=")" separator="," item="mappingId">
|
||||
#{mappingId}
|
||||
</foreach>
|
||||
</if>
|
||||
@@ -112,7 +112,7 @@
|
||||
<foreach collection="recordList" item="record" separator=",">
|
||||
(#{record.mappingId},
|
||||
#{record.openAreaMappingId},
|
||||
#{record.type}
|
||||
#{record.type})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
from hy_intend_developement_mapping a inner join hy_intend_dev_zone_info b on a.mapping_id = b.id
|
||||
<where>
|
||||
<if test="mappingIdList!=null and mappingIdList.size>0">
|
||||
<foreach collection="mappingIdList" open="and a.open_area_mapping_id in (" close=")" separator="," item="mappingId">
|
||||
<foreach collection="mappingIdList" open="and a.mapping_id in (" close=")" separator="," item="mappingId">
|
||||
#{mappingId}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
@@ -185,10 +185,14 @@
|
||||
<select id="queryByKeyword" resultMap="BaseResultMap">
|
||||
select * from
|
||||
hy_open_area_info
|
||||
where area_path like concat('%',#{keyword},'%')
|
||||
<if test="filterData!=null and filterData==true">
|
||||
and province_city_flag = 1
|
||||
</if>
|
||||
<where>
|
||||
<if test="keyword!=null and keyword!=''">
|
||||
and area_path like concat('%',#{keyword},'%')
|
||||
</if>
|
||||
<if test="filterData!=null and filterData==true">
|
||||
and province_city_flag = 1
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
@@ -216,4 +216,12 @@
|
||||
where partner_id = #{partnerId}
|
||||
</set>
|
||||
</update>
|
||||
|
||||
<select id="getByPartnerIdAndLineId" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_base_info
|
||||
where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -8,7 +8,6 @@
|
||||
<result column="partner_interview_id" jdbcType="BIGINT" property="partnerInterviewId" />
|
||||
<result column="partnership" jdbcType="VARCHAR" property="partnership" />
|
||||
<result column="want_sign_time" jdbcType="TIMESTAMP" property="wantSignTime" />
|
||||
<result column="data_source" jdbcType="TINYINT" property="dataSource" />
|
||||
<result column="partner_fee" jdbcType="VARCHAR" property="partnerFee" />
|
||||
<result column="security_fund" jdbcType="VARCHAR" property="securityFund" />
|
||||
<result column="technical_service_fee" jdbcType="VARCHAR" property="technicalServiceFee" />
|
||||
@@ -26,7 +25,7 @@
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, partner_id, partner_line_id, partner_interview_id, partnership, want_sign_time,
|
||||
data_source, partner_fee, security_fund, technical_service_fee, intention_money,
|
||||
partner_fee, security_fund, technical_service_fee, intention_money,
|
||||
intention_signer_username, intention_signer_mobile, intention_edu, real_control_username,
|
||||
real_control_idcard, signer_real_control_relation, signer_other_real_control_relation,
|
||||
signer_real_control_relation_cert, create_time, update_time
|
||||
@@ -49,9 +48,6 @@
|
||||
<if test="record.wantSignTime != null">
|
||||
want_sign_time,
|
||||
</if>
|
||||
<if test="record.dataSource != null">
|
||||
data_source,
|
||||
</if>
|
||||
<if test="record.partnerFee != null">
|
||||
partner_fee,
|
||||
</if>
|
||||
@@ -176,9 +172,6 @@
|
||||
<if test="record.wantSignTime != null">
|
||||
want_sign_time = #{record.wantSignTime},
|
||||
</if>
|
||||
<if test="record.dataSource != null">
|
||||
data_source = #{record.dataSource},
|
||||
</if>
|
||||
<if test="record.partnerFee != null">
|
||||
partner_fee = #{record.partnerFee},
|
||||
</if>
|
||||
|
||||
@@ -108,4 +108,37 @@
|
||||
from hy_partner_clerk
|
||||
where partner_line_id = #{lineId}
|
||||
</select>
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into
|
||||
hy_partner_clerk
|
||||
(
|
||||
partner_line_id,
|
||||
partner_id,
|
||||
username,
|
||||
relationship,
|
||||
age,
|
||||
choose_reason
|
||||
)
|
||||
values
|
||||
<foreach collection="recordList" item="record" separator=",">
|
||||
(#{record.partnerLineId},
|
||||
#{record.partnerId},
|
||||
#{record.username},
|
||||
#{record.relationship},
|
||||
#{record.age},
|
||||
#{record.chooseReason})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByPartnerIdAndLineId">
|
||||
delete from hy_partner_clerk where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</delete>
|
||||
|
||||
<select id="listByPartnerIdAndLineId" resultMap="BaseResultMap">
|
||||
select <include refid="Base_Column_List"></include> from
|
||||
hy_partner_clerk
|
||||
where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -279,7 +279,7 @@
|
||||
order by b.create_time
|
||||
</select>
|
||||
|
||||
<select id="selectByLineId" resultType="com.cool.store.dto.partner.PartnerIntentApplyInfoDTO">
|
||||
<select id="selectByLineId" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_intent_info
|
||||
@@ -288,4 +288,11 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getByPartnerIdAndLineId" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_intent_info
|
||||
where partner_id = #{partnerId} and partner_line_id = #{partnerLineId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -14,6 +14,7 @@
|
||||
<result column="record_time" jdbcType="TIMESTAMP" property="recordTime" />
|
||||
<result column="summary" jdbcType="VARCHAR" property="summary" />
|
||||
<result column="auth_code" jdbcType="VARCHAR" property="authCode" />
|
||||
<result column="qualify_verify_id" jdbcType="VARCHAR" property="qualifyVerifyId" />
|
||||
<result column="pass_file_url" jdbcType="VARCHAR" property="passFileUrl" />
|
||||
<result column="expiry_date" jdbcType="TIMESTAMP" property="expiryDate" />
|
||||
<result column="latest_log_message" jdbcType="VARCHAR" property="latestLogMessage" />
|
||||
@@ -46,7 +47,7 @@
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id, status, partner_line_id, interview_plan_id, partner_id, deadline, interviewer,
|
||||
recorder, process_info, record_time, summary, auth_code, pass_file_url, expiry_date,
|
||||
recorder, process_info, record_time, summary, auth_code, qualify_verify_id, pass_file_url, expiry_date,
|
||||
latest_log_message, pass_reason, certify_file, create_time, update_time, approve_time,
|
||||
partner_enter_time, interviewer_enter_time
|
||||
</sql>
|
||||
@@ -249,6 +250,9 @@
|
||||
<if test="interviewerEnterTime != null">
|
||||
interviewer_enter_time = #{interviewerEnterTime},
|
||||
</if>
|
||||
<if test="qualifyVerifyId != null">
|
||||
qualify_verify_id = #{qualifyVerifyId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@@ -330,6 +334,15 @@
|
||||
WHERE partner_id = #{partner_id}
|
||||
)
|
||||
</select>
|
||||
<select id="selectByPrimaryKeySelective" resultType="com.cool.store.entity.HyPartnerInterviewDO">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from
|
||||
hy_partner_intent_info
|
||||
where
|
||||
id = #{interviewId}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 生成通过函 pdf 后修改 -->
|
||||
<update id="updatePassLetterInfo">
|
||||
|
||||
@@ -357,8 +357,11 @@
|
||||
from hy_partner_line_info a inner join hy_partner_user_info b where a.partner_id = b.partner_id
|
||||
where deleted = 0
|
||||
and line_status = 3
|
||||
<if test="keyWord!=null and keyWord !=''">
|
||||
and (b.username like concat('%', #{keyWord}, '%') or b.mobile like concat('%', #{keyWord}, '%'))
|
||||
<if test="userNameKeyword!=null and userNameKeyword !=''">
|
||||
and b.username like concat('%', #{userNameKeyword}, '%')
|
||||
</if>
|
||||
<if test="phoneKeyword!=null and phoneKeyword !=''">
|
||||
and b.mobile like concat('%', #{phoneKeyword}, '%')
|
||||
</if>
|
||||
<if test="intentArea!=null and intentArea!=''">
|
||||
and b.want_shop_area = #{intentArea}
|
||||
@@ -384,4 +387,79 @@
|
||||
where id = #{lineId}
|
||||
</update>
|
||||
|
||||
<select id="getByPartnerId" resultMap="BaseResultMap" >
|
||||
select
|
||||
<include refid="Base_Column_List"></include>
|
||||
from hy_partner_line_info
|
||||
where partner_id = #{partnerId}
|
||||
</select>
|
||||
|
||||
<select id="getPublicSeaLineList" resultType="com.cool.store.dto.partner.PublicSeaLineDTO">
|
||||
select
|
||||
a.create_time as createTime,
|
||||
b.partner_id as partner_id,
|
||||
b.mobile as mobile,
|
||||
b.username as userName,
|
||||
b.want_shop_area as wantShopArea,
|
||||
b.accept_adjust_type as acceptAdjustType
|
||||
FROM hy_partner_line_info a inner JOIN hy_partner_user_info b on a.partner_id = b.partner_id
|
||||
where a.line_status = 1
|
||||
<if test="userNameKeyword!=null and userNameKeyword!=''">
|
||||
and b.username like concat('%',#{userNameKeyword},'%')
|
||||
</if>
|
||||
<if test="phoneKeyword!=null and phoneKeyword!=''">
|
||||
and b.mobile like concat('%',#{phoneKeyword},'%')
|
||||
</if>
|
||||
<if test="intentArea!=null and intentArea!=''">
|
||||
and b.want_shop_area = #{intentArea}
|
||||
</if>
|
||||
<if test="acceptAdjustType!=null">
|
||||
and b.accept_adjust_type = #{acceptAdjustType}
|
||||
</if>
|
||||
<if test="updateStartTime!=null and updateEndTime!=''">
|
||||
and a.update_time BETWEEN #{updateStartTime} and #{updateEndTime}
|
||||
</if>
|
||||
<if test="userIdList!=null and userIdList.size>0">
|
||||
<foreach collection="userIdList" item="userId" open="and a.investment_manager in (" close=")" separator=",">
|
||||
#{userId}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getPartnerLastLine" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"></include>
|
||||
FROM hy_partner_line_info h1
|
||||
WHERE h1.create_time = (
|
||||
SELECT MAX(h2.create_time)
|
||||
FROM hy_partner_line_info h2
|
||||
WHERE h1.partner_id = h2.partner_id
|
||||
<if test="partnerIdList!=null and partnerIdList.size>0">
|
||||
<foreach collection="partnerIdList" item="partnerId" open="and h1.partner_id in (" close=")" separator=",">
|
||||
#{partnerId}
|
||||
</foreach>
|
||||
</if>
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="getFollowCountList" resultType="com.cool.store.dto.partner.LineCountDTO">
|
||||
SELECT partner_id, COUNT(1) AS num_of_leads
|
||||
FROM hy_partner_line_info
|
||||
GROUP BY partner_id;
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getHyPartnerLineInfoListByIds" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include>
|
||||
FROM hy_partner_line_info
|
||||
<where>
|
||||
<if test="lineIds!=null and lineIds.size>0">
|
||||
<foreach collection="lineIds" item="lineId" open="and id in (" close=")" separator=",">
|
||||
#{partnerId}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -147,4 +147,11 @@
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
<update id="updateJoinKnowById">
|
||||
update hy_partner_user_info
|
||||
set `is_write_partner_know`=#{isWritePartnerKnow,jdbcType=INTEGER}
|
||||
where id=#{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user