Commit c470001f by zhanghj

V1.0.0--提交用户状态相关修改的改动

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17923 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 8a1f70e1
...@@ -13,7 +13,7 @@ public class SysUser { ...@@ -13,7 +13,7 @@ public class SysUser {
private String phoneNumber; private String phoneNumber;
private Byte userStatus; private String userStatus;
private String createBy; private String createBy;
...@@ -71,13 +71,7 @@ public class SysUser { ...@@ -71,13 +71,7 @@ public class SysUser {
this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim(); this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
} }
public Byte getUserStatus() {
return userStatus;
}
public void setUserStatus(Byte userStatus) {
this.userStatus = userStatus;
}
public String getCreateBy() { public String getCreateBy() {
return createBy; return createBy;
......
...@@ -1263,9 +1263,9 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1263,9 +1263,9 @@ public class OrderServiceImpl implements IOrderService {
JSONObject obj = userClient.getUserById(userId); JSONObject obj = userClient.getUserById(userId);
if (obj != null && obj.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) { if (obj != null && obj.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) {
JSONObject data = obj.getJSONObject("data"); JSONObject data = obj.getJSONObject("data");
Byte userStatus = data.getByte("userStatus"); String userStatus = data.getString("userStatus");
Byte userType = data.getByte("userType"); Byte userType = data.getByte("userType");
if (userStatus != null && userStatus.toString() != Constants.SYS_USER_STATUS_NORMAL) { if (!Constants.SYS_USER_STATUS_NORMAL.equals(userStatus)) {
result = new ResultObject(ResultCodeEnum.USER_IS_DISABLE_OR_LOGOUT.getCode(), ResultCodeEnum.USER_IS_DISABLE_OR_LOGOUT.getMsg()); result = new ResultObject(ResultCodeEnum.USER_IS_DISABLE_OR_LOGOUT.getCode(), ResultCodeEnum.USER_IS_DISABLE_OR_LOGOUT.getMsg());
return result; return result;
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="name" jdbcType="VARCHAR" property="name" />
<result column="org_id" jdbcType="INTEGER" property="orgId" /> <result column="org_id" jdbcType="INTEGER" property="orgId" />
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" /> <result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" />
<result column="user_status" jdbcType="TINYINT" property="userStatus" /> <result column="user_status" jdbcType="VARCHAR" property="userStatus" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> <result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
password, sex, remark, password, sex, remark,
user_type) user_type)
values (#{username,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, values (#{username,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER},
#{phoneNumber,jdbcType=VARCHAR}, #{userStatus,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR}, #{userStatus,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{password,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{userType,jdbcType=TINYINT}) #{userType,jdbcType=TINYINT})
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
#{phoneNumber,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
</if> </if>
<if test="userStatus != null"> <if test="userStatus != null">
#{userStatus,jdbcType=TINYINT}, #{userStatus,jdbcType=VARCHAR},
</if> </if>
<if test="createBy != null"> <if test="createBy != null">
#{createBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
phone_number = #{phoneNumber,jdbcType=VARCHAR}, phone_number = #{phoneNumber,jdbcType=VARCHAR},
</if> </if>
<if test="userStatus != null"> <if test="userStatus != null">
user_status = #{userStatus,jdbcType=TINYINT}, user_status = #{userStatus,jdbcType=VARCHAR},
</if> </if>
<if test="createBy != null"> <if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR},
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
org_id = #{orgId,jdbcType=INTEGER}, org_id = #{orgId,jdbcType=INTEGER},
phone_number = #{phoneNumber,jdbcType=VARCHAR}, phone_number = #{phoneNumber,jdbcType=VARCHAR},
user_status = #{userStatus,jdbcType=TINYINT}, user_status = #{userStatus,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR}, update_by = #{updateBy,jdbcType=VARCHAR},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!