ZhuDeKang hace 2 meses
padre
commit
fe8d2f000e

+ 6 - 7
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/service/impl/MdModelInfoServiceImpl.java

@@ -63,13 +63,12 @@ public class MdModelInfoServiceImpl implements IMdModelInfoService {
     public List<MdModelInfo> selectMdModelInfoList(MdModelInfo mdModelInfo) {
         List<MdModelInfo> mdModelInfos = mdModelInfoMapper.selectMdModelInfoList(mdModelInfo);
         mdModelInfos.forEach(p -> {
-            p.setName(sm4Util.decrypt(mdModelInfo.getName()));
-            p.setEnname(sm4Util.decrypt(mdModelInfo.getEnname()));
-
-            p.setMdUnit(sm4Util.decrypt(mdModelInfo.getMdUnit()));
-            p.setMdContact(sm4Util.decrypt(mdModelInfo.getMdContact()));
-            p.setDevUnit(sm4Util.decrypt(mdModelInfo.getDevUnit()));
-            p.setDevContact(sm4Util.decrypt(mdModelInfo.getDevContact()));
+            p.setName(sm4Util.decrypt(p.getName()));
+            p.setEnname(sm4Util.decrypt(p.getEnname()));
+            p.setMdUnit(sm4Util.decrypt(p.getMdUnit()));
+            p.setMdContact(sm4Util.decrypt(p.getMdContact()));
+            p.setDevUnit(sm4Util.decrypt(p.getDevUnit()));
+            p.setDevContact(sm4Util.decrypt(p.getDevContact()));
 
         });
         return mdModelInfos;