27 lines
1.0 KiB
XML
27 lines
1.0 KiB
XML
<?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.chaozhanggui.system.cashierservice.dao.TbCouponCategoryMapper">
|
|
|
|
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbCouponCategory" id="TbCouponCategoryMap">
|
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
id
|
|
, name, create_time, update_time, status </sql>
|
|
|
|
<!--查询单个-->
|
|
<select id="queryById" resultMap="TbCouponCategoryMap">
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
|
|
from tb_coupon_category
|
|
where id = #{id}
|
|
</select>
|
|
</mapper>
|
|
|