|
|
<?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.yohobuy.ufo.dal.brand.BrandMapper">
|
|
|
<mapper namespace="com.yoho.ufo.dal.brand.BrandMapper">
|
|
|
|
|
|
<resultMap id="brandMap" type="com.yohobuy.ufo.model.brand.Brand">
|
|
|
<resultMap id="brandMap" type="com.yoho.ufo.model.brand.Brand">
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="queryColumns">
|
|
|
id, brand_name, brand_name_en, brand_log, brand_search, status, create_time
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insertBrand" parameterType="com.yohobuy.ufo.model.brand.Brand">
|
|
|
<insert id="insertBrand" parameterType="com.yoho.ufo.model.brand.Brand">
|
|
|
insert into brand(id, brand_name, brand_name_en, brand_log, brand_search, status, create_time, edit_time, edit_pid)
|
|
|
values (#{id}, #{brandName}, #{brandNameEn}, #{brandLogo}, #{brandSearch}, #{status}, #{createTime}, #{editTime}, #{editPid})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateBrandStatus" parameterType="com.yohobuy.ufo.model.brand.Brand">
|
|
|
<update id="updateBrandStatus" parameterType="com.yoho.ufo.model.brand.Brand">
|
|
|
update brand set status = #{status}, edit_time = #{editTime}, edit_pid = #{editPid} where id = #{id}
|
|
|
</update>
|
|
|
|
...
|
...
|
|