gaodm hace 5 años
padre
commit
0c4c7b29b3

+ 1 - 1
prec-service/src/main/java/com/diagbot/facade/PrecEncryptFacade.java

@@ -18,7 +18,7 @@ public class PrecEncryptFacade {
     private static final String IV_STRING = "z76rxggpnykxeyb1";
 
 
-    public PrecMapVO getEncryption(PrecMapVO precMapVO) throws ParseException {
+    public PrecMapVO getEncryption(PrecMapVO precMapVO) {
         //patientInfo  patientName
         Map<String,String> map = precMapVO.getMap();
         Map<String,String> mapNew =new HashMap<String, String>();

+ 2 - 3
prec-service/src/main/java/com/diagbot/web/PrecEncryptController.java

@@ -13,7 +13,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.validation.Valid;
-import java.text.ParseException;
 
 /**
  * @author wangfeng
@@ -33,7 +32,7 @@ public class PrecEncryptController {
             notes = "Map<String ,String> map")
     @PostMapping("/getEncryption")
     @SysLogger("getEncryption")
-    public RespDTO<PrecMapVO> getEncryption(@RequestBody PrecMapVO precMapVO) throws ParseException {
+    public RespDTO<PrecMapVO> getEncryption(@RequestBody PrecMapVO precMapVO) {
         return RespDTO.onSuc(precEncryptFacade.getEncryption(precMapVO));
     }
 
@@ -41,7 +40,7 @@ public class PrecEncryptController {
             notes = "Map<String ,String> map")
     @PostMapping("/getDecode")
     @SysLogger("getDecode")
-    public RespDTO<PrecMapVO> getDecode(@RequestBody @Valid PrecMapVO precVO) throws ParseException{
+    public RespDTO<PrecMapVO> getDecode(@RequestBody @Valid PrecMapVO precVO) {
         return RespDTO.onSuc(precEncryptFacade.getDecode(precVO));
     }
 }