Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the parameter type of service is BigDecimal, it will be unconditionally cast. #611

Open
daiagou opened this issue Aug 25, 2023 · 1 comment

Comments

@daiagou
Copy link

daiagou commented Aug 25, 2023

This cannot be considered a problem, but there is a slight doubt as to why we should default to doing everything like this.
The problem is as follows:
I wrote a service and passed in a number with the type BigDecimal. However, I found that in different time zones, this number ultimately receives different values. Upon checking the source code, I found that all parameters with the type BigDecimal in the service will be treated as amounts, forcing an international conversion.
The specific source code is in the convertType method in ParameterInfo.java.
I am very confused, what is the reason for doing this.

@jonesde
Copy link
Member

jonesde commented Aug 25, 2023

I don't understand, what is the behavior you are seeing and how is it different from what you expect or would prefer? Specific examples are often helpful to make it clear.

For some tips on reporting issues please see:

https://moqui.org/m/docs/moqui/Issue+and+Pull+Request+Guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants