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
<?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.ComActEasyPhotoTypeMapper">
 
     <resultMap id="baseResult" type="com.panzhihua.service_grid.model.dos.ComActEasyPhotoTypeDO">
        <result property="id" column="id"/>
        <result property="name" column="name"/>
        <result property="createAt" column="create_at"/>
    </resultMap>
 
    <sql id="columns">
    <![CDATA[
        id,name,create_at
    ]]>
    </sql>
 
 
    <select id="findByPage" resultType="com.panzhihua.common.model.vos.grid.ComActEasyPhotoTypeVO"
        parameterType="com.panzhihua.common.model.dtos.grid.PageComActEasyPhotoTypeDTO">
        SELECT <include refid="columns" />
        FROM com_act_easy_photo_type
        <where>
           <if test="pageComActEasyPhotoTypeDTO.id!=null">
                AND id = #{pageComActEasyPhotoTypeDTO.id}
            </if>
           <if test="pageComActEasyPhotoTypeDTO.name!=null">
                AND name = #{pageComActEasyPhotoTypeDTO.name}
            </if>
           <if test="pageComActEasyPhotoTypeDTO.createAtBegin!=null">
                AND create_at &gt;= #{pageComActEasyPhotoTypeDTO.createAtBegin}
           </if>
           <if test="pageComActEasyPhotoTypeDTO.createAtEnd!=null">
                AND create_at &lt;= #{pageComActEasyPhotoTypeDTO.createAtEnd}
           </if>
        </where>
        <if test="pageComActEasyPhotoTypeDTO.sortColumns!=null">
            ORDER BY ${pageComActEasyPhotoTypeDTO.sortColumns} ${pageComActEasyPhotoTypeDTO.sortType}
        </if>
    </select>
 
    <select id="getPhotoClassifyList" resultType="com.panzhihua.service_grid.model.dos.ComActEasyPhotoTypeDO">
        select id,`name` from com_act_easy_photo_classify where `status` = 1
    </select>
 
</mapper>