wanghui 8 éve%!(EXTRA string=óta)
szülő
commit
0268e93e0d

+ 4 - 4
src/main/java/com/goafanti/common/mapper/UserBusinessMapper.xml

@@ -361,7 +361,7 @@
 		user_business a left join user b on
 		a.uid = b.id left join business_glossory c on
 		a.business_glossory_id = c.id left join admin d on
-		a.uid = d.id
+		a.aid = d.id
 	where a.aid = #{aid,jdbcType=VARCHAR}
 	<if test="uid != null and uid !=''">
 		and a.uid = #{uid,jdbcType=VARCHAR}
@@ -382,10 +382,10 @@
 		and d.name = #{adminName,jdbcType=VARCHAR}
 	</if>
 	<if test="startDate != null and startDate != ''">
-		and and a.create_time &gt; STR_TO_DATE(#{startDate},'%Y-%m-%d %H:%i:%s')
+		and a.create_time &gt; STR_TO_DATE(#{startDate},'%Y-%m-%d %H:%i:%s')
 	</if>
 	<if test="endDate != null and endDate != ''">
-		and and a.create_time &lt; STR_TO_DATE(#{endDate},'%Y-%m-%d %H:%i:%s')
+		and a.create_time &lt; STR_TO_DATE(#{endDate},'%Y-%m-%d %H:%i:%s')
 	</if>
 	<if test="page_sql != null">
     	${page_sql}
@@ -398,7 +398,7 @@
 		user_business a left join user b on
 		a.uid = b.id left join business_glossory c on
 		a.business_glossory_id = c.id left join admin d on
-		a.uid = d.id
+		a.aid = d.id
 	where a.aid = #{aid,jdbcType=VARCHAR}
 	<if test="uid != null and uid !=''">
 		and a.uid = #{uid,jdbcType=VARCHAR}

+ 1 - 0
src/main/java/com/goafanti/customer/service/impl/BusinessServiceImpl.java

@@ -103,6 +103,7 @@ public class BusinessServiceImpl extends BaseMybatisDao<UserBusinessMapper> impl
 			ufb.setFollowId(ufId);
 			ufb.setCustomerStatus(ub.getCustomerStatus());
 			ufb.setFollowSituation(ub.getFollowSituation());
+			ufb.setBusinessGlossoryId(Integer.parseInt(bfb.getBusinessGlossoryId()));
 			userFollowBusinessMapper.insert(ufb);
 		}
 	}