From 215e9e6811cdddc324744d29c720ab786155fb7a Mon Sep 17 00:00:00 2001 From: wang0018 <1007152140@qq.com> Date: Mon, 22 Feb 2021 15:36:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=89=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java | 2 +- .../java/com/ccsens/tcm/service/PatientService.java | 2 +- util/src/test/java/com/ccsens/util/KeyTest.java | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java b/tcm/src/main/java/com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java index 6796e4d0..4ffbd2a4 100644 --- a/tcm/src/main/java/com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java +++ b/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; diff --git a/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java b/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java index 74ff8c22..7fabb55d 100644 --- a/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java +++ b/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 patientInformations = patientInformationMapper.selectByExample(patientInformationExample); - if(patientInformations.size()!=1){ + if(patientInformations.size()>=1){ throw new BaseException(CodeEnum.QUANTITYERROR); } BiologicalSamples biologicalSamples=new BiologicalSamples(); diff --git a/util/src/test/java/com/ccsens/util/KeyTest.java b/util/src/test/java/com/ccsens/util/KeyTest.java index 0e40fe70..bb2dc09e 100644 --- a/util/src/test/java/com/ccsens/util/KeyTest.java +++ b/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)); //解密为字符串