|
|
@@ -19,7 +19,16 @@
|
|
|
id, template_name, template_type, del_flg, create_uid, update_uid, create_at, update_at
|
|
|
</sql>
|
|
|
<select id="getList" resultType="com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashTaskTemplate">
|
|
|
- SELECT * FROM pan_fosterwx_cash_task_template where del_flg = 1
|
|
|
+ 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
|
|
|
+ on B.template_id = A.id
|
|
|
+ </if>
|
|
|
+ where A.del_flg = 1
|
|
|
+ <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>
|
|
|
order by id desc
|
|
|
</select>
|
|
|
</mapper>
|