| | |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | BigDecimal tmpMoney = new BigDecimal(money); |
| | | BigDecimal feePrice = null; |
| | | for (int feeIndex = 0; feeIndex < fees.size(); feeIndex++) { |
| | | feePrice = new BigDecimal(fees.getJSONObject(feeIndex).getDouble("feePrice")); |
| | | feePrice = new BigDecimal(fees.getJSONObject(feeIndex).getDouble("feeTotalPrice")); |
| | | tmpMoney = tmpMoney.add(feePrice); |
| | | } |
| | | money = tmpMoney.setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue(); |