Authored by kun

新增html页面

1 -package com.yoho.ufo.dal.brand; 1 +package com.yoho.ufo.dal;
2 2
3 import com.yoho.ufo.model.brand.Brand; 3 import com.yoho.ufo.model.brand.Brand;
4 import com.yohobuy.ufo.model.common.PageModel; 4 import com.yohobuy.ufo.model.common.PageModel;
@@ -38,7 +38,7 @@ public interface BrandMapper { @@ -38,7 +38,7 @@ public interface BrandMapper {
38 * @param brand 38 * @param brand
39 * @return 39 * @return
40 */ 40 */
41 - int selectBrandCount(Brand brand); 41 + int selectBrandCount(@Param("brand") Brand brand);
42 42
43 /** 43 /**
44 * 根据主键查询品牌信息 44 * 根据主键查询品牌信息
1 <?xml version="1.0" encoding="UTF-8" ?> 1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3 -<mapper namespace="com.yoho.ufo.dal.brand.BrandMapper"> 3 +<mapper namespace="com.yoho.ufo.dal.BrandMapper">
4 4
5 <resultMap id="brandMap" type="com.yoho.ufo.model.brand.Brand"> 5 <resultMap id="brandMap" type="com.yoho.ufo.model.brand.Brand">
6 </resultMap> 6 </resultMap>
@@ -60,7 +60,7 @@ @@ -60,7 +60,7 @@
60 from brand 60 from brand
61 <where> 61 <where>
62 <if test="brand.brandName != null and brand.brandName != ''"> 62 <if test="brand.brandName != null and brand.brandName != ''">
63 - brand_name like concat('%', #{brand.brandName}, '%') or brand_name_en like concat('%', #{brand.brandName}, '%') 63 + brand_name like concat('%', #{brand.brandName}, '%')
64 </if> 64 </if>
65 <if test="brand.status != null"> 65 <if test="brand.status != null">
66 status = #{brand.status} 66 status = #{brand.status}