提交 0353d8ae 作者: panda

服务列表筛选serviceName

上级 3f1a3e8b
...@@ -173,6 +173,9 @@ ...@@ -173,6 +173,9 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="param.serviceName != null and param.serviceName!=''">
and service_name LIKE CONCAT('%',#{param.serviceName},'%')
</if>
</where> </where>
</select> </select>
...@@ -198,30 +201,33 @@ ...@@ -198,30 +201,33 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="param.serviceName != null and param.serviceName!=''">
and service_name LIKE CONCAT('%',#{param.serviceName},'%')
</if>
</where> </where>
order by create_time desc order by create_time desc
limit #{param.pageNo}, #{param.pageSize} limit #{param.pageNo}, #{param.pageSize}
</select> </select>
<select id="QueryWorkServiceListById" resultType="com.mmc.pms.model.work.dto.ServiceDTO"> <select id="QueryWorkServiceListById" resultType="com.mmc.pms.model.work.dto.ServiceDTO">
select id, select id,
service_name, service_name,
application_id, application_id,
industry_id, industry_id,
display_state, display_state,
cover_plan, cover_plan,
share_card, share_card,
video, video,
service_introduction, service_introduction,
create_time, create_time,
update_time, update_time,
account_id account_id
from service from service
where where
is_deleted = 0 is_deleted = 0
<if test="ids != null"> <if test="ids != null">
<foreach collection="ids" item="id" open="and id in (" close=")" separator=","> <foreach collection="ids" item="id" open="and id in (" close=")" separator=",">
#{id} #{id}
</foreach> </foreach>
</if> </if>
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论