Air
2024-11-04 ef8463bc78e8e3f6b6ca3f8a76bb72d000a04ff2
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
<?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.nova.sankuai.infra.mapper.IncomeConfigMapper">
 
    <select id="pageIncomeConfigList" resultType="com.nova.sankuai.domain.vo.IncomeConfigVo">
        SELECT
        id as id,
        config_record_id as configRecordId,
        config_record_name as configRecordName,
        config_record_code as configRecordCode,
        type as type,
        default_flag as defaultFlag,
        relation_city as relationCity,
        relation_city_id as relationCityId,
        If(default_flag=1,'默认配置',relation_city_name) as relationCityName,
        collision_price as collisionPrice,
        capital_price as capitalPrice,
        audit_price as auditPrice
        from income_config
        <where>
            is_delete = 0
            <if test="pageDto.configRecordCode!=null">
                and config_record_code = #{pageDto.configRecordCode}
            </if>
            <if test="pageDto.relationCityId!=null and pageDto.relationCityId!=''">
                and relation_city_id = #{pageDto.relationCityId}
            </if>
            <if test="pageDto.type!=null">
                and type = #{pageDto.type}
            </if>
        </where>
        order by config_record_id
    </select>
 
    <update id="deleteIncomeConfig">
        update income_config set is_delete = 1 where id = #{id}
    </update>
</mapper>