<?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.panzhihua.service_community.dao.ComMediateTypeDao">
|
<select id="eventList" resultType="com.panzhihua.service_community.entity.ComMediateType">
|
select * from com_mediate_type
|
where delete_flag=0
|
<if test="keyWord != null and keyWord != ''">
|
and name like concat('%',#{keyWord},'%')
|
</if>
|
</select>
|
<select id="selectEventCount" resultType="java.lang.Integer">
|
select count(id) from com_sanshuo_event_info
|
where event_category = #{id}
|
AND app_id=#{appId}
|
</select>
|
</mapper>
|