|
|
@ -352,7 +352,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if ("0".equals(saleAllToThree)) { |
|
|
|
saleOfStockRatio = stock_total + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
} |
|
|
|
return saleOfStockRatio; |
|
|
@ -363,7 +363,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if (saleAllToThreeAll == 0) { |
|
|
|
saleOfStockRatioString = stock_totalAll + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
row4.add(saleOfStockRatioString); |
|
|
|
dailyReportAppVo.setRow4(row4); |
|
|
@ -616,7 +616,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if ("0".equals(dailyReportListVo.getSaleAllToThree())) { |
|
|
|
ratio = dailyReportListVo.getStock_subtotal() + ":1"; |
|
|
|
} else { |
|
|
|
ratio = new BigDecimal(dailyReportListVo.getStock_subtotal()).divide((new BigDecimal(dailyReportListVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
ratio = new BigDecimal(dailyReportListVo.getStock_subtotal()).divide((new BigDecimal(dailyReportListVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
} |
|
|
|
dailyReportListVo.setSaleOfStockRatio(ratio); |
|
|
@ -641,7 +641,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if ("0".equals(reportVo.getSaleAllToThree())) { |
|
|
|
ratio = reportVo.getStock_subtotal() + ":1"; |
|
|
|
} else { |
|
|
|
ratio = new BigDecimal(reportVo.getStock_subtotal()).divide((new BigDecimal(reportVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
ratio = new BigDecimal(reportVo.getStock_subtotal()).divide((new BigDecimal(reportVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
} |
|
|
|
reportVo.setSaleOfStockRatio(ratio); |
|
|
@ -692,7 +692,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if ("0".equals(saleAllToThree)) { |
|
|
|
saleOfStockRatio = stock_total + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
} |
|
|
|
return saleOfStockRatio; |
|
|
@ -703,7 +703,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if (saleAllToThreeAll == 0) { |
|
|
|
saleOfStockRatioString = stock_totalAll + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
row4.add(saleOfStockRatioString); |
|
|
|
dailyReportAppVo.setRow4(row4); |
|
|
@ -979,7 +979,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if ("0".equals(saleAllToThree)) { |
|
|
|
saleOfStockRatio = stock_total + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
} |
|
|
|
return saleOfStockRatio; |
|
|
@ -990,7 +990,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if (saleAllToThreeAll == 0) { |
|
|
|
saleOfStockRatioString = stock_totalAll + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
row4.add(saleOfStockRatioString); |
|
|
|
dailyReportAppVo.setRow4(row4); |
|
|
@ -1292,7 +1292,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if ("0".equals(saleAllToThree)) { |
|
|
|
saleOfStockRatio = stock_total + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatio = new BigDecimal(stock_total).divide((new BigDecimal(saleAllToThree).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
} |
|
|
|
return saleOfStockRatio; |
|
|
@ -1303,7 +1303,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da |
|
|
|
if (saleAllToThreeAll == 0) { |
|
|
|
saleOfStockRatioString = stock_totalAll + ":1"; |
|
|
|
} else { |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 2, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
saleOfStockRatioString = new BigDecimal(stock_totalAll).divide((new BigDecimal(saleAllToThreeAll).divide(new BigDecimal(3), 4, BigDecimal.ROUND_HALF_UP)), 0, BigDecimal.ROUND_HALF_UP).toString() + ":1"; |
|
|
|
} |
|
|
|
row4.add(saleOfStockRatioString); |
|
|
|
dailyReportAppVo.setRow4(row4); |
|
|
|