|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.bosshand.virgo.api.dao.*;
|
|
import com.bosshand.virgo.api.dao.*;
|
|
import com.bosshand.virgo.api.model.*;
|
|
import com.bosshand.virgo.api.model.*;
|
|
|
|
+import com.bosshand.virgo.core.utils.StringUtil;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -76,13 +77,13 @@ public class PaymentService {
|
|
json.put("earnestMoneyType", clause.getEarnestMoneyType());
|
|
json.put("earnestMoneyType", clause.getEarnestMoneyType());
|
|
json.put("earnestMoney", clause.getEarnestMoney());
|
|
json.put("earnestMoney", clause.getEarnestMoney());
|
|
earnestMoneyArray.add(json);
|
|
earnestMoneyArray.add(json);
|
|
- BigDecimal bigDecimal = new BigDecimal(clause.getEarnestMoney());
|
|
|
|
|
|
+ BigDecimal bigDecimal = new BigDecimal(StringUtil.blank(clause.getEarnestMoney()) ? "0" : clause.getEarnestMoney());
|
|
earnestMoney = earnestMoney.add(bigDecimal);
|
|
earnestMoney = earnestMoney.add(bigDecimal);
|
|
} else {
|
|
} else {
|
|
json.put("earnestMoneyType", clause.getEarnestMoneyType());
|
|
json.put("earnestMoneyType", clause.getEarnestMoneyType());
|
|
json.put("earnestMoney", clause.getEarnestMoney());
|
|
json.put("earnestMoney", clause.getEarnestMoney());
|
|
earnestMoneyArray.add(json);
|
|
earnestMoneyArray.add(json);
|
|
- earnestMoney = new BigDecimal(clause.getEarnestMoney());
|
|
|
|
|
|
+ earnestMoney = new BigDecimal(StringUtil.blank(clause.getEarnestMoney()) ? "0" : clause.getEarnestMoney());
|
|
a = a + 1;
|
|
a = a + 1;
|
|
}
|
|
}
|
|
}
|
|
}
|