mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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.ComSanshuoIndustryCenterDao">
 
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.entity.ComSanshuoIndustryCenter">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="phone" column="phone" jdbcType="VARCHAR"/>
            <result property="account" column="account" jdbcType="VARCHAR"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="status" column="status" jdbcType="TINYINT"/>
            <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
            <result property="streetId" column="street_id" jdbcType="BIGINT"/>
            <result property="communityId" column="community_id" jdbcType="BIGINT"/>
    </resultMap>
 
    <sql id="Base_Column_List">
        select id,name,phone,
        account,create_by,create_time,
        update_time,status,del_flag,
        street_id,community_id from com_sanshuo_industry_center
    </sql>
    <select id="pageIndustryCenter"
            resultType="com.panzhihua.common.model.vos.sanshuo.ComSanShuoIndustryCenterVO">
        <include refid="Base_Column_List"/>
            where del_flag=1
            <if test="keyWord != null and keyWord != ''">
              AND  name like concat('%',#{keyWord},'%')
               OR phone like concat('%',#{keyWord},'%')
            </if>
 
    </select>
    <select id="indstryList" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO">
        select id,name from com_sanshuo_industry_center where status=1 and del_flag=1
    </select>
    <select id="streetList" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO">
        select street_id as id,name from com_street where app_id='wx0cef797390444b75'
        and street_id in (1552661132500668416,1552661143879815168,1552661135428292608,1552661138704044032,1552661136451702784,1552661139563876352)
    </select>
    <select id="communityList" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertRangeVO">
        select community_id as id,name from com_act
        where app_id='wx0cef797390444b75' and street_id in (1552661132500668416,1552661143879815168,1552661135428292608,1552661138704044032,1552661136451702784,1552661139563876352)
    </select>
 
</mapper>