| | |
| | | @Slf4j |
| | | public class LedWebsocket { |
| | | |
| | | private static final String[] WEEK = {"response.week_sun","response.week_mon","response.week_tue","response.week_wed","response.week_thu","response.week_fri","response.week_sat"}; |
| | | private static final String[] WEEK = {"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"}; |
| | | |
| | | @Autowired |
| | | private ReportQueryMapper reportQueryMapper; |
| | |
| | | LocChartPie locUseRate = reportQueryMapper.getLocUseRate(); |
| | | if(locUseRate!=null) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("name", "response.loc_in_store"); |
| | | map.put("name", "In Stock Location"); |
| | | map.put("value", locUseRate.getFqty()); |
| | | pie.add(map); |
| | | |
| | | Map<String, Object> map1 = new HashMap<>(); |
| | | map1.put("name", "response.loc_empty"); |
| | | map1.put("name", "Empty Location"); |
| | | map1.put("value", locUseRate.getOqty()); |
| | | pie.add(map1); |
| | | |
| | | Map<String, Object> map2 = new HashMap<>(); |
| | | map2.put("name", "response.loc_used"); |
| | | map2.put("name", "Used Location"); |
| | | map2.put("value", locUseRate.getUqty()); |
| | | pie.add(map2); |
| | | |
| | | Map<String, Object> map3 = new HashMap<>(); |
| | | map3.put("name", "response.loc_disabled"); |
| | | map3.put("name", "Disabled Location"); |
| | | map3.put("value", locUseRate.getXqty()); |
| | | pie.add(map3); |
| | | } |
| | |
| | | } |
| | | } |
| | | AxisBean inqty = new AxisBean(); |
| | | inqty.setName("response.in_qty"); |
| | | inqty.setName("Inbound Qty"); |
| | | Integer[] array1 = new Integer[data1.size()]; |
| | | inqty.setData(data1.toArray(array1)); |
| | | list.add(inqty); |
| | | AxisBean outqty = new AxisBean(); |
| | | outqty.setName("response.out_qty"); |
| | | outqty.setName("Outbound Qty"); |
| | | Integer[] array2 = new Integer[data2.size()]; |
| | | outqty.setData(data2.toArray(array2)); |
| | | list.add(outqty); |
| | |
| | | return; |
| | | } |
| | | if (basDevp.getDevMk().equals("O")){ |
| | | basDevp = basDevpService.selectOne(new EntityWrapper<BasDevp>().eq("dev_no", 1001)); |
| | | basDevp = basDevpService.selectOne(new EntityWrapper<BasDevp>().eq("dev_no", 100)); |
| | | } |
| | | |
| | | |