42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
|
<?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.cm.bigdata.dao2.kpi.ICommunityBossDao">
|
||
|
|
||
|
<resultMap id="communityBossPO" type="com.cm.bigdata.pojo.pos.kpi.CommunityBossPO">
|
||
|
<id column="id" property="id"/>
|
||
|
<result column="community_boss_id" property="communityBossId"/>
|
||
|
<result column="community_boss_user_id" property="communityBossUserId"/>
|
||
|
<result column="community_boss_parent_id" property="communityBossParentId"/>
|
||
|
<result column="community_boss_parent_user_id" property="communityBossParentUserId"/>
|
||
|
<result column="community_boss_level" property="communityBossLevel"/>
|
||
|
<result column="area_id" property="areaId"/>
|
||
|
<result column="area_name" property="areaName"/>
|
||
|
<result column="grid_summary" property="gridSummary"/>
|
||
|
<result column="creator" property="creator"/>
|
||
|
<result column="gmt_create" property="gmtCreate"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<select id="listPO" parameterType="map" resultMap="communityBossPO">
|
||
|
SELECT
|
||
|
id,
|
||
|
community_boss_id,
|
||
|
community_boss_user_id,
|
||
|
community_boss_parent_id,
|
||
|
community_boss_parent_user_id,
|
||
|
community_boss_level,
|
||
|
area_id,
|
||
|
area_name,
|
||
|
grid_summary,
|
||
|
creator,
|
||
|
gmt_create
|
||
|
FROM
|
||
|
city_community_boss
|
||
|
WHERE
|
||
|
is_delete = 0
|
||
|
<if test="communityBossLevel != null and communityBossLevel != ''">
|
||
|
AND
|
||
|
community_boss_level = #{communityBossLevel}
|
||
|
</if>
|
||
|
</select>
|
||
|
|
||
|
</mapper>
|