| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Arith; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.domain.dto.AxisBean; |
| | | import com.zy.asrs.domain.dto.LocChartPie; |
| | |
| | | List<WrkMast> wrkMastList2 = null; |
| | | switch (ledId) { |
| | | case 1: |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1014, 1022, 1025)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1013, 1021, 1024)); |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1012)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1011)); |
| | | break; |
| | | case 2: |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1012, 1022, 1025)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1011, 1021, 1024)); |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1014)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1013)); |
| | | break; |
| | | case 3: |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1012, 1014, 1025)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1011, 1013, 1024)); |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1022)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1021)); |
| | | break; |
| | | case 4: |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1012, 1014, 1022)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1011, 1013, 1021)); |
| | | wrkMastList1 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("source_sta_no", 1025)); |
| | | wrkMastList2 = wrkMastService.selectList(new EntityWrapper<WrkMast>().in("sta_no", 1024)); |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | for (WrkMast wrkMast : wrkMastList1) { |
| | | set.add(wrkMast.getSourceStaNo()); |
| | | } |
| | | return R.ok().add(set.toString() + msg); |
| | | |
| | | return R.ok().add(set.toString() + msg + DateUtils.convert(new Date(), DateUtils.yyyyMMddHHmmss_F)); |
| | | } |
| | | if (!Cools.isEmpty(wrkMastList2)) { |
| | | String msg = "站点在出库;"; |
| | | Set<Integer> set = new HashSet<>(); |
| | | for (WrkMast wrkMast : wrkMastList2) { |
| | | set.add(wrkMast.getSourceStaNo()); |
| | | set.add(wrkMast.getStaNo()); |
| | | } |
| | | return R.ok().add(set.toString() + msg); |
| | | return R.ok().add(set.toString() + msg + DateUtils.convert(new Date(), DateUtils.yyyyMMddHHmmss_F)); |
| | | } |
| | | return R.ok(); |
| | | } |