| | |
| | | import com.zy.asrs.common.wms.entity.BasDevp; |
| | | import com.zy.asrs.common.wms.service.BasDevpService; |
| | | import com.zy.asrs.framework.annotations.ManagerAuth; |
| | | import com.zy.asrs.framework.common.BaseRes; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.framework.common.R; |
| | | import com.zy.asrs.framework.domain.KeyValueVo; |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basDevp/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | basDevpService.removeById(id); |
| | | @ManagerAuth(memo = "站点删除") |
| | | public R delete(@RequestParam String param){ |
| | | List<BasDevp> list = JSONArray.parseArray(param, BasDevp.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | } |
| | | for (BasDevp entity : list){ |
| | | basDevpService.remove(new LambdaQueryWrapper<>(entity).eq(BasDevp::getHostId, getHostId())); |
| | | } |
| | | return R.ok(); |
| | | } |
| | |
| | | return R.ok().add(vos); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basDevp/check/column/auth") |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | LambdaQueryWrapper<BasDevp> wrapper = new LambdaQueryWrapper<BasDevp>().eq(BasDevp::getDevNo, param.get("val")); |
| | | if (null != basDevpService.getOne(wrapper)){ |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasDevp.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |