|
|
@@ -21,7 +21,7 @@
|
|
|
<select id="getList" resultType="com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashTaskTemplate">
|
|
|
SELECT A.* FROM pan_fosterwx_cash_task_template as A
|
|
|
<if test="params.title != null">
|
|
|
- left join (select template_id,title from pan_fosterwx_cash_task_list where title like concat('%',#{params.title},'%') group by template_id,title) as B
|
|
|
+ left join (select template_id from pan_fosterwx_cash_task_list where title like concat('%',#{params.title},'%') group by template_id) as B
|
|
|
on B.template_id = A.id
|
|
|
</if>
|
|
|
where A.del_flg = 1
|
|
|
@@ -29,7 +29,21 @@
|
|
|
<if test="params.name != null">and A.template_name like concat('%',#{params.name},'%')</if>
|
|
|
<if test="params.createUid != null">and A.create_uid = #{params.createUid}</if>
|
|
|
<if test="params.id != null">and A.id = #{params.id}</if>
|
|
|
- <if test="params.title != null">and B.title is not null</if>
|
|
|
+ <if test="params.title != null">and B.template_id is not null</if>
|
|
|
order by id desc
|
|
|
</select>
|
|
|
+ <select id="getWorkwxList" resultType="com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashTaskTemplate">
|
|
|
+ SELECT A.* FROM pan_fosterwx_cash_task_template as A
|
|
|
+ <if test="params.title != null">
|
|
|
+ left join (select template_id from pan_fosterwx_cash_workwx_task_list where title like concat('%',#{params.title},'%') group by template_id) as B
|
|
|
+ on B.template_id = A.id
|
|
|
+ </if>
|
|
|
+ where A.del_flg = 1
|
|
|
+ <if test="params.type != null">and A.template_type = #{params.type}</if>
|
|
|
+ <if test="params.name != null">and A.template_name like concat('%',#{params.name},'%')</if>
|
|
|
+ <if test="params.createUid != null">and A.create_uid = #{params.createUid}</if>
|
|
|
+ <if test="params.id != null">and A.id = #{params.id}</if>
|
|
|
+ <if test="params.title != null">and B.template_id is not null</if>
|
|
|
+ order by A.id desc
|
|
|
+ </select>
|
|
|
</mapper>
|