Browse Source

私有/签单客户列表修改

anderx 9 months ago
parent
commit
1dee1a05bf

+ 12 - 0
src/main/java/com/goafanti/common/mapper/UserMapper.xml

@@ -1352,6 +1352,12 @@
         <if test="nature !=null">
             and a.nature = #{nature,jdbcType=INTEGER}
         </if>
+        <if test="enterpriseNature !=null">
+            and a.enterprise_nature = #{enterpriseNature,jdbcType=INTEGER}
+        </if>
+        <if test="listedNature !=null">
+            and a.listed_nature = #{listedNature,jdbcType=INTEGER}
+        </if>
         <if test="sort != 1">
             order by orderTime
         </if>
@@ -1410,6 +1416,12 @@
         <if test="nature !=null">
             and a.nature = #{nature,jdbcType=INTEGER}
         </if>
+        <if test="enterpriseNature !=null">
+            and a.enterprise_nature = #{enterpriseNature,jdbcType=INTEGER}
+        </if>
+        <if test="listedNature !=null">
+            and a.listed_nature = #{listedNature,jdbcType=INTEGER}
+        </if>
     </select>
     <select id="findMainProductsList" resultType="com.goafanti.customer.bo.OutUserMianProducts">
         select oi.id ,u.id uid, u.nickname userName, oi.business_scope businessScope,u.nature,u.nature_other natureOther,

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

@@ -585,6 +585,12 @@
 		<if test="nature !=null">
 			and a.nature = #{nature}
 		</if>
+		<if test="enterpriseNature !=null">
+			and a.enterprise_nature = #{enterpriseNature}
+		</if>
+		<if test="listedNature !=null">
+			and a.listed_nature = #{listedNature}
+		</if>
 		order by if(um.last_follow_time is null,a.transfer_time,if(a.transfer_time &gt; um.last_follow_time, a.transfer_time, um.last_follow_time)) ,
 		         a.`number`
 		 <if test="page_sql != null">
@@ -626,6 +632,12 @@
 		<if test="nature !=null">
 			and a.nature = #{nature}
 		</if>
+		<if test="enterpriseNature !=null">
+			and a.enterprise_nature = #{enterpriseNature}
+		</if>
+		<if test="listedNature !=null">
+			and a.listed_nature = #{listedNature}
+		</if>
 	</select>
 
 	<select id="findCustomerByName" parameterType="java.lang.String" resultType="com.goafanti.customer.bo.CustomerSimpleBo">

+ 7 - 0
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -320,6 +320,13 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 		if (null != cli.getNature()){
 			params.put("nature", cli.getNature());
 		}
+		if(null != cli.getEnterpriseNature()){
+			params.put("enterpriseNature", cli.getEnterpriseNature());
+		}
+		if (null != cli.getListedNature()){
+			params.put("listedNature", cli.getListedNature());
+		}
+
 		return params;
 	}