|
@@ -142,12 +142,14 @@ func formOutputEntity(tableRow map[string]any, outputEntity any) error {
|
|
|
|
|
|
strValue = parsedTime.Format(element.ParseTime)
|
|
|
} else if strutils.IsStringNotEmpty(element.AESKey) {
|
|
|
- decryptedValue, err := encoding.AESDecrypt(strValue, element.AESKey)
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
+ if strutils.IsStringNotEmpty(strValue) {
|
|
|
+ decryptedValue, err := encoding.AESDecrypt(strValue, element.AESKey)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
|
|
|
- strValue = decryptedValue
|
|
|
+ strValue = decryptedValue
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
err = reflectutils.AssignStringValue(strValue, fieldValue)
|