|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.wms.controller; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.alibaba.fastjson.JSONArray; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 
|---|
|  |  |  | import com.zy.asrs.common.domain.entity.StaDesc; | 
|---|
|  |  |  | 
|---|
|  |  |  | wrapper.ge(StaDesc::getAppeTime, DateUtils.convert(range[0])); | 
|---|
|  |  |  | wrapper.le(StaDesc::getAppeTime, DateUtils.convert(range[1])); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!Cools.isEmpty(param.get("device_no"))) { | 
|---|
|  |  |  | wrapper.eq(StaDesc::getDeviceNo, param.get("device_no")); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!Cools.isEmpty(param.get("device_stn"))) { | 
|---|
|  |  |  | wrapper.eq(StaDesc::getDeviceStn, param.get("device_stn")); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return R.ok(staDescService.page(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/staDesc/delete/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | public R delete(@RequestParam(value="ids[]") Long[] ids){ | 
|---|
|  |  |  | for (Long id : ids){ | 
|---|
|  |  |  | staDescService.removeById(id); | 
|---|
|  |  |  | @ManagerAuth(memo = "站点路径删除") | 
|---|
|  |  |  | public R delete(@RequestParam String param){ | 
|---|
|  |  |  | List<StaDesc> list = JSONArray.parseArray(param, StaDesc.class); | 
|---|
|  |  |  | if (Cools.isEmpty(list)){ | 
|---|
|  |  |  | return R.error(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for (StaDesc entity : list){ | 
|---|
|  |  |  | staDescService.remove(new LambdaQueryWrapper<>(entity)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|