|
|
|
@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
@ -137,7 +138,8 @@ public class SouthWareHouseController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/getStoreInfo")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getStoreInfo(){
|
|
|
|
|
public String getStoreInfo() throws ParseException {
|
|
|
|
|
SimpleDateFormat today = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
|
|
|
|
|
RecordTask recordTaskInfo;
|
|
|
|
|
Map<String,Object> params = new HashMap<>();
|
|
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
|
@ -162,23 +164,24 @@ public class SouthWareHouseController {
|
|
|
|
|
southWare.setUseStoreCount(baseLocationInfoList.size());
|
|
|
|
|
southWare.setFreeStoreCount(312-baseLocationInfoList.size());
|
|
|
|
|
|
|
|
|
|
params.put("beginRecordTime",calendar.getTime());
|
|
|
|
|
//params.put("beginRecordTime",calendar.getTime());
|
|
|
|
|
params.put("beginRecordTime",today.parse(today.format(new Date())));
|
|
|
|
|
params.put("endRecordTime",new Date());
|
|
|
|
|
|
|
|
|
|
recordTaskInfo = new RecordTask("A","1",1L,new Date());
|
|
|
|
|
recordTaskInfo = new RecordTask("B","1",1L,new Date());
|
|
|
|
|
recordTaskInfo.setParams(params);
|
|
|
|
|
|
|
|
|
|
List<RecordTask> recordLeftInStore = recordTaskService.selectRecordTaskList(recordTaskInfo);
|
|
|
|
|
|
|
|
|
|
recordTaskInfo = new RecordTask("A","1",2L,new Date());
|
|
|
|
|
recordTaskInfo = new RecordTask("B","1",2L,new Date());
|
|
|
|
|
recordTaskInfo.setParams(params);
|
|
|
|
|
List<RecordTask> recordLeftOutStore = recordTaskService.selectRecordTaskList(recordTaskInfo);
|
|
|
|
|
|
|
|
|
|
recordTaskInfo = new RecordTask("A","2",1L,new Date());
|
|
|
|
|
recordTaskInfo = new RecordTask("B","2",1L,new Date());
|
|
|
|
|
recordTaskInfo.setParams(params);
|
|
|
|
|
List<RecordTask> recordRightInStore = recordTaskService.selectRecordTaskList(recordTaskInfo);
|
|
|
|
|
|
|
|
|
|
recordTaskInfo = new RecordTask("A","2",2L,new Date());
|
|
|
|
|
recordTaskInfo = new RecordTask("B","2",2L,new Date());
|
|
|
|
|
recordTaskInfo.setParams(params);
|
|
|
|
|
List<RecordTask> recordRightOutStore = recordTaskService.selectRecordTaskList(recordTaskInfo);
|
|
|
|
|
|
|
|
|
|