修改针对罚息负数的处理
This commit is contained in:
parent
cae3871e50
commit
ca074e4858
@ -74,7 +74,8 @@ public class RentCommServiceImp extends BaseTable implements RentCommService{
|
||||
riRelative.setAttributeValue("RENT", "-"+riRelative.getAttribute("RENT").toString());
|
||||
riRelative.setAttributeValue("CORPUS", "-"+riRelative.getAttribute("CORPUS").toString());
|
||||
riRelative.setAttributeValue("INTEREST", "-"+riRelative.getAttribute("INTEREST").toString());
|
||||
riRelative.setAttributeValue("PENALTY", "-"+riRelative.getAttribute("PENALTY").toString());
|
||||
String penalty = riRelative.getAttribute("PENALTY").toString();
|
||||
riRelative.setAttributeValue("PENALTY", penalty.startsWith("-") ? penalty.replace("-","") : ("-" + penalty));
|
||||
riRelative.setAttributeValue("CORPUS_ADJUST", "-"+riRelative.getAttribute("CORPUS_ADJUST").toString());
|
||||
riRelative.setAttributeValue("INTEREST_ADJUST", "-"+riRelative.getAttribute("INTEREST_ADJUST").toString());
|
||||
riRelative.setAttributeValue("PENALTY_ADJUST", "-"+riRelative.getAttribute("PENALTY_ADJUST").toString());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user