Commit 7f650d6d authored by licc's avatar licc

修改用户编辑接口

parent 09e2841f
......@@ -83,6 +83,9 @@
<set>
<include refid="updateCondition"/>
</set>
<where>
id = #{id}
</where>
</update>
<delete id="delById" parameterType="java.lang.Integer">
......
......@@ -19,7 +19,7 @@ import java.util.Date;
@Data
@ApiModel(value = "User")
@TableName("user_info")
public class User extends Model<User> implements Serializable{
public class User implements Serializable{
private static final long serialVersionUID = 2525339404301884673L;
/**
......@@ -100,12 +100,4 @@ public class User extends Model<User> implements Serializable{
*/
@ApiModelProperty(name = "updateTime", value = "修改时间")
private Date updateTime;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
}
......@@ -252,8 +252,8 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
}
//3、判断邀请人的注册时间是否大于当前用户
if (user.getCreateTime().getTime() > userCode.getCreateTime().getTime()) {
return R.error("请填写注册时间于自己的用户邀请码!");
if (user.getCreateTime().getTime() < userCode.getCreateTime().getTime()) {
return R.error("请填写注册时间于自己的用户邀请码!");
}
//4、设置用户被邀请码
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment