ソースを参照

Merge branch 'master' of http://git.ningdatech.com/liushuai/project-management into dev

tags/24080901
PoffyZhang 1年前
コミット
2e578a49ac
3個のファイルの変更41行の追加3行の削除
  1. +6
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java
  2. +9
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/vo/ProjectLibListItemVO.java
  3. +26
    -0
      pmapi/src/test/java/com/ningdatech/pmapi/password/PasswordTest.java

+ 6
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java ファイルの表示

@@ -127,6 +127,9 @@ public class ProjectLibManage {
ProjectLibListItemVO item = new ProjectLibListItemVO();
item.setId(w.getId());
item.setProjectName(w.getProjectName());
item.setProjectCode(w.getProjectCode());
item.setArea(w.getArea());
item.setAreaCode(w.getAreaCode());
item.setCreateOn(w.getCreateOn());
item.setDeclaredAmount(w.getDeclareAmount());
item.setStage(w.getStage());
@@ -177,6 +180,9 @@ public class ProjectLibManage {
ProjectLibListItemVO item = new ProjectLibListItemVO();
item.setId(w.getId());
item.setProjectName(w.getProjectName());
item.setProjectCode(w.getProjectCode());
item.setArea(w.getArea());
item.setAreaCode(w.getAreaCode());
item.setCreateOn(w.getCreateOn());
item.setDeclaredAmount(w.getDeclareAmount());
item.setStage(w.getStage());


+ 9
- 3
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/vo/ProjectLibListItemVO.java ファイルの表示

@@ -41,6 +41,15 @@ public class ProjectLibListItemVO {
@ApiModelProperty("项目ID")
private Long id;

@ApiModelProperty("项目编号")
private String projectCode;

@ApiModelProperty("区域")
private String area;

@ApiModelProperty("区域Code")
private String areaCode;

@ApiModelProperty("项目名称")
private String projectName;

@@ -129,9 +138,6 @@ public class ProjectLibListItemVO {
@ApiModelProperty("能否被预审申报")
private Boolean canPreDeclared = Boolean.FALSE;

@ApiModelProperty("21位项目编号")
private String projectCode;

@ApiModelProperty("是否有上级条线主管部门 0没有 1有")
private Integer isHigherSuperOrg;



+ 26
- 0
pmapi/src/test/java/com/ningdatech/pmapi/password/PasswordTest.java ファイルの表示

@@ -0,0 +1,26 @@
package com.ningdatech.pmapi.password;

import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
* @Classname PasswordTest
* @Description
* @Date 2023/8/2 17:39
* @Author PoffyZhang
*/
public class PasswordTest {

@Test
public void password(){
String mingwen = "ELgaCeHteZA8VJK8";

String miwen = "$2a$10$MT82RbInrIkRVL/GRS01Vew8AO6ICngOpbAGbdkWgSnYFhog5n8.q";

String encode = new BCryptPasswordEncoder().encode(mingwen);
boolean matches = new BCryptPasswordEncoder().matches(mingwen, encode);
System.out.println(encode);
System.out.println(matches);
}
}

読み込み中…
キャンセル
保存