Browse Source

客户新增客户性质

anderx 10 months ago
parent
commit
f3b18de6e9

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

@@ -1328,6 +1328,9 @@
         <if test="level != null">
             and a.level = #{level,jdbcType=INTEGER}
         </if>
+        <if test="nature !=null">
+            and a.nature = #{nature,jdbcType=INTEGER}
+        </if>
         <if test="sort != 1">
             order by orderTime
         </if>

+ 10 - 0
src/main/java/com/goafanti/customer/bo/CustomerListIn.java

@@ -79,6 +79,16 @@ public class CustomerListIn {
 	 */
 	private String orgCode;
 
+	private Integer nature;
+
+	public Integer getNature() {
+		return nature;
+	}
+
+	public void setNature(Integer nature) {
+		this.nature = nature;
+	}
+
 	public String getOrgCode() {
 		return orgCode;
 	}

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

@@ -317,6 +317,9 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 			params.put("channel", cli.getChannel());
 		if (null != cli.getBusinessScope())
 			params.put("businessScope", cli.getBusinessScope());
+		if (null != cli.getNature()){
+			params.put("nature", cli.getNature());
+		}
 		return params;
 	}