ActivtyTemplatedMapper.xml
1.16 KB
<?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.yohoufo.dal.resource.ActivtyTemplatedMapper" >
<resultMap id="BaseResultMap" type="com.yohoufo.dal.resource.model.ActivtyTemplated" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="title" property="title" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="INTEGER" />
<result column="is_del" property="isDel" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
<result column="update_user" property="updateUser" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, title, status, is_del, create_time, update_time, update_user
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from activty_templated
where id = #{id,jdbcType=INTEGER} AND is_del = 0 AND status = 1
</select>
</mapper>