|
|
|
@ -273,7 +273,7 @@
|
|
|
|
|
<select id="filterUdiJoinSup" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
|
select basic_udirel.*,
|
|
|
|
|
basic_products.id as PRId,
|
|
|
|
|
basic_products.id as PRId,
|
|
|
|
|
basic_products.originUuid,
|
|
|
|
|
basic_products.nameCode,
|
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
@ -347,9 +347,9 @@
|
|
|
|
|
basic_products.medicareType,
|
|
|
|
|
basic_products.price as productPrice,
|
|
|
|
|
company_product_relevance.unitFk,
|
|
|
|
|
basic_corp.erpId as customerId,
|
|
|
|
|
basic_corp.name companyName,
|
|
|
|
|
th.hsmc hslbName
|
|
|
|
|
basic_corp.erpId as customerId,
|
|
|
|
|
basic_corp.name companyName,
|
|
|
|
|
th.hsmc hslbName
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
inner JOIN basic_products
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
@ -649,7 +649,7 @@
|
|
|
|
|
AND udplatCode = #{udplatCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
|
|
|
|
AND basic_products.zczbhhzbapzbh LIKE concat('%',#{zczbhhzbapzbh}, '%')
|
|
|
|
|
AND basic_products.zczbhhzbapzbh LIKE concat('%', #{zczbhhzbapzbh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="diType != '' and diType != null">
|
|
|
|
|
AND diType = #{diType}
|
|
|
|
@ -1271,74 +1271,74 @@
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiRelevance" keyProperty="id" parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
replace
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable,
|
|
|
|
|
isLock,
|
|
|
|
|
lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime,
|
|
|
|
|
updateTime, modifyTime,
|
|
|
|
|
createUser,
|
|
|
|
|
updateUser,
|
|
|
|
|
remark, useExpireTime, dispatch,payFeeCode, groupBuy, needCert)
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable,
|
|
|
|
|
isLock,
|
|
|
|
|
lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime,
|
|
|
|
|
updateTime, modifyTime,
|
|
|
|
|
createUser,
|
|
|
|
|
updateUser,
|
|
|
|
|
remark, useExpireTime, dispatch, payFeeCode, groupBuy, needCert, splitEnable)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{uuid},
|
|
|
|
|
#{mainId},
|
|
|
|
|
#{thirdId},
|
|
|
|
|
#{thirdId1},
|
|
|
|
|
#{thirdId2},
|
|
|
|
|
#{thirdId3},
|
|
|
|
|
#{thirdId4},
|
|
|
|
|
#{udplatCode},
|
|
|
|
|
#{isUseDy},
|
|
|
|
|
#{isDisable},
|
|
|
|
|
#{isLock},
|
|
|
|
|
#{lockStatus},
|
|
|
|
|
#{isAdavence}, #{purType}, #{attributeType}, #{hcType},
|
|
|
|
|
#{useMuti},
|
|
|
|
|
#{useNum},
|
|
|
|
|
#{supName},
|
|
|
|
|
#{createTime},
|
|
|
|
|
#{updateTime},
|
|
|
|
|
#{modifyTime},
|
|
|
|
|
#{createUser},
|
|
|
|
|
#{updateUser},
|
|
|
|
|
#{remark}, #{useExpireTime}, #{dispatch},#{payFeeCode}, #{groupBuy}, #{needCert})
|
|
|
|
|
#{uuid},
|
|
|
|
|
#{mainId},
|
|
|
|
|
#{thirdId},
|
|
|
|
|
#{thirdId1},
|
|
|
|
|
#{thirdId2},
|
|
|
|
|
#{thirdId3},
|
|
|
|
|
#{thirdId4},
|
|
|
|
|
#{udplatCode},
|
|
|
|
|
#{isUseDy},
|
|
|
|
|
#{isDisable},
|
|
|
|
|
#{isLock},
|
|
|
|
|
#{lockStatus},
|
|
|
|
|
#{isAdavence}, #{purType}, #{attributeType}, #{hcType},
|
|
|
|
|
#{useMuti},
|
|
|
|
|
#{useNum},
|
|
|
|
|
#{supName},
|
|
|
|
|
#{createTime},
|
|
|
|
|
#{updateTime},
|
|
|
|
|
#{modifyTime},
|
|
|
|
|
#{createUser},
|
|
|
|
|
#{updateUser},
|
|
|
|
|
#{remark}, #{useExpireTime}, #{dispatch}, #{payFeeCode}, #{groupBuy}, #{needCert}, #{splitEnable})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiRelevanceignore"
|
|
|
|
|
parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
insert
|
|
|
|
|
ignore
|
|
|
|
|
ignore
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable,
|
|
|
|
|
isLock,
|
|
|
|
|
lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime,
|
|
|
|
|
updateTime, modifyTime,
|
|
|
|
|
createUser,
|
|
|
|
|
updateUser,
|
|
|
|
|
remark, useExpireTime, dispatch, groupBuy, needCert)
|
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable,
|
|
|
|
|
isLock,
|
|
|
|
|
lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime,
|
|
|
|
|
updateTime, modifyTime,
|
|
|
|
|
createUser,
|
|
|
|
|
updateUser,
|
|
|
|
|
remark, useExpireTime, dispatch, groupBuy, needCert, splitEnable)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{uuid},
|
|
|
|
|
#{mainId},
|
|
|
|
|
#{thirdId},
|
|
|
|
|
#{thirdId1},
|
|
|
|
|
#{thirdId2},
|
|
|
|
|
#{thirdId3},
|
|
|
|
|
#{thirdId4},
|
|
|
|
|
#{udplatCode},
|
|
|
|
|
#{isUseDy},
|
|
|
|
|
#{isDisable},
|
|
|
|
|
#{isLock},
|
|
|
|
|
#{lockStatus},
|
|
|
|
|
#{isAdavence}, #{purType}, #{attributeType}, #{hcType},
|
|
|
|
|
#{useMuti},
|
|
|
|
|
#{useNum},
|
|
|
|
|
#{supName},
|
|
|
|
|
#{createTime},
|
|
|
|
|
#{updateTime},
|
|
|
|
|
#{modifyTime},
|
|
|
|
|
#{createUser},
|
|
|
|
|
#{updateUser},
|
|
|
|
|
#{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert})
|
|
|
|
|
#{uuid},
|
|
|
|
|
#{mainId},
|
|
|
|
|
#{thirdId},
|
|
|
|
|
#{thirdId1},
|
|
|
|
|
#{thirdId2},
|
|
|
|
|
#{thirdId3},
|
|
|
|
|
#{thirdId4},
|
|
|
|
|
#{udplatCode},
|
|
|
|
|
#{isUseDy},
|
|
|
|
|
#{isDisable},
|
|
|
|
|
#{isLock},
|
|
|
|
|
#{lockStatus},
|
|
|
|
|
#{isAdavence}, #{purType}, #{attributeType}, #{hcType},
|
|
|
|
|
#{useMuti},
|
|
|
|
|
#{useNum},
|
|
|
|
|
#{supName},
|
|
|
|
|
#{createTime},
|
|
|
|
|
#{updateTime},
|
|
|
|
|
#{modifyTime},
|
|
|
|
|
#{createUser},
|
|
|
|
|
#{updateUser},
|
|
|
|
|
#{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert}, #{splitEnable})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
@ -1469,6 +1469,9 @@
|
|
|
|
|
<if test="payFeeCode != null">
|
|
|
|
|
payFeeCode=#{payFeeCode},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="splitEnable != null">
|
|
|
|
|
splitEnable=#{splitEnable},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -1498,7 +1501,7 @@
|
|
|
|
|
modifyTime,
|
|
|
|
|
createUser,
|
|
|
|
|
updateUser,
|
|
|
|
|
remark, useExpireTime, dispatch, groupBuy, needCert)
|
|
|
|
|
remark, useExpireTime, dispatch, groupBuy, needCert,splitEnable)
|
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
@ -1524,7 +1527,8 @@
|
|
|
|
|
#{item.modifyTime},
|
|
|
|
|
#{item.createUser},
|
|
|
|
|
#{item.updateUser},
|
|
|
|
|
#{item.remark}, #{item.useExpireTime}, #{item.dispatch}, #{item.groupBuy}, #{item.needCert})
|
|
|
|
|
#{item.remark}, #{item.useExpireTime}, #{item.dispatch}, #{item.groupBuy},
|
|
|
|
|
#{item.needCert},#{item.splitEnable})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|