<?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.xzx.gc.shop.mapper.ScoreGoodsCategoryMapper">
|
|
<select id="queryGoodsCategoryList" resultType="com.xzx.gc.shop.vo.QueryGoodsCategoryListVo">
|
SELECT
|
*
|
FROM
|
xzx_score_goods_category a
|
WHERE 1 = 1
|
<if test="name != null and name != ''">
|
and a.name=#{name}
|
</if>
|
<if test="categoryIden != null and categoryIden != ''">
|
and a.category_iden=#{categoryIden}
|
</if>
|
<if test="parentId != null and parentId != ''">
|
and a.parent_id=#{parentId}
|
</if>
|
order by a.CREATED_TIME desc
|
</select>
|
|
</mapper>
|