!67 首页获取前6个月日期代码调整

Merge pull request !67 from manager/master
This commit is contained in:
季圣华
2020-10-25 22:22:51 +08:00
committed by Gitee
2 changed files with 22 additions and 4 deletions

View File

@@ -704,10 +704,7 @@ public class DepotItemController {
Map<String, Object> map = new HashMap<String, Object>();
String message = "成功";
try {
Date date = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM");
String dateString = formatter.format(date);
List<String> list = Tools.getSixMonth(dateString);
List<String> list = Tools.getLastMonths(6);
map.put("monthList", list);
List<BigDecimal> buyPriceList = new ArrayList<BigDecimal>();
for(String month: list) {