<?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 >= #{pageComActEasyPhotoTypeDTO.createAtBegin}
|
</if>
|
<if test="pageComActEasyPhotoTypeDTO.createAtEnd!=null">
|
AND create_at <= #{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>
|