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
<?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_grid.dao.ComActEasyPhotoTypeRelationMapper">
 
     <resultMap id="baseResult" type="com.panzhihua.service_grid.model.dos.ComActEasyPhotoTypeRelationDO">
        <result property="id" column="id"/>
        <result property="easyId" column="easy_id"/>
        <result property="easyTypeId" column="easy_type_id"/>
        <result property="createAt" column="create_at"/>
    </resultMap>
 
    <sql id="columns">
    <![CDATA[
        id,easy_id,easy_type_id
    ]]>
    </sql>
 
    <select id="getEasyPhotoTypeRelationByEasyId" resultType="String">
        SELECT
            caept.`name`
        FROM
            com_act_easy_photo_type_relation AS caeptr
            LEFT JOIN com_act_easy_photo_type AS caept ON caept.id = caeptr.easy_type_id
        <where>
            <if test="easyId!=null">
                caeptr.easy_id = #{easyId}
            </if>
        </where>
        ORDER BY caeptr.create_at desc
    </select>
 
    <select id="getEasyPhotoClassifyName" resultType="string">
        select `name` from com_act_easy_photo_classify where id = #{classifyId}
    </select>
 
 
</mapper>