正在显示
4 个修改的文件
包含
8 行增加
和
5 行删除
| @@ -11,8 +11,8 @@ | @@ -11,8 +11,8 @@ | ||
| 11 | </parent> | 11 | </parent> | 
| 12 | <groupId>com.tianbo</groupId> | 12 | <groupId>com.tianbo</groupId> | 
| 13 | <artifactId>warehouse</artifactId> | 13 | <artifactId>warehouse</artifactId> | 
| 14 | - <version>3.0Beta</version> | ||
| 15 | - <name>warehouse</name> | 14 | + <version>4.0Beta-organization-update</version> | 
| 15 | + <name>usercenter</name> | ||
| 16 | <description>usercenter for springcloud</description> | 16 | <description>usercenter for springcloud</description> | 
| 17 | 17 | ||
| 18 | <properties> | 18 | <properties> | 
| @@ -34,6 +34,8 @@ public class ROLE implements GrantedAuthority { | @@ -34,6 +34,8 @@ public class ROLE implements GrantedAuthority { | ||
| 34 | 34 | ||
| 35 | private String mqcode; | 35 | private String mqcode; | 
| 36 | 36 | ||
| 37 | + private String orgtype; | ||
| 38 | + | ||
| 37 | private List<ROLE> children; | 39 | private List<ROLE> children; | 
| 38 | 40 | ||
| 39 | public Integer getRoleId() { | 41 | public Integer getRoleId() { | 
| @@ -11,13 +11,13 @@ import java.security.PublicKey; | @@ -11,13 +11,13 @@ import java.security.PublicKey; | ||
| 11 | import java.util.Date; | 11 | import java.util.Date; | 
| 12 | 12 | ||
| 13 | public class JwtTokenUtil { | 13 | public class JwtTokenUtil { | 
| 14 | - //加载jwt.jks文件 | ||
| 15 | - private static InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("jwt.jks"); | ||
| 16 | private static PrivateKey privateKey = null; | 14 | private static PrivateKey privateKey = null; | 
| 17 | private static PublicKey publicKey = null; | 15 | private static PublicKey publicKey = null; | 
| 18 | 16 | ||
| 19 | static { | 17 | static { | 
| 20 | try { | 18 | try { | 
| 19 | + //加载jwt.jks文件 | ||
| 20 | + InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("jwt.jks"); | ||
| 21 | KeyStore keyStore = KeyStore.getInstance("JKS"); | 21 | KeyStore keyStore = KeyStore.getInstance("JKS"); | 
| 22 | keyStore.load(inputStream, "vmvnv1v2".toCharArray()); | 22 | keyStore.load(inputStream, "vmvnv1v2".toCharArray()); | 
| 23 | privateKey = (PrivateKey) keyStore.getKey("jwt", "vmvnv1v2".toCharArray()); | 23 | privateKey = (PrivateKey) keyStore.getKey("jwt", "vmvnv1v2".toCharArray()); | 
| @@ -13,6 +13,7 @@ | @@ -13,6 +13,7 @@ | ||
| 13 | <result column="business_license" jdbcType="VARCHAR" property="businessLicense" /> | 13 | <result column="business_license" jdbcType="VARCHAR" property="businessLicense" /> | 
| 14 | <result column="departmentId" jdbcType="VARCHAR" property="departmentid" /> | 14 | <result column="departmentId" jdbcType="VARCHAR" property="departmentid" /> | 
| 15 | <result column="mq_code" jdbcType="VARCHAR" property="mqcode" /> | 15 | <result column="mq_code" jdbcType="VARCHAR" property="mqcode" /> | 
| 16 | + <result column="org_type" jdbcType="VARCHAR" property="orgtype" /> | ||
| 16 | </resultMap> | 17 | </resultMap> | 
| 17 | <resultMap id="TreeSqlWithPermResultMap" type="com.tianbo.warehouse.model.ROLE" extends="BaseResultMap"> | 18 | <resultMap id="TreeSqlWithPermResultMap" type="com.tianbo.warehouse.model.ROLE" extends="BaseResultMap"> | 
| 18 | <collection column="role_id" javaType="java.util.ArrayList" ofType="com.tianbo.warehouse.model.PERMISSION" property="permissions" select="com.tianbo.warehouse.dao.PERMISSIONMapper.getRolePermisson" /> | 19 | <collection column="role_id" javaType="java.util.ArrayList" ofType="com.tianbo.warehouse.model.PERMISSION" property="permissions" select="com.tianbo.warehouse.dao.PERMISSIONMapper.getRolePermisson" /> | 
| @@ -40,7 +41,7 @@ | @@ -40,7 +41,7 @@ | ||
| 40 | </resultMap> | 41 | </resultMap> | 
| 41 | <sql id="Base_Column_List"> | 42 | <sql id="Base_Column_List"> | 
| 42 | role_id, role_name, role_sign, description, `type`, parentId, rsort, customs_reg_code, | 43 | role_id, role_name, role_sign, description, `type`, parentId, rsort, customs_reg_code, | 
| 43 | - business_license, departmentId, mq_code | 44 | + business_license, departmentId, mq_code, orgtype | 
| 44 | </sql> | 45 | </sql> | 
| 45 | <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | 46 | <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | 
| 46 | select | 47 | select | 
- 
请 注册 或 登录 后发表评论