chb 7 år sedan
förälder
incheckning
2fc1362afd

+ 22 - 21
saicLogistics/src/main/java/com/fuzamei/entity/User.java

@@ -16,6 +16,27 @@ public class User {
 	private String  username;       //账号
 	private String  password;       //密码
 	private Integer roleId;        	//角色id
+	private String  personName;    	//人名or公司名字
+	private String random;         //随机数
+	private Long createTime;      	//添加时间
+	private Long updateTime;      	//更新时间
+	private String roleName;		//角色名称
+	private String token;			//令牌
+	private String  sign;         //签名
+	private Integer page;				//页数
+	private Integer rowNum;				//每页显示得条数
+	private Integer startPage;			//起始页
+	
+	//下面 【操作记录表数据】
+	private Integer  operatorId;         //操作人
+	private String operatorName;		//操作人名
+	private Integer operationTypeId;	//操作类型id
+	private String operationTypeName;	//操作类型名
+	private Integer beOperatedId;       //被操作人id
+	private String beOperatedName;		//被操作人名
+	private Long operationTime;			//操作时间
+	private String hash;				//操作hash
+	
 	public String getTokenId() {
 		return tokenId;
 	}
@@ -166,27 +187,7 @@ public class User {
 	public void setHash(String hash) {
 		this.hash = hash;
 	}
-	private String  personName;    	//人名or公司名字
-	private String random;         //随机数
-	private Long createTime;      	//添加时间
-	private Long updateTime;      	//更新时间
-	private String roleName;		//角色名称
-	private String token;			//令牌
-	private String  sign;         //签名
-	private Integer page;				//页数
-	private Integer rowNum;				//每页显示得条数
-	private Integer startPage;			//起始页
-	
-	//下面 【操作记录表数据】
-	private Integer  operatorId;         //操作人
-	private String operatorName;		//操作人名
-	private Integer operationTypeId;	//操作类型id
-	private String operationTypeName;	//操作类型名
-	private Integer beOperatedId;       //被操作人id
-	private String beOperatedName;		//被操作人名
-	private Long operationTime;			//操作时间
-	private String hash;				//操作hash
-	
+
 	
 
 	

+ 1 - 1
saicLogistics/src/main/java/com/fuzamei/mapper/UserMapper.xml

@@ -8,7 +8,7 @@
 	
 	<!--添加(id前端传来的)角色,账号,密码,名称  -->
 	<insert id="insertUsers" parameterType="com.fuzamei.entity.User">
-		insert into  users(user_id,role_id,username,password,person_name,random,create_time,update_time)  values(#{userId},#{roleId},#{username},#{password},#{personName},#{random},#{createTime},#{updateTime})
+		insert into  users(user_id,role_id,username,password,person_name,random,create_time,update_time)  values(#{userIdb},#{roleId},#{username},#{password},#{personName},#{random},#{createTime},#{updateTime})
 	</insert>
 	
 	<!--先去数据库查询 看是否已有的账号不能在重复添加了    -->

+ 2 - 2
saicLogistics/src/main/resources/spring-mvc.xml

@@ -35,11 +35,11 @@
 	<tx:annotation-driven transaction-manager="transactionManager"
 		proxy-target-class="true" />
 	<!-- 对token拦截验证 (为方便测试,测试环境给注释掉) -->
-     	<mvc:interceptors>
+ <!--     	<mvc:interceptors>
 		<mvc:interceptor>
 			<mvc:mapping path="/**" />
 			<mvc:exclude-mapping path="/login"/>
 			<bean class="com.fuzamei.interceptor.TokenInterceptor" />
 		</mvc:interceptor>
-	</mvc:interceptors>     
+	</mvc:interceptors>   -->   
 </beans>