修改goods模块
This commit is contained in:
parent
13453dfd3b
commit
061081fc46
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cyl.manager.pms.mapper.BrandMapper">
|
||||
|
||||
<mapper namespace="com.wzj.soopin.goods.mapper.BrandMapper">
|
||||
|
||||
<resultMap type="Brand" id="BrandResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectByEntity" parameterType="Brand" resultMap="BrandResult">
|
||||
<include refid="selectBrandVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="sort != null "> and sort = #{sort}</if>
|
||||
<if test="showStatus != null "> and show_status = #{showStatus}</if>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cyl.manager.pms.mapper.ProductCategoryMapper">
|
||||
|
||||
<mapper namespace="com.wzj.soopin.goods.mapper.ProductCategoryMapper">
|
||||
|
||||
<resultMap type="ProductCategory" id="ProductCategoryResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="parentId" column="parent_id"/>
|
||||
@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectByEntity" parameterType="ProductCategory" resultMap="ProductCategoryResult">
|
||||
<include refid="selectProductCategoryVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="level != null "> and level = #{level}</if>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cyl.manager.pms.mapper.ProductMapper">
|
||||
|
||||
<mapper namespace="com.wzj.soopin.goods.mapper.ProductMapper">
|
||||
|
||||
<resultMap type="Product" id="ProductResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="brandId" column="brand_id"/>
|
||||
@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectByEntity" parameterType="Product" resultMap="ProductResult">
|
||||
<include refid="selectProductVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="brandId != null "> and brand_id = #{brandId}</if>
|
||||
<if test="categoryId != null "> and category_id = #{categoryId}</if>
|
||||
<if test="outProductId != null and outProductId != ''"> and out_product_id = #{outProductId}</if>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cyl.manager.pms.mapper.SkuMapper">
|
||||
|
||||
<mapper namespace="com.wzj.soopin.goods.mapper.SkuMapper">
|
||||
|
||||
<resultMap type="Sku" id="SkuResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectByEntity" parameterType="Sku" resultMap="SkuResult">
|
||||
<include refid="selectSkuVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="productId != null "> and product_id = #{productId}</if>
|
||||
<if test="outSkuId != null and outSkuId != ''"> and out_sku_id = #{outSkuId}</if>
|
||||
<if test="price != null "> and price = #{price}</if>
|
||||
|
Loading…
x
Reference in New Issue
Block a user