|
|
|
@ -45,6 +45,8 @@ import java.io.FileNotFoundException;
|
|
|
|
|
import java.io.FileOutputStream;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import jnpf.util.GeneraterSwapUtil;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
import jnpf.util.file.UploadUtil;
|
|
|
|
@ -166,30 +168,27 @@ public class PoundlistController {
|
|
|
|
|
poundlistListVO.setPrice(poundlistListVO.getPurchasePrice());
|
|
|
|
|
poundlistListVO.setRate("0");
|
|
|
|
|
poundlistListVO.setPountType(poundlistListVO.getPoundType());
|
|
|
|
|
poundlistListVO.setAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSettlement()) * Double.parseDouble(poundlistListVO.getPrice())));
|
|
|
|
|
poundlistListVO.setNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getAmount()) * 0.87));
|
|
|
|
|
poundlistListVO.setSaleAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSettlement()) * Double.parseDouble(poundlistListVO.getSalesPrice())));
|
|
|
|
|
poundlistListVO.setAmount(new BigDecimal(poundlistListVO.getSettlement()).multiply(new BigDecimal(poundlistListVO.getPrice())).toString());
|
|
|
|
|
poundlistListVO.setNotAmount(new BigDecimal(poundlistListVO.getAmount()).multiply(new BigDecimal("0.87")).toString());
|
|
|
|
|
poundlistListVO.setSaleAmount(new BigDecimal(poundlistListVO.getSettlement()).multiply(new BigDecimal(poundlistListVO.getSalesPrice())).toString());
|
|
|
|
|
switch (poundlistListVO.getSaleRate()) {
|
|
|
|
|
case "0":
|
|
|
|
|
poundlistListVO.setSaleNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSaleAmount()) * 0.87));
|
|
|
|
|
break;
|
|
|
|
|
case "1":
|
|
|
|
|
poundlistListVO.setSaleNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSaleAmount()) * 0.91));
|
|
|
|
|
poundlistListVO.setSaleNotAmount(new BigDecimal(poundlistListVO.getSaleAmount()).multiply(new BigDecimal("0.91")).toString());
|
|
|
|
|
break;
|
|
|
|
|
case "2":
|
|
|
|
|
poundlistListVO.setSaleNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSaleAmount()) * 0.94));
|
|
|
|
|
poundlistListVO.setSaleNotAmount(new BigDecimal(poundlistListVO.getSaleAmount()).multiply(new BigDecimal("0.94")).toString());
|
|
|
|
|
break;
|
|
|
|
|
case "3":
|
|
|
|
|
poundlistListVO.setSaleNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSaleAmount()) * 0.95));
|
|
|
|
|
poundlistListVO.setSaleNotAmount(new BigDecimal(poundlistListVO.getSaleAmount()).multiply(new BigDecimal("0.95")).toString());
|
|
|
|
|
break;
|
|
|
|
|
case "4":
|
|
|
|
|
poundlistListVO.setSaleNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSaleAmount()) * 0.97));
|
|
|
|
|
poundlistListVO.setSaleNotAmount(new BigDecimal(poundlistListVO.getSaleAmount()).multiply(new BigDecimal("0.97")).toString());
|
|
|
|
|
break;
|
|
|
|
|
case "5":
|
|
|
|
|
poundlistListVO.setSaleNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSaleAmount()) * 1));
|
|
|
|
|
poundlistListVO.setSaleNotAmount(new BigDecimal(poundlistListVO.getSaleAmount()).multiply(new BigDecimal("1")).toString());
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
poundlistListVO.setSaleNotAmount(String.valueOf(Double.parseDouble(poundlistListVO.getSaleAmount()) * 0.87));
|
|
|
|
|
poundlistListVO.setSaleNotAmount(new BigDecimal(poundlistListVO.getSaleAmount()).multiply(new BigDecimal("0.87")).toString());
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
poundlistListVO.setRateAmount(String.valueOf(Double.parseDouble(poundlistListVO.getAmount()) - Double.parseDouble(poundlistListVO.getNotAmount())));
|
|
|
|
|