|
|
@@ -26,13 +26,14 @@
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="corpId" column="corp_id" />
|
|
|
<result property="syncTime" column="sync_time" />
|
|
|
+ <result property="pageParam" column="page_param" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectQwAcquisitionAssistantVo">
|
|
|
select id, link_id, link_name, url, scheme, qw_create_time, skip_verify,
|
|
|
mark_source, priority_type, user_list, department_list, priority_user_list,
|
|
|
qw_user_table_id_list,range_desc, status, remark,
|
|
|
- create_by, create_time, update_by, update_time, del_flag,corp_id,sync_time
|
|
|
+ create_by, create_time, update_by, update_time, del_flag,corp_id,sync_time,page_param
|
|
|
from qw_acquisition_assistant
|
|
|
</sql>
|
|
|
|
|
|
@@ -74,6 +75,9 @@
|
|
|
<if test="corpId != null">
|
|
|
and corp_id = #{corpId}
|
|
|
</if>
|
|
|
+ <if test="pageParam != null">
|
|
|
+ and page_param = #{pageParam}
|
|
|
+ </if>
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
and date_format(qw_create_time, '%y%m%d') >= date_format(#{params.beginTime}, '%y%m%d')
|
|
|
</if>
|
|
|
@@ -84,6 +88,15 @@
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectQwAcquisitionUrlByPageParam" resultType="java.lang.String" parameterType="java.lang.String">
|
|
|
+ SELECT url
|
|
|
+ FROM qw_acquisition_assistant
|
|
|
+ WHERE page_param = #{pageParam}
|
|
|
+ AND status = 1
|
|
|
+ AND del_flag = '0'
|
|
|
+ ORDER BY create_time DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
<!-- 新增 -->
|
|
|
<insert id="insertQwAcquisitionAssistant" parameterType="QwAcquisitionAssistant" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into qw_acquisition_assistant
|
|
|
@@ -109,6 +122,7 @@
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="corpId != null">corp_id,</if>
|
|
|
<if test="syncTime != null">sync_time,</if>
|
|
|
+ <if test="pageParam != null">page_param,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="linkId != null">#{linkId},</if>
|
|
|
@@ -132,6 +146,7 @@
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="corpId != null">#{corpId},</if>
|
|
|
<if test="syncTime != null">#{syncTime},</if>
|
|
|
+ <if test="pageParam != null">#{pageParam},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -156,6 +171,7 @@
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="corpId != null">corp_id = #{corpId},</if>
|
|
|
<if test="syncTime != null">sync_time = #{syncTime},</if>
|
|
|
+ <if test="pageParam != null">page_param = #{pageParam},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|