Browse Source

修改数据库字段

wanghui 7 years ago
parent
commit
3d1bcf8a07

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

@@ -409,7 +409,7 @@
 	select
 		a.id as businessId,
 		a.uid,
-		a.business_glossory_id as businessGlossoryId,
+		a.business_project_id as businessProjectId,
 		a.create_time as createTime,
 		a.follow_situation as followSituation,
 		a.customer_status as customerStatus,
@@ -428,7 +428,7 @@
 		a.customer_status as customerStatus,
 		a.follow_situation as followSituation,
 		a.remarks,
-		a.business_glossory_id as businessGlossoryId,
+		a.business_project_id as businessProjectId,
 		b.id as followId,
 		b.create_time as createTime,
 		b.result,

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

@@ -1088,7 +1088,7 @@
   	from
 		user_business a inner 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.business_project_id = c.id left join admin d on
 		a.aid = d.id
 	where 1 = 1
 	<if test="aid != null and aid != ''">
@@ -1133,9 +1133,9 @@
 	from
 		user_business a inner 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.business_project_id = c.id left join admin d on
 		a.aid = d.id
-		LEFT JOIN department_management dm on dm.id = d.department_id 	
+		left join department_management dm on dm.id = d.department_id 	
 	where 1 = 1
 	<if test="aid != null and aid != ''">
 		and (b.aid = #{aid,jdbcType=VARCHAR} or d.department_id=(select department_id from admin where id=#{aid,jdbcType=VARCHAR}))
@@ -1143,8 +1143,8 @@
 	<if test="uid != null and uid !=''">
 		and a.uid = #{uid,jdbcType=VARCHAR}
 	</if>
-	<if test="businessGlossoryId !=null and businessGlossoryId != ''">
-		and a.business_glossory_id = #{businessGlossoryId,jdbcType=VARCHAR}
+	<if test="businessProjectId !=null and businessProjectId != ''">
+		and a.business_project_id = #{businessProjectId,jdbcType=VARCHAR}
 	</if>
 	<if test="identifyName != null and identifyName != ''">
 		and b.identify_name like concat('%', #{identifyName},'%')
@@ -1176,9 +1176,9 @@
   	from
 		user_business a inner 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.business_project_id = c.id left join admin d on
 		a.aid = d.id
-		LEFT JOIN department_management dm on dm.id = d.department_id 	
+		left join department_management dm on dm.id = d.department_id 	
 	where 1 = 1
 	<if test="aid != null and aid != ''">
 		and (b.aid = #{aid,jdbcType=VARCHAR} or d.department_id=(select department_id from admin where id=#{aid,jdbcType=VARCHAR}))
@@ -1186,8 +1186,8 @@
 	<if test="uid != null and uid !=''">
 		and a.uid = #{uid,jdbcType=VARCHAR}
 	</if>
-	<if test="businessGlossoryId !=null and businessGlossoryId != ''">
-		and a.business_glossory_id = #{businessGlossoryId,jdbcType=VARCHAR}
+	<if test="businessProjectId !=null and businessProjectId != ''">
+		and a.business_project_id = #{businessProjectId,jdbcType=VARCHAR}
 	</if>
 	<if test="identifyName != null and identifyName != ''">
 		and b.identify_name like concat('%', #{identifyName},'%')