This commit is contained in:
苏竹红
2024-03-25 09:55:22 +08:00
parent d42eae1260
commit 9a93866efe
2 changed files with 3 additions and 3 deletions

View File

@@ -215,7 +215,7 @@
<select id="getLabelGroupList" resultType="com.cool.store.vo.LabelGroupListVo"> <select id="getLabelGroupList" resultType="com.cool.store.vo.LabelGroupListVo">
SELECT t1.id, t1.label_group_name, t2.`name` AS editName, t2.mobile AS editMobile, t1.edit_date SELECT t1.id, t1.label_group_name, t2.`name` AS editName, t2.mobile AS editMobile, t1.edit_date
FROM xfsg_partner_label_group t1 FROM xfsg_partner_label_group t1
LEFT JOIN enterprise_user t2 ON t1.edit_user_id = t2.user_id LEFT JOIN enterprise_user_${enterpriseId} t2 ON t1.edit_user_id = t2.user_id
WHERE t1.deleted = 0 WHERE t1.deleted = 0
<if test="labelGroupName != null and labelGroupName != ''"> <if test="labelGroupName != null and labelGroupName != ''">
AND t1.label_group_name LIKE CONCAT('%', #{labelGroupName}, '%') AND t1.label_group_name LIKE CONCAT('%', #{labelGroupName}, '%')
@@ -226,7 +226,7 @@
<select id="getLabelGroupListOrder" resultType="com.cool.store.vo.LabelGroupListVo"> <select id="getLabelGroupListOrder" resultType="com.cool.store.vo.LabelGroupListVo">
SELECT t1.id, t1.label_group_name, t2.`name` AS editName, t2.mobile AS editMobile, t1.edit_date SELECT t1.id, t1.label_group_name, t2.`name` AS editName, t2.mobile AS editMobile, t1.edit_date
FROM xfsg_partner_label_group t1 FROM xfsg_partner_label_group t1
LEFT JOIN enterprise_user t2 ON t1.edit_user_id = t2.user_id LEFT JOIN enterprise_user_${enterpriseId} t2 ON t1.edit_user_id = t2.user_id
WHERE t1.deleted = 0 WHERE t1.deleted = 0
<if test="labelGroupName != null and labelGroupName != ''"> <if test="labelGroupName != null and labelGroupName != ''">
AND t1.label_group_name LIKE CONCAT('%', #{labelGroupName}, '%') AND t1.label_group_name LIKE CONCAT('%', #{labelGroupName}, '%')

View File

@@ -204,7 +204,7 @@
SELECT t1.id, t2.id AS labelGroupId, t1.label_name, t2.label_group_name, t3.`name` AS editName, t3.mobile AS editMobile, t1.edit_date,t1.create_time as labelCreateTime,t2.create_time AS groupCreateTime SELECT t1.id, t2.id AS labelGroupId, t1.label_name, t2.label_group_name, t3.`name` AS editName, t3.mobile AS editMobile, t1.edit_date,t1.create_time as labelCreateTime,t2.create_time AS groupCreateTime
FROM xfsg_partner_label t1 FROM xfsg_partner_label t1
LEFT JOIN xfsg_partner_label_group t2 ON t1.label_group_id = t2.id LEFT JOIN xfsg_partner_label_group t2 ON t1.label_group_id = t2.id
LEFT JOIN enterprise_user t3 ON t1.edit_user_id = t3.user_id LEFT JOIN enterprise_user_${enterpriseId} t3 ON t1.edit_user_id = t3.user_id
WHERE t1.deleted = 0 AND t2.deleted = 0 WHERE t1.deleted = 0 AND t2.deleted = 0
<if test="labelName != null and labelName != ''"> <if test="labelName != null and labelName != ''">
AND t1.label_name LIKE CONCAT('%', #{labelName} ,'%') AND t1.label_name LIKE CONCAT('%', #{labelName} ,'%')