moqui / moqui-framework

Use Moqui Framework to build enterprise applications based on Java. It includes tools for databases (relational, graph, document), local and web services, web and other UI with screens and forms, security, file/resource access, scripts, templates, l10n, caching, logging, search, rules, workflow, multi-instance, and integration.
http://www.moqui.org
Other
279 stars 199 forks source link

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

Open daiagou opened 1 year ago

daiagou commented 1 year ago

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 commented 1 year ago

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