Commit 70b05af6 by Guojunfeng

迁移登录接口

parent eabc5485
...@@ -2,39 +2,84 @@ package com.founder.commonutils.publicEntity; ...@@ -2,39 +2,84 @@ package com.founder.commonutils.publicEntity;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List;
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel @ApiModel(value = "SysUsers对象", description = "用户基本信息")
@TableName("SYS_USERS") @TableName("SYS_USERS")
public class SysUsers { public class SysUsers implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "xxzj编号")
private String xxzjbh; private String xxzjbh;
@ApiModelProperty(value = "警号")
private String policemanid; private String policemanid;
@ApiModelProperty(value = "姓名")
private String truename; private String truename;
@ApiModelProperty(value = "电话")
private String telephone; private String telephone;
@ApiModelProperty(value = "身份证号")
private String identitycard; private String identitycard;
@ApiModelProperty(value = "单位代码")
private String unitcode; private String unitcode;
@ApiModelProperty(value = "单位名称")
private String unitname; private String unitname;
@ApiModelProperty(value = "登录用户名")
private String username; private String username;
@ApiModelProperty(value = "密码")
private String password; private String password;
@ApiModelProperty(value = "权限0 是编辑新增删除(所有权限)1:新增修改自己的 2:查看自己的")
private String jurisdiction; private String jurisdiction;
@ApiModelProperty(value = "更新时间")
private Date gxsj; private Date gxsj;
@ApiModelProperty(value = "入库时间")
private Date rksj;
@ApiModelProperty(value = "信息来源描述")
private String xxlyms; private String xxlyms;
@ApiModelProperty(value = "职务")
private String jobname; private String jobname;
@ApiModelProperty(value = "xxsc_pdbz")
private String xxsc_pdbz;
@ApiModelProperty(value = "录入人")
private String lrr; private String lrr;
@ApiModelProperty(value = "录入单位代码")
private String lrdwdm; private String lrdwdm;
@ApiModelProperty(value = "录入单位名称")
private String lrdwmc; private String lrdwmc;
@ApiModelProperty(value = "更新人")
private String gxr; private String gxr;
@ApiModelProperty(value = "更新单位代码")
private String gxdwdm; private String gxdwdm;
@ApiModelProperty(value = "更新单位名称")
private String gxdwmc; private String gxdwmc;
private String role_id;
private List<String> permission_id;//登录返回用户所有权限集合
} }
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<mapper namespace="com.founder.publicapi.mapper.SysUsersMapper"> <mapper namespace="com.founder.publicapi.mapper.SysUsersMapper">
<select id="getUsersByNamePassword" resultType="com.founder.commonutils.publicEntity.SysUsers"> <select id="getUsersByNamePassword" resultType="com.founder.commonutils.publicEntity.SysUsers">
select * from sys_user select * from sys_users
where 1=1 where 1=1 and xxsc_pdbz = '0'
<if test="username!=null and username!=''"> <if test="username!=null and username!=''">
and username = #{username} and username = #{username}
</if> </if>
......
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