Browse Source

拉代码

recovery
wang0018 4 years ago
parent
commit
215e9e6811
  1. 2
      tcm/src/main/java/com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java
  2. 2
      tcm/src/main/java/com/ccsens/tcm/service/PatientService.java
  3. 10
      util/src/test/java/com/ccsens/util/KeyTest.java

2
tcm/src/main/java/com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java

@ -7,7 +7,7 @@ import lombok.Data;
@Data
public class BiologicalSamplesVo {
@Data
@ApiModel("添加生物样本")
@ApiModel("搜索生物样本10.40")
public static class selBiolog {
@ApiModelProperty("医院名称")
private String name;

2
tcm/src/main/java/com/ccsens/tcm/service/PatientService.java

@ -307,7 +307,7 @@ public class PatientService implements IPatientService {
PatientInformationExample patientInformationExample=new PatientInformationExample();
patientInformationExample.createCriteria().andHospitalizationEqualTo(param.getHospitalization()).andRecStatusEqualTo((byte)0);
List<PatientInformation> patientInformations = patientInformationMapper.selectByExample(patientInformationExample);
if(patientInformations.size()!=1){
if(patientInformations.size()>=1){
throw new BaseException(CodeEnum.QUANTITYERROR);
}
BiologicalSamples biologicalSamples=new BiologicalSamples();

10
util/src/test/java/com/ccsens/util/KeyTest.java

@ -25,18 +25,18 @@ public class KeyTest {
public void test3(){
// String key = "a6RlI/GctLgENUvF6DOY7w==";
String key = "g9RlI/GctLgDFJvF6DOY7w==";
String string = "po3OynBO[M3579p6L7)o";
String string = "sdfe@#$QW";
SymmetricCrypto aes = new SymmetricCrypto(SymmetricAlgorithm.AES, Base64.decode(key));
String encryptHex = aes.encryptHex(string);
Console.log("{}",encryptHex);
}
/**解密*/
// @Test
@Test
public void test4(){
// String key = "";
String key = System.getenv("CCSENS_GAME");
String encryptString = "37080c1f223685592316b02dad8816c019290a476e54ebb638f9aa3ba8b6bdb9";
String key = "g9RlI/GctLgDFJvF6DOY7w==";
// String key = System.getenv("CCSENS_GAME");
String encryptString = "6ba13d9930a6ad888a3704376c920a75";
SymmetricCrypto aes = new SymmetricCrypto(SymmetricAlgorithm.AES, Base64.decode(key));
//解密为字符串

Loading…
Cancel
Save