Authored by kun

新增html页面

package com.yoho.ufo.dal.brand;
package com.yoho.ufo.dal;
import com.yoho.ufo.model.brand.Brand;
import com.yohobuy.ufo.model.common.PageModel;
... ... @@ -38,7 +38,7 @@ public interface BrandMapper {
* @param brand
* @return
*/
int selectBrandCount(Brand brand);
int selectBrandCount(@Param("brand") Brand brand);
/**
* 根据主键查询品牌信息
... ...
<?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.yoho.ufo.dal.brand.BrandMapper">
<mapper namespace="com.yoho.ufo.dal.BrandMapper">
<resultMap id="brandMap" type="com.yoho.ufo.model.brand.Brand">
</resultMap>
... ... @@ -60,7 +60,7 @@
from brand
<where>
<if test="brand.brandName != null and brand.brandName != ''">
brand_name like concat('%', #{brand.brandName}, '%') or brand_name_en like concat('%', #{brand.brandName}, '%')
brand_name like concat('%', #{brand.brandName}, '%')
</if>
<if test="brand.status != null">
status = #{brand.status}
... ...