anderx 4 lat temu
rodzic
commit
f3fbe01880

+ 8 - 8
src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

@@ -327,7 +327,7 @@
 	<select id="selectOrganizationCustomerList" resultType="com.goafanti.customer.bo.CustomerListOut">
 		select 
 			a.id as uid,
-			a.identify_name as name,
+			a.nickname as name,
 			date_format(a.create_time,'%Y-%m-%d %H:%i:%S') as createTime,
 			dg1.name as province,
 			dg2.name as city, 
@@ -345,10 +345,10 @@
 		left join admin d on a.aid = d.id 
 		where a.type = 1 and a.status != 1
 	<if test="role == 0">
-		and a.identify_name = #{name}
+		and a.nickname = #{name}
 	</if>
 	<if test="role == 1">
-		and a.identify_name like concat('%', #{name},'%')
+		and a.nickname like concat('%', #{name},'%')
 	</if>	
 		<if test="aid != null and aid !=''">
 			and a.aid = #{aid,jdbcType=VARCHAR}
@@ -413,7 +413,7 @@
 	</select>
 	
 	<select id="selectPrivateOrganizationCustomerList" resultType="com.goafanti.customer.bo.CustomerListOut">
-	select a.id uid,a.aid,a.identify_name name,a.society_tag societyTag,a.`level`,b.name aName,dg1.name as province,dg2.name as city,
+	select a.id uid,a.aid,a.nickname name,a.society_tag societyTag,a.`level`,b.name aName,dg1.name as province,dg2.name as city,
 	a.guidance, dg3.name as area,
 	date_format(um.last_sign_time,'%Y-%m-%d %H:%i:%S') lastSignTime,
 	date_format(a.transfer_time,'%Y-%m-%d %H:%i:%S') as transferTime, 
@@ -441,7 +441,7 @@
 			 </if>
 		</if>
 		<if test="name != null and name != ''">
-			and a.identify_name like concat('%',#{name},'%')
+			and a.nickname like concat('%',#{name},'%')
 		</if>
 		<if test="startDate != null and startDate != ''">
 			and a.transfer_time &gt; #{startDate}
@@ -519,7 +519,7 @@
 	<select id="selectPublicOrganizationCustomerList" resultType="com.goafanti.customer.bo.CustomerListOut">
 		select
 			a.id as uid,
-			a.identify_name as name,
+			a.nickname as name,
 			a.create_time as createTime,
 			a.transfer_time as transferTime,
 			dg1.name as province,
@@ -604,7 +604,7 @@
 			select 	
 			a.id as uid,
 			a.society_tag as societyTag,
-			a.identify_name as name,
+			a.nickname as name,
 			a.share_type as shareType,
 			date_format(a.transfer_time,'%Y-%m-%d %H:%i:%S') as transferTime, 
 			dg1.name as province,
@@ -627,7 +627,7 @@
 			and a.channel= #{channel}
 		</if>
 		<if test="name != null and name != ''">
-			and a.identify_name like concat('%',#{name},'%')
+			and a.nickname like concat('%',#{name},'%')
 		</if>
 		<if test="shareType != null">
 			and a.share_type = #{shareType,jdbcType=VARCHAR}