Bladeren bron

项目列表 增加项目编号和地区

tags/24080901
PoffyZhang 1 jaar geleden
bovenliggende
commit
8e7d07c15a
3 gewijzigde bestanden met toevoegingen van 41 en 3 verwijderingen
  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 Bestand weergeven

@@ -126,6 +126,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());
@@ -157,6 +160,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 Bestand weergeven

@@ -39,6 +39,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;

@@ -127,9 +136,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 Bestand weergeven

@@ -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);
}
}

Laden…
Annuleren
Opslaan