| | |
| | | } |
| | | |
| | | private R updateAll(String param,String locSts){ |
| | | List<LocMast> list = JSONArray.parseArray(param, LocMast.class); |
| | | if (Cools.isEmpty(list)){ |
| | | List<LocMast> locMasts = JSONArray.parseArray(param, LocMast.class); |
| | | if (Cools.isEmpty(locMasts)){ |
| | | return R.error(); |
| | | } |
| | | int locType2=99; |
| | | for (LocMast locMast : list){ |
| | | if (!locMast.getLocSts().equals(locSts)){ |
| | | for (LocMast locMast : locMasts){ |
| | | if (Cools.isEmpty(locMast.getLocType2()) || locMast.getLocType2() == 0){ |
| | | return R.error("请选择测试库位"); |
| | | }else if (!locMast.getLocSts().equals(locSts)){ |
| | | if (locSts.equals("O")){ |
| | | return R.error("此设备下有库位非空,库位号:"+locMast.getLocNo()+"\t请查看库位"); |
| | | }else if (locSts.equals("X")){ |
| | |
| | | }else if (locSts.equals("X")){ |
| | | locSts="O"; |
| | | } |
| | | for (LocMast locMast : list){ |
| | | for (LocMast locMast : locMasts){ |
| | | if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ |
| | | return R.error("库位号为空:"+locMast); |
| | | } |