|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.base.mapper.BaseSkuMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="BaseSku" id="BaseSkuResult">
|
|
|
<result property="customerId" column="customer_id" />
|
|
|
<result property="sku" column="sku" />
|
|
@@ -70,20 +70,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
b.qc_check, b.create_by, b.create_time, b.update_by, b.update_time, b.remark
|
|
|
from base_sku b
|
|
|
left join base_sku_type sk on b.sku_type = sk.item_code
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId}</if>
|
|
|
<if test="sku != null and sku != ''"> and sku like concat('%', #{sku}, '%')</if>
|
|
|
<if test="skuType != null and skuType != ''"> and sku_type = #{skuType}</if>
|
|
|
<if test="activeFlag != null and activeFlag != ''"> and active_flag = #{activeFlag}</if>
|
|
|
+ <if test="desc2 != null and desc2 != ''"> and desc2 = #{desc2}</if>
|
|
|
</where>
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectBaseSkuByCustomerId" parameterType="String" resultMap="BaseSkuResult">
|
|
|
<include refid="selectBaseSkuVo"/>
|
|
|
where customer_id = #{customerId} and sku = #{sku}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertBaseSku" parameterType="BaseSku">
|
|
|
insert into base_sku
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -270,4 +271,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
and active_flag = 'Y'
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+</mapper>
|