|
@@ -3114,7 +3114,7 @@ public class FxController extends BaseController {
|
|
}else if("endSignTime".equals(key)){
|
|
}else if("endSignTime".equals(key)){
|
|
map.put("endSignTimeStr",DateHelper.format(obj.getEndSignTime(), "yyyy-MM-dd"));
|
|
map.put("endSignTimeStr",DateHelper.format(obj.getEndSignTime(), "yyyy-MM-dd"));
|
|
}else if("contractTime".equals(key)){
|
|
}else if("contractTime".equals(key)){
|
|
- map.put("contractTimeStr",DateHelper.format(obj.getComputeTime(), "yyyy-MM-dd"));
|
|
|
|
|
|
+ map.put("contractTimeStr",DateHelper.format(obj.getContractTime(), "yyyy-MM-dd"));
|
|
}else if("nextSummaryTime".equals(key)){
|
|
}else if("nextSummaryTime".equals(key)){
|
|
map.put(key,DateHelper.format(obj.getNextSummaryTime(), "yyyy-MM-dd"));
|
|
map.put(key,DateHelper.format(obj.getNextSummaryTime(), "yyyy-MM-dd"));
|
|
}else {
|
|
}else {
|
|
@@ -3431,7 +3431,7 @@ public class FxController extends BaseController {
|
|
}else if("endSignTime".equals(key)){
|
|
}else if("endSignTime".equals(key)){
|
|
map.put(key,DateHelper.format(obj.getEndSignTime(), "yyyy-MM-dd"));
|
|
map.put(key,DateHelper.format(obj.getEndSignTime(), "yyyy-MM-dd"));
|
|
}else if("contractTime".equals(key)){
|
|
}else if("contractTime".equals(key)){
|
|
- map.put("contractTimeStr",DateHelper.format(obj.getComputeTime(), "yyyy-MM-dd"));
|
|
|
|
|
|
+ map.put("contractTimeStr",DateHelper.format(obj.getContractTime(), "yyyy-MM-dd"));
|
|
}else if("nextSummaryTime".equals(key)){
|
|
}else if("nextSummaryTime".equals(key)){
|
|
map.put(key,DateHelper.format(obj.getNextSummaryTime(), "yyyy-MM-dd"));
|
|
map.put(key,DateHelper.format(obj.getNextSummaryTime(), "yyyy-MM-dd"));
|
|
}else {
|
|
}else {
|
|
@@ -3789,14 +3789,14 @@ public class FxController extends BaseController {
|
|
map.put("pr_1","");
|
|
map.put("pr_1","");
|
|
map.put("pr_2","");
|
|
map.put("pr_2","");
|
|
map.put("pr_3",map.get("price"));
|
|
map.put("pr_3",map.get("price"));
|
|
- }else if(Integer.parseInt(map.get("cap_type").toString())==5) {
|
|
|
|
- map.put("pr_1", new BigDecimal(new BigDecimal(map.get("unit_price").toString()).doubleValue()*(Integer.parseInt(map.get("buy_month").toString()))/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
- map.put("pr_2", new BigDecimal(new BigDecimal(map.get("unit_price").toString()).doubleValue()*(Integer.parseInt(map.get("buy_month").toString()))).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
|
|
+ }else if(Integer.parseInt(map.get("cap_type").toString())==5) {
|
|
|
|
+ map.put("pr_1", new BigDecimal(new BigDecimal(map.get("price").toString()).doubleValue()*(Integer.parseInt(map.get("buy_month").toString()))/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
+ map.put("pr_2", map.get("price"));
|
|
map.put("pr_3","");
|
|
map.put("pr_3","");
|
|
}else if(Integer.parseInt(map.get("cap_type").toString())==6) {
|
|
}else if(Integer.parseInt(map.get("cap_type").toString())==6) {
|
|
- map.put("pr_1", new BigDecimal(new BigDecimal(map.get("unit_price").toString()).doubleValue()/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
|
|
+ map.put("pr_1", new BigDecimal(new BigDecimal(map.get("price").toString()).doubleValue()/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
map.put("pr_2","");
|
|
map.put("pr_2","");
|
|
- map.put("pr_3",map.get("unit_price"));
|
|
|
|
|
|
+ map.put("pr_3",new BigDecimal(new BigDecimal(map.get("price").toString()).doubleValue()/(Integer.parseInt(map.get("buy_month").toString()))).setScale(2, RoundingMode.UP).doubleValue());
|
|
}
|
|
}
|
|
String remarks="";
|
|
String remarks="";
|
|
String type="";
|
|
String type="";
|
|
@@ -4861,14 +4861,14 @@ public class FxController extends BaseController {
|
|
map.put("pr_1","");
|
|
map.put("pr_1","");
|
|
map.put("pr_2","");
|
|
map.put("pr_2","");
|
|
map.put("pr_3",map.get("price"));
|
|
map.put("pr_3",map.get("price"));
|
|
- }else if(Integer.parseInt(map.get("cap_type").toString())==5) {
|
|
|
|
- map.put("pr_1", new BigDecimal(new BigDecimal(map.get("unit_price").toString()).doubleValue()*(Integer.parseInt(map.get("buy_month").toString()))/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
- map.put("pr_2", new BigDecimal(new BigDecimal(map.get("unit_price").toString()).doubleValue()*(Integer.parseInt(map.get("buy_month").toString()))).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
|
|
+ }else if(Integer.parseInt(map.get("cap_type").toString())==5) {
|
|
|
|
+ map.put("pr_1", new BigDecimal(new BigDecimal(map.get("price").toString()).doubleValue()*(Integer.parseInt(map.get("buy_month").toString()))/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
+ map.put("pr_2", map.get("price"));
|
|
map.put("pr_3","");
|
|
map.put("pr_3","");
|
|
}else if(Integer.parseInt(map.get("cap_type").toString())==6) {
|
|
}else if(Integer.parseInt(map.get("cap_type").toString())==6) {
|
|
- map.put("pr_1", new BigDecimal(new BigDecimal(map.get("unit_price").toString()).doubleValue()/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
|
|
|
|
+ map.put("pr_1", new BigDecimal(new BigDecimal(map.get("price").toString()).doubleValue()/Integer.parseInt(map.get("lib_service").toString())).setScale(2, RoundingMode.UP).doubleValue());
|
|
map.put("pr_2","");
|
|
map.put("pr_2","");
|
|
- map.put("pr_3",map.get("unit_price"));
|
|
|
|
|
|
+ map.put("pr_3",new BigDecimal(new BigDecimal(map.get("price").toString()).doubleValue()/(Integer.parseInt(map.get("buy_month").toString()))).setScale(2, RoundingMode.UP).doubleValue());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
model.addAttribute("list", mapList);
|
|
model.addAttribute("list", mapList);
|