|
|
@ -301,8 +301,8 @@
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
FROM basic_products
|
|
|
|
FROM basic_products
|
|
|
|
inner JOIN basic_udirel
|
|
|
|
inner JOIN basic_udirel
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
@ -312,7 +312,8 @@
|
|
|
|
AND relCode = #{relCode}
|
|
|
|
AND relCode = #{relCode}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="bindType != '' and bindType != null">
|
|
|
|
<if test="bindType != '' and bindType != null">
|
|
|
|
AND relCode is null or trim(relCode)=''
|
|
|
|
AND relCode is null
|
|
|
|
|
|
|
|
or trim(relCode) = ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
AND supName LIKE concat('%', #{supName}, '%')
|
|
|
|
AND supName LIKE concat('%', #{supName}, '%')
|
|
|
@ -328,9 +329,9 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
and (
|
|
|
|
and (
|
|
|
|
nameCode LIKE concat('%', #{unionCode}, '%')
|
|
|
|
nameCode LIKE concat('%', #{unionCode}, '%')
|
|
|
|
or ybbm LIKE concat('%', #{unionCode}, '%')
|
|
|
|
or ybbm LIKE concat('%', #{unionCode}, '%')
|
|
|
|
or sptm LIKE concat('%', #{unionCode}, '%'))
|
|
|
|
or sptm LIKE concat('%', #{unionCode}, '%'))
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="isDisable == false">
|
|
|
|
<if test="isDisable == false">
|
|
|
|
AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false)
|
|
|
|
AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false)
|
|
|
@ -360,30 +361,30 @@
|
|
|
|
<if test="filterType != null and filterType == 1">
|
|
|
|
<if test="filterType != null and filterType == 1">
|
|
|
|
AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or
|
|
|
|
AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or
|
|
|
|
thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '')
|
|
|
|
thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '')
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 2">
|
|
|
|
<if test="filterType != null and filterType == 2">
|
|
|
|
AND basic_products.originUuid is NULL
|
|
|
|
AND basic_products.originUuid is NULL
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
AND (mainId is NULL or mainId = '')
|
|
|
|
AND (mainId is NULL or mainId = '')
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 4">
|
|
|
|
<if test="filterType != null and filterType == 4">
|
|
|
|
AND thirdId1 is NULL
|
|
|
|
AND thirdId1 is NULL
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 5">
|
|
|
|
<if test="filterType != null and filterType == 5">
|
|
|
|
AND thirdId2 is NULL
|
|
|
|
AND thirdId2 is NULL
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 6">
|
|
|
|
<if test="filterType != null and filterType == 6">
|
|
|
|
AND thirdId3 is NULL
|
|
|
|
AND thirdId3 is NULL
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 7">
|
|
|
|
<if test="filterType != null and filterType == 7">
|
|
|
|
AND thirdId4 is NULL
|
|
|
|
AND thirdId4 is NULL
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 10">
|
|
|
|
<if test="filterType != null and filterType == 10">
|
|
|
|
AND basic_udirel.updateTime is NULL
|
|
|
|
AND basic_udirel.updateTime is NULL
|
|
|
@ -586,7 +587,7 @@
|
|
|
|
isLock,
|
|
|
|
isLock,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser,
|
|
|
|
updateUser,
|
|
|
|
updateUser,
|
|
|
|
remark)
|
|
|
|
remark, useExpireTime, dispatch, groupBuy)
|
|
|
|
values (#{id},
|
|
|
|
values (#{id},
|
|
|
|
#{uuid},
|
|
|
|
#{uuid},
|
|
|
|
#{mainId},
|
|
|
|
#{mainId},
|
|
|
@ -609,7 +610,7 @@
|
|
|
|
#{modifyTime},
|
|
|
|
#{modifyTime},
|
|
|
|
#{createUser},
|
|
|
|
#{createUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{remark})
|
|
|
|
#{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiRelevanceignore" keyProperty="id"
|
|
|
|
<insert id="insertUdiRelevanceignore" keyProperty="id"
|
|
|
@ -621,7 +622,7 @@
|
|
|
|
isLock,
|
|
|
|
isLock,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser,
|
|
|
|
updateUser,
|
|
|
|
updateUser,
|
|
|
|
remark)
|
|
|
|
remark, useExpireTime, dispatch, groupBuy)
|
|
|
|
values (#{id},
|
|
|
|
values (#{id},
|
|
|
|
#{uuid},
|
|
|
|
#{uuid},
|
|
|
|
#{mainId},
|
|
|
|
#{mainId},
|
|
|
@ -644,7 +645,7 @@
|
|
|
|
#{modifyTime},
|
|
|
|
#{modifyTime},
|
|
|
|
#{createUser},
|
|
|
|
#{createUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{remark})
|
|
|
|
#{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
@ -736,6 +737,15 @@
|
|
|
|
<if test="remark != null">
|
|
|
|
<if test="remark != null">
|
|
|
|
remark=#{remark},
|
|
|
|
remark=#{remark},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="useExpireTime != null">
|
|
|
|
|
|
|
|
useExpireTime=#{useExpireTime},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="dispatch != null">
|
|
|
|
|
|
|
|
dispatch=#{dispatch},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="groupBuy != null">
|
|
|
|
|
|
|
|
groupBuy=#{groupBuy},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
WHERE id = #{id}
|
|
|
|
WHERE id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -763,7 +773,7 @@
|
|
|
|
isLock,
|
|
|
|
isLock,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser,
|
|
|
|
updateUser,
|
|
|
|
updateUser,
|
|
|
|
remark)
|
|
|
|
remark, useExpireTime, dispatch, groupBuy)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
@ -789,7 +799,7 @@
|
|
|
|
#{item.modifyTime},
|
|
|
|
#{item.modifyTime},
|
|
|
|
#{item.createUser},
|
|
|
|
#{item.createUser},
|
|
|
|
#{item.updateUser},
|
|
|
|
#{item.updateUser},
|
|
|
|
# {item.remark})
|
|
|
|
#{item.remark}, #{item.useExpireTime}, #{item.dispatch}, #{item.groupBuy})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -862,7 +872,6 @@
|
|
|
|
<if test="isDisable != null and isDisable == false">
|
|
|
|
<if test="isDisable != null and isDisable == false">
|
|
|
|
AND (isDisable is null or isDisable = false)
|
|
|
|
AND (isDisable is null or isDisable = false)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
group by basic_udirel.id
|
|
|
|
group by basic_udirel.id
|
|
|
@ -878,11 +887,9 @@
|
|
|
|
<update id="updateBatchById" parameterType="java.util.List">
|
|
|
|
<update id="updateBatchById" parameterType="java.util.List">
|
|
|
|
<foreach collection="list" item="item" separator=";">
|
|
|
|
<foreach collection="list" item="item" separator=";">
|
|
|
|
update
|
|
|
|
update
|
|
|
|
basic_udirel
|
|
|
|
basic_udirel
|
|
|
|
set
|
|
|
|
set `relCode` = #{item.relCode}
|
|
|
|
`relCode` = #{item.relCode}
|
|
|
|
where id = #{item.id}
|
|
|
|
where
|
|
|
|
|
|
|
|
id = #{item.id}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|