diff --git a/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt b/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt index a59414006..d8451546b 100644 --- a/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt +++ b/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt @@ -83,10 +83,10 @@ class EntityEncryptAspect( when (f.getAnnotation(EncryptedColumn::class.java).type) { EncryptType.SYMMETRIC -> encryptPort.symmetricEncrypt( secretKey = getSchoolKey(), - plainText = f.get(obj) as String + plainText = f[obj] as String ) EncryptType.ASYMMETRIC -> encryptPort.asymmetricEncrypt( - plainText = f.get(obj) as String + plainText = f[obj] as String ) } } @@ -97,10 +97,10 @@ class EntityEncryptAspect( when (f.getAnnotation(EncryptedColumn::class.java).type) { EncryptType.SYMMETRIC -> encryptPort.symmetricDecrypt( secretKey = getSchoolKey(), - cipherText = f.get(obj) as String + cipherText = f[obj] as String ) EncryptType.ASYMMETRIC -> encryptPort.asymmetricDecrypt( - cipherText = f.get(obj) as String + cipherText = f[obj] as String ) } }