Commit a3370523 authored by m1991's avatar m1991

Merge remote-tracking branch 'origin/master'

parents 23e3d363 7f650d6d
...@@ -83,6 +83,9 @@ ...@@ -83,6 +83,9 @@
<set> <set>
<include refid="updateCondition"/> <include refid="updateCondition"/>
</set> </set>
<where>
id = #{id}
</where>
</update> </update>
<delete id="delById" parameterType="java.lang.Integer"> <delete id="delById" parameterType="java.lang.Integer">
......
...@@ -19,7 +19,7 @@ import java.util.Date; ...@@ -19,7 +19,7 @@ import java.util.Date;
@Data @Data
@ApiModel(value = "User") @ApiModel(value = "User")
@TableName("user_info") @TableName("user_info")
public class User extends Model<User> implements Serializable{ public class User implements Serializable{
private static final long serialVersionUID = 2525339404301884673L; private static final long serialVersionUID = 2525339404301884673L;
/** /**
...@@ -100,12 +100,4 @@ public class User extends Model<User> implements Serializable{ ...@@ -100,12 +100,4 @@ public class User extends Model<User> implements Serializable{
*/ */
@ApiModelProperty(name = "updateTime", value = "修改时间") @ApiModelProperty(name = "updateTime", value = "修改时间")
private Date updateTime; private Date updateTime;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
} }
...@@ -267,8 +267,8 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U ...@@ -267,8 +267,8 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
} }
//3、判断邀请人的注册时间是否大于当前用户 //3、判断邀请人的注册时间是否大于当前用户
if (user.getCreateTime().getTime() > userCode.getCreateTime().getTime()) { if (user.getCreateTime().getTime() < userCode.getCreateTime().getTime()) {
return R.error("请填写注册时间于自己的用户邀请码!"); return R.error("请填写注册时间于自己的用户邀请码!");
} }
//4、设置用户被邀请码 //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