21 lines
821 B
XML
21 lines
821 B
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.mcwl.communityCenter.mapper.PublishCollectMapper">
|
|
|
|
<select id="myCollectList" resultType="com.mcwl.communityCenter.domain.vo.PublishVo">
|
|
select p.*, IF(pc.id is not null, 1, 0) as is_collect
|
|
from cc_publish p left join cc_publish_collect pc
|
|
on p.id = pc.publish_id
|
|
and p.tenant_id = pc.tenant_id
|
|
and p.community_id = pc.community_id
|
|
<where>
|
|
and pc.tenant_id = #{myPublishPageRes.tenantId}
|
|
and pc.community_id = #{myPublishPageRes.communityId}
|
|
and pc.user_id = #{userId}
|
|
and pc.del_flag = '0'
|
|
</where>
|
|
</select>
|
|
</mapper>
|