liusheng
2023-06-14 d6f2f458d9c8156981880c987d861423ce9af146
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
<?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.ruoyi.project.mapper.BasePrcaddressDictMapper">
    
    <resultMap type="BasePrcaddressDict" id="BasePrcaddressDictResult">
        <result property="id"    column="ID"    />
        <result property="areanumber"    column="AREANUMBER"    />
        <result property="areaname"    column="AREANAME"    />
        <result property="superiorareanumber"    column="SUPERIORAREANUMBER"    />
        <result property="arealv"    column="AREALV"    />
        <result property="pym"    column="PYM"    />
        <result property="wbm"    column="WBM"    />
        <result property="delFlag"    column="del_flag"    />
        <result property="reimbursementamount"    column="REIMBURSEMENTAMOUNT"    />
        <result property="createBy"    column="create_by"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateBy"    column="update_by"    />
        <result property="updateTime"    column="update_time"    />
    </resultMap>
 
    <sql id="selectBasePrcaddressDictVo">
        select ID, AREANUMBER, AREANAME, SUPERIORAREANUMBER, AREALV, PYM, WBM, del_flag, REIMBURSEMENTAMOUNT, create_by, create_time, update_by, update_time
        from base_prcaddress_dict
    </sql>
 
    <select id="selectBasePrcaddressDictList" parameterType="BasePrcaddressDict" resultMap="BasePrcaddressDictResult">
        <include refid="selectBasePrcaddressDictVo"/>
        where del_flag = '0'
 
        <if test="areanumber != null  and areanumber != ''"> and AREANUMBER = #{areanumber}</if>
        <if test="areaname != null  and areaname != ''"> and AREANAME like concat('%', #{areaname}, '%')</if>
        <if test="superiorareanumber != null  and superiorareanumber != ''"> and SUPERIORAREANUMBER = #{superiorareanumber}</if>
        <if test="arealv != null "> and AREALV = #{arealv}</if>
        <if test="pym != null  and pym != ''"> and PYM = #{pym}</if>
        <if test="wbm != null  and wbm != ''"> and WBM = #{wbm}</if>
        order by ID
 
    </select>
    <select id="getAllCityOfZJ" resultType="com.ruoyi.common.core.domain.entity.BasePrcaddressDict">
        <include refid="selectBasePrcaddressDictVo"/>
        where SUPERIORAREANUMBER = "33"
 
    </select>
 
</mapper>