@@ -60,7 +60,7 @@ id, mobile, password, nickname, email, create_time, number, lvl, type, aid, mid,
</sql>
<!--查询单个-->
- <select id="selectById" resultMap="UserMap">
+ <select id="queryById" resultMap="UserMap">
select
<include refid="UserAllSql"/>
from user
@@ -51,6 +51,31 @@ public class InputAddCustomer {
private Integer channelType;
+ /**
+ * 客户性质0=其他,1=政府机构,2=科研院所,3=高等院校,4=国有企业,5=民营企业,6=社会团体
+ */
+ private Integer nature;
+ * 客户性质其他说明
+ private Integer natureOther;
+
+ public Integer getNature() {
+ return nature;
+ }
+ public void setNature(Integer nature) {
+ this.nature = nature;
+ public Integer getNatureOther() {
+ return natureOther;
+ public void setNatureOther(Integer natureOther) {
+ this.natureOther = natureOther;
public Integer getLevel() {
return level;
}
@@ -342,6 +342,8 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
user.setSource(1);// 客户来源为录入
user.setIdentifyName(in.getName());
user.setNickname(in.getName());
+// user.setNature(in.getNature());
+// if (in.getNatureOther()!=null)user.setNatureOther(in.getNatureOther());
user.setUsername(in.getName());
user.setStatus(AFTConstants.USER_STATUS_NORMAL);
user.setShareType(in.getShareType());