| | |
| | | import com.zy.asrs.wms.asrs.service.MatService; |
| | | import com.zy.asrs.wms.asrs.service.TaskDetlLogService; |
| | | import com.zy.asrs.wms.asrs.service.TaskLogService; |
| | | import com.zy.asrs.wms.common.annotation.CacheData; |
| | | import com.zy.asrs.wms.system.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | private MatService matService; |
| | | |
| | | @PostMapping("/charts/loc/use") |
| | | @CacheData(tableName = {"man_loc"}) |
| | | public R locUse(){ |
| | | List<EChartPieBean> list = new ArrayList<>(); |
| | | |
| | |
| | | } |
| | | |
| | | @PostMapping("/charts/loc/line") |
| | | @CacheData(tableName = {"man_task_log"}) |
| | | public R locIoLineCharts(){ |
| | | SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | Calendar calendar = Calendar.getInstance(); |
| | |
| | | } |
| | | |
| | | @PostMapping("/charts/information") |
| | | @CacheData(tableName = {"man_mat", "man_task", "man_task_log"}) |
| | | public R information() { |
| | | HashMap<String, Object> data = new HashMap<>(); |
| | | long matCount = matService.count(); |
| | |
| | | |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
| | | ViewInOut viewInOut = viewInOutMapper.selectOne(new LambdaQueryWrapper<ViewInOut>().eq(ViewInOut::getYmd, format.format(new Date())).orderByDesc(ViewInOut::getYmd).last("limit 0,1")); |
| | | if(viewInOut != null) { |
| | | if (viewInOut != null) { |
| | | inQty = viewInOut.getInQty(); |
| | | outQty = viewInOut.getOutQty(); |
| | | totalQty = viewInOut.getTotalQty(); |
| | |
| | | } |
| | | |
| | | @PostMapping("/charts/information/top") |
| | | @CacheData(tableName = {"man_task_detl_log"}) |
| | | public R informationTop() { |
| | | List<InformationTop> topIn = taskDetlLogService.getInformationTopIn(10); |
| | | List<InformationTop> topOut = taskDetlLogService.getInformationTopOut(10); |