rev:移除多余包

This commit is contained in:
ludj
2024-02-02 15:41:34 +08:00
parent 9f25ba7b59
commit a85c88139b
34 changed files with 28 additions and 192 deletions

View File

@@ -1,7 +1,5 @@
package org.nl.acs.address.rest; package org.nl.acs.address.rest;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.nl.acs.address.service.AddressService; import org.nl.acs.address.service.AddressService;
import org.nl.acs.address.service.dto.AddressDto; import org.nl.acs.address.service.dto.AddressDto;
@@ -29,14 +27,12 @@ public class AddressController {
@GetMapping @GetMapping
@Log("查询接口方法地址") @Log("查询接口方法地址")
public ResponseEntity<Object> query(@RequestParam Map whereJson, Pageable page) { public ResponseEntity<Object> query(@RequestParam Map whereJson, Pageable page) {
return new ResponseEntity<>(addressService.queryAll(whereJson, page), HttpStatus.OK); return new ResponseEntity<>(addressService.queryAll(whereJson, page), HttpStatus.OK);
} }
@PostMapping @PostMapping
@Log("新增接口方法地址") @Log("新增接口方法地址")
public ResponseEntity<Object> create(@Validated @RequestBody AddressDto dto) { public ResponseEntity<Object> create(@Validated @RequestBody AddressDto dto) {
addressService.create(dto); addressService.create(dto);
return new ResponseEntity<>(HttpStatus.CREATED); return new ResponseEntity<>(HttpStatus.CREATED);
@@ -44,14 +40,12 @@ public class AddressController {
@PutMapping @PutMapping
@Log("修改接口方法地址") @Log("修改接口方法地址")
public ResponseEntity<Object> update(@Validated @RequestBody AddressDto dto) { public ResponseEntity<Object> update(@Validated @RequestBody AddressDto dto) {
addressService.update(dto); addressService.update(dto);
return new ResponseEntity<>(HttpStatus.NO_CONTENT); return new ResponseEntity<>(HttpStatus.NO_CONTENT);
} }
@Log("删除接口方法地址") @Log("删除接口方法地址")
@DeleteMapping @DeleteMapping
public ResponseEntity<Object> delete(@RequestBody String[] ids) { public ResponseEntity<Object> delete(@RequestBody String[] ids) {
addressService.deleteAll(ids); addressService.deleteAll(ids);
@@ -59,7 +53,6 @@ public class AddressController {
} }
@Log("导出接口方法地址") @Log("导出接口方法地址")
@GetMapping(value = "/download") @GetMapping(value = "/download")
public void download(HttpServletResponse response, @RequestParam Map whereJson) throws IOException { public void download(HttpServletResponse response, @RequestParam Map whereJson) throws IOException {
addressService.download(addressService.queryAll(whereJson), response); addressService.download(addressService.queryAll(whereJson), response);

View File

@@ -1,17 +1,8 @@
package org.nl.acs.address.service.dto; package org.nl.acs.address.service.dto;
import lombok.AllArgsConstructor; import lombok.*;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;
/** /**
* @author jiaolm * @author jiaolm

View File

@@ -3,12 +3,6 @@ package org.nl.acs.address.service.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.List;
import java.util.Date;
import org.nl.common.annotation.Query;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @author jiaolm * @author jiaolm
* @date 2023-05-10 * @date 2023-05-10

View File

@@ -5,7 +5,6 @@
package org.nl.acs.common.base; package org.nl.acs.common.base;
import lombok.Data; import lombok.Data;
import org.springframework.stereotype.Component;
@Data @Data
public class CommonFinalParam { public class CommonFinalParam {

View File

@@ -1,7 +1,6 @@
package org.nl.acs.custompolicy; package org.nl.acs.custompolicy;
import org.nl.acs.auto.initial.ApplicationAutoInitial; import org.nl.acs.auto.initial.ApplicationAutoInitial;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@@ -5,12 +5,7 @@ import cn.hutool.core.util.StrUtil;
import org.nl.acs.instruction.domain.Instruction; import org.nl.acs.instruction.domain.Instruction;
import org.nl.acs.instruction.enums.InstructionStatusEnum; import org.nl.acs.instruction.enums.InstructionStatusEnum;
import org.nl.acs.instruction.service.InstructionService; import org.nl.acs.instruction.service.InstructionService;
import org.nl.acs.log.service.DeviceExecuteLogService;
import org.nl.acs.opc.ObjectUtl;
import org.nl.acs.route.service.RouteLineService;
import org.nl.acs.route.service.impl.RouteLineServiceImpl;
import org.nl.config.SpringContextHolder; import org.nl.config.SpringContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedList; import java.util.LinkedList;

View File

@@ -1,14 +1,10 @@
package org.nl.acs.custompolicy.domain; package org.nl.acs.custompolicy.domain;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*; import lombok.*;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;

View File

@@ -1,11 +1,8 @@
package org.nl.acs.custompolicy.rest; package org.nl.acs.custompolicy.rest;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.nl.acs.address.service.dto.AddressDto;
import org.nl.acs.agv.server.MagicAgvService;
import org.nl.acs.custompolicy.server.CustomPolicyService; import org.nl.acs.custompolicy.server.CustomPolicyService;
import org.nl.acs.custompolicy.server.dto.CustomPolicyDTO; import org.nl.acs.custompolicy.server.dto.CustomPolicyDTO;
import org.nl.acs.custompolicy.server.vo.CustomPolicyPlantVO; import org.nl.acs.custompolicy.server.vo.CustomPolicyPlantVO;
@@ -31,14 +28,12 @@ public class CustomPolicyController {
@GetMapping @GetMapping
@Log("查询自定义策略") @Log("查询自定义策略")
public ResponseEntity<Object> query(@RequestParam Map whereJson, Pageable page) { public ResponseEntity<Object> query(@RequestParam Map whereJson, Pageable page) {
return new ResponseEntity<>(customPolicyService.queryAll(whereJson, page), HttpStatus.OK); return new ResponseEntity<>(customPolicyService.queryAll(whereJson, page), HttpStatus.OK);
} }
@PostMapping @PostMapping
@Log("新增自定义策略基础信息") @Log("新增自定义策略基础信息")
public ResponseEntity<Object> create(@Validated @RequestBody CustomPolicyDTO dto) { public ResponseEntity<Object> create(@Validated @RequestBody CustomPolicyDTO dto) {
customPolicyService.create(dto); customPolicyService.create(dto);
return new ResponseEntity<>(HttpStatus.CREATED); return new ResponseEntity<>(HttpStatus.CREATED);
@@ -53,7 +48,6 @@ public class CustomPolicyController {
} }
@Log("删除自定义策略") @Log("删除自定义策略")
@DeleteMapping @DeleteMapping
public ResponseEntity<Object> delete(@RequestBody String[] ids) { public ResponseEntity<Object> delete(@RequestBody String[] ids) {
customPolicyService.deleteAll(ids); customPolicyService.deleteAll(ids);
@@ -63,7 +57,6 @@ public class CustomPolicyController {
@PostMapping("/plantAdd") @PostMapping("/plantAdd")
@Log("新增自定义策略") @Log("新增自定义策略")
public ResponseEntity<Object> createPlant(@RequestBody CustomPolicyPlantVO customPolicyPlantVO) { public ResponseEntity<Object> createPlant(@RequestBody CustomPolicyPlantVO customPolicyPlantVO) {
customPolicyService.createPlant(customPolicyPlantVO); customPolicyService.createPlant(customPolicyPlantVO);
return new ResponseEntity<>(HttpStatus.CREATED); return new ResponseEntity<>(HttpStatus.CREATED);
@@ -71,14 +64,12 @@ public class CustomPolicyController {
@GetMapping("/plantList") @GetMapping("/plantList")
@Log("自定义策略列表") @Log("自定义策略列表")
public ResponseEntity<Object> plantList(@RequestParam Long id) { public ResponseEntity<Object> plantList(@RequestParam Long id) {
return new ResponseEntity<>(customPolicyService.plantList(id), HttpStatus.OK); return new ResponseEntity<>(customPolicyService.plantList(id), HttpStatus.OK);
} }
@GetMapping("/updateOn") @GetMapping("/updateOn")
@Log("是否启用") @Log("是否启用")
public ResponseEntity<Object> updateOn(@RequestParam Long id, @RequestParam Integer is_on) { public ResponseEntity<Object> updateOn(@RequestParam Long id, @RequestParam Integer is_on) {
customPolicyService.updateOn(id, is_on); customPolicyService.updateOn(id, is_on);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);
@@ -87,7 +78,6 @@ public class CustomPolicyController {
@GetMapping("/getStrategy") @GetMapping("/getStrategy")
@Log("自定义策略列表") @Log("自定义策略列表")
public ResponseEntity<Object> updateOn() { public ResponseEntity<Object> updateOn() {
List<Map> list = customPolicyService.findDeviceStrategyOption(); List<Map> list = customPolicyService.findDeviceStrategyOption();
return new ResponseEntity<>(list, HttpStatus.OK); return new ResponseEntity<>(list, HttpStatus.OK);

View File

@@ -2,7 +2,6 @@ package org.nl.acs.custompolicy.server;
import org.nl.acs.common.base.CommonService; import org.nl.acs.common.base.CommonService;
import org.nl.acs.common.base.PageInfo; import org.nl.acs.common.base.PageInfo;
import org.nl.acs.custompolicy.DeviceStrategy;
import org.nl.acs.custompolicy.domain.CustomPolicy; import org.nl.acs.custompolicy.domain.CustomPolicy;
import org.nl.acs.custompolicy.server.dto.CustomPolicyDTO; import org.nl.acs.custompolicy.server.dto.CustomPolicyDTO;
import org.nl.acs.custompolicy.server.vo.CustomPolicyPlantVO; import org.nl.acs.custompolicy.server.vo.CustomPolicyPlantVO;

View File

@@ -8,7 +8,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import jodd.util.StringUtil; import jodd.util.StringUtil;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.nl.acs.auto.initial.ApplicationAutoInitial; import org.nl.acs.auto.initial.ApplicationAutoInitial;
import org.nl.acs.common.base.PageInfo; import org.nl.acs.common.base.PageInfo;
import org.nl.acs.common.base.impl.CommonServiceImpl; import org.nl.acs.common.base.impl.CommonServiceImpl;
@@ -19,7 +18,6 @@ import org.nl.acs.custompolicy.server.dto.CustomPolicyDTO;
import org.nl.acs.custompolicy.server.dto.CustomPolicyPlantDTO; import org.nl.acs.custompolicy.server.dto.CustomPolicyPlantDTO;
import org.nl.acs.custompolicy.server.mapper.CustomPolicyMapper; import org.nl.acs.custompolicy.server.mapper.CustomPolicyMapper;
import org.nl.acs.custompolicy.server.vo.CustomPolicyPlantVO; import org.nl.acs.custompolicy.server.vo.CustomPolicyPlantVO;
import org.nl.acs.task.TaskInstructionLock;
import org.nl.acs.utils.ConvertUtil; import org.nl.acs.utils.ConvertUtil;
import org.nl.acs.utils.PageUtil; import org.nl.acs.utils.PageUtil;
import org.nl.common.utils.SecurityUtils; import org.nl.common.utils.SecurityUtils;
@@ -173,7 +171,6 @@ public class CustomPolicyServiceImpl extends CommonServiceImpl<CustomPolicyMappe
map.put("name", strategy.getName()); map.put("name", strategy.getName());
strings.add(map); strings.add(map);
} }
return strings; return strings;
} }
} }

View File

@@ -1,10 +1,8 @@
package org.nl.acs.device.rest; package org.nl.acs.device.rest;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.nl.acs.device.service.DeviceAssignedService; import org.nl.acs.device.service.DeviceAssignedService;
import org.nl.acs.device.service.dto.DeviceAssignedDto;
import org.nl.acs.device.service.dto.DeviceAssignedQueryParam; import org.nl.acs.device.service.dto.DeviceAssignedQueryParam;
import org.nl.common.logging.annotation.Log; import org.nl.common.logging.annotation.Log;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;

View File

@@ -3,7 +3,6 @@ package org.nl.acs.device.rest;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.nl.acs.device.device_driver.DriverTypeEnum;
import org.nl.acs.device.service.DeviceService; import org.nl.acs.device.service.DeviceService;
import org.nl.acs.device.service.dto.DeviceDto; import org.nl.acs.device.service.dto.DeviceDto;
import org.nl.common.logging.annotation.Log; import org.nl.common.logging.annotation.Log;

View File

@@ -28,21 +28,18 @@ public class DeviceDbitemController {
@GetMapping @GetMapping
@Log("查询设备DB项") @Log("查询设备DB项")
public ResponseEntity query(DeviceDbitemQueryParam query, Pageable pageable) { public ResponseEntity query(DeviceDbitemQueryParam query, Pageable pageable) {
return new ResponseEntity<>(deviceDbitemService.queryAll(query, pageable), HttpStatus.OK); return new ResponseEntity<>(deviceDbitemService.queryAll(query, pageable), HttpStatus.OK);
} }
@PostMapping @PostMapping
@Log("新增设备DB项") @Log("新增设备DB项")
public ResponseEntity create(@Validated @RequestBody DeviceDbitemDto resources) { public ResponseEntity create(@Validated @RequestBody DeviceDbitemDto resources) {
return new ResponseEntity<>(deviceDbitemService.insert(resources), HttpStatus.CREATED); return new ResponseEntity<>(deviceDbitemService.insert(resources), HttpStatus.CREATED);
} }
@PutMapping @PutMapping
@Log("修改设备DB项") @Log("修改设备DB项")
public ResponseEntity update(@Validated @RequestBody DeviceDbitemDto resources) { public ResponseEntity update(@Validated @RequestBody DeviceDbitemDto resources) {
deviceDbitemService.updateById(resources); deviceDbitemService.updateById(resources);
return new ResponseEntity<>(HttpStatus.NO_CONTENT); return new ResponseEntity<>(HttpStatus.NO_CONTENT);
@@ -50,7 +47,6 @@ public class DeviceDbitemController {
@DeleteMapping @DeleteMapping
@Log("删除设备DB项") @Log("删除设备DB项")
public ResponseEntity delete(@RequestBody Set<String> ids) { public ResponseEntity delete(@RequestBody Set<String> ids) {
deviceDbitemService.removeByIds(ids); deviceDbitemService.removeByIds(ids);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);

View File

@@ -21,7 +21,6 @@ import java.util.Map;
**/ **/
@RestController @RestController
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/api/acsDeviceErpmapping") @RequestMapping("/api/acsDeviceErpmapping")
public class DeviceErpmappingController { public class DeviceErpmappingController {
@@ -30,14 +29,11 @@ public class DeviceErpmappingController {
@GetMapping @GetMapping
@Log("查询设备-ERP映射") @Log("查询设备-ERP映射")
public ResponseEntity<Object> query(@RequestParam Map whereJson, Pageable page) { public ResponseEntity<Object> query(@RequestParam Map whereJson, Pageable page) {
return new ResponseEntity<>(acsDeviceErpmappingService.queryAll(whereJson, page), HttpStatus.OK); return new ResponseEntity<>(acsDeviceErpmappingService.queryAll(whereJson, page), HttpStatus.OK);
} }
@PostMapping @PostMapping
@Log("新增设备-ERP映射") @Log("新增设备-ERP映射")
public ResponseEntity<Object> create(@Validated @RequestBody AcsDeviceErpmappingDto dto) { public ResponseEntity<Object> create(@Validated @RequestBody AcsDeviceErpmappingDto dto) {
acsDeviceErpmappingService.create(dto); acsDeviceErpmappingService.create(dto);
return new ResponseEntity<>(HttpStatus.CREATED); return new ResponseEntity<>(HttpStatus.CREATED);
@@ -45,22 +41,18 @@ public class DeviceErpmappingController {
@PutMapping @PutMapping
@Log("修改设备-ERP映射") @Log("修改设备-ERP映射")
public ResponseEntity<Object> update(@Validated @RequestBody AcsDeviceErpmappingDto dto) { public ResponseEntity<Object> update(@Validated @RequestBody AcsDeviceErpmappingDto dto) {
acsDeviceErpmappingService.update(dto); acsDeviceErpmappingService.update(dto);
return new ResponseEntity<>(HttpStatus.NO_CONTENT); return new ResponseEntity<>(HttpStatus.NO_CONTENT);
} }
@Log("删除设备-ERP映射") @Log("删除设备-ERP映射")
@DeleteMapping @DeleteMapping
public ResponseEntity<Object> delete(@RequestBody String[] ids) { public ResponseEntity<Object> delete(@RequestBody String[] ids) {
acsDeviceErpmappingService.deleteAll(ids); acsDeviceErpmappingService.deleteAll(ids);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);
} }
@Log("导出设备-ERP映射") @Log("导出设备-ERP映射")
@GetMapping(value = "/download") @GetMapping(value = "/download")
public void download(HttpServletResponse response, @RequestParam Map whereJson) throws IOException { public void download(HttpServletResponse response, @RequestParam Map whereJson) throws IOException {
acsDeviceErpmappingService.download(acsDeviceErpmappingService.queryAll(whereJson), response); acsDeviceErpmappingService.download(acsDeviceErpmappingService.queryAll(whereJson), response);

View File

@@ -36,14 +36,12 @@ public class DeviceExtraController {
@PostMapping @PostMapping
@Log("新增设备扩展") @Log("新增设备扩展")
public ResponseEntity create(@Validated @RequestBody DeviceExtraDto resources) { public ResponseEntity create(@Validated @RequestBody DeviceExtraDto resources) {
return new ResponseEntity<>(deviceExtraService.insert(resources), HttpStatus.CREATED); return new ResponseEntity<>(deviceExtraService.insert(resources), HttpStatus.CREATED);
} }
@PutMapping @PutMapping
@Log("修改设备扩展") @Log("修改设备扩展")
public ResponseEntity update(@Validated @RequestBody DeviceExtraDto resources) { public ResponseEntity update(@Validated @RequestBody DeviceExtraDto resources) {
deviceExtraService.updateById(resources); deviceExtraService.updateById(resources);
return new ResponseEntity<>(HttpStatus.NO_CONTENT); return new ResponseEntity<>(HttpStatus.NO_CONTENT);
@@ -51,7 +49,6 @@ public class DeviceExtraController {
@DeleteMapping @DeleteMapping
@Log("删除设备扩展") @Log("删除设备扩展")
public ResponseEntity delete(@RequestBody Set<String> ids) { public ResponseEntity delete(@RequestBody Set<String> ids) {
deviceExtraService.removeByIds(ids); deviceExtraService.removeByIds(ids);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);

View File

@@ -20,7 +20,6 @@ import java.util.Set;
**/ **/
@RestController @RestController
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/api/deviceRunpoint") @RequestMapping("/api/deviceRunpoint")
public class DeviceRunpointController { public class DeviceRunpointController {
@@ -28,21 +27,18 @@ public class DeviceRunpointController {
@GetMapping @GetMapping
@Log("查询设备点位") @Log("查询设备点位")
public ResponseEntity query(DeviceRunpointQueryParam query, Pageable pageable) { public ResponseEntity query(DeviceRunpointQueryParam query, Pageable pageable) {
return new ResponseEntity<>(deviceRunpointService.queryAll(query, pageable), HttpStatus.OK); return new ResponseEntity<>(deviceRunpointService.queryAll(query, pageable), HttpStatus.OK);
} }
@PostMapping @PostMapping
@Log("新增设备点位") @Log("新增设备点位")
public ResponseEntity create(@Validated @RequestBody DeviceRunpointDto resources) { public ResponseEntity create(@Validated @RequestBody DeviceRunpointDto resources) {
return new ResponseEntity<>(deviceRunpointService.insert(resources), HttpStatus.CREATED); return new ResponseEntity<>(deviceRunpointService.insert(resources), HttpStatus.CREATED);
} }
@PutMapping @PutMapping
@Log("修改设备点位") @Log("修改设备点位")
public ResponseEntity update(@Validated @RequestBody DeviceRunpointDto resources) { public ResponseEntity update(@Validated @RequestBody DeviceRunpointDto resources) {
deviceRunpointService.updateById(resources); deviceRunpointService.updateById(resources);
return new ResponseEntity<>(HttpStatus.NO_CONTENT); return new ResponseEntity<>(HttpStatus.NO_CONTENT);
@@ -50,7 +46,6 @@ public class DeviceRunpointController {
@DeleteMapping @DeleteMapping
@Log("删除设备点位") @Log("删除设备点位")
public ResponseEntity delete(@RequestBody Set<String> ids) { public ResponseEntity delete(@RequestBody Set<String> ids) {
deviceRunpointService.removeByIds(ids); deviceRunpointService.removeByIds(ids);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);

View File

@@ -10,8 +10,6 @@ import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.Set; import java.util.Set;
/** /**
@@ -20,7 +18,6 @@ import java.util.Set;
**/ **/
@RestController @RestController
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/api/deviceisonline") @RequestMapping("/api/deviceisonline")
public class DeviceisonlineController { public class DeviceisonlineController {
@@ -28,21 +25,18 @@ public class DeviceisonlineController {
@GetMapping @GetMapping
@Log("查询设备在线状态") @Log("查询设备在线状态")
public ResponseEntity query(DeviceisonlineQueryParam query, Pageable pageable) { public ResponseEntity query(DeviceisonlineQueryParam query, Pageable pageable) {
return new ResponseEntity<>(deviceisonlineService.queryAll(query, pageable), HttpStatus.OK); return new ResponseEntity<>(deviceisonlineService.queryAll(query, pageable), HttpStatus.OK);
} }
@PostMapping @PostMapping
@Log("新增设备在线状态") @Log("新增设备在线状态")
public ResponseEntity create(@Validated @RequestBody DeviceisonlineDto resources) { public ResponseEntity create(@Validated @RequestBody DeviceisonlineDto resources) {
return new ResponseEntity<>(deviceisonlineService.insert(resources), HttpStatus.CREATED); return new ResponseEntity<>(deviceisonlineService.insert(resources), HttpStatus.CREATED);
} }
@PutMapping @PutMapping
@Log("修改设备在线状态") @Log("修改设备在线状态")
public ResponseEntity update(@Validated @RequestBody DeviceisonlineDto resources) { public ResponseEntity update(@Validated @RequestBody DeviceisonlineDto resources) {
deviceisonlineService.updateById(resources); deviceisonlineService.updateById(resources);
return new ResponseEntity<>(HttpStatus.NO_CONTENT); return new ResponseEntity<>(HttpStatus.NO_CONTENT);
@@ -50,7 +44,6 @@ public class DeviceisonlineController {
@DeleteMapping @DeleteMapping
@Log("删除设备在线状态") @Log("删除设备在线状态")
public ResponseEntity delete(@RequestBody Set<String> ids) { public ResponseEntity delete(@RequestBody Set<String> ids) {
deviceisonlineService.removeByIds(ids); deviceisonlineService.removeByIds(ids);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);

View File

@@ -1,15 +1,8 @@
package org.nl.acs.device.service.dto; package org.nl.acs.device.service.dto;
import lombok.AllArgsConstructor; import lombok.*;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

View File

@@ -1,15 +1,8 @@
package org.nl.acs.device.service.dto; package org.nl.acs.device.service.dto;
import lombok.AllArgsConstructor; import lombok.*;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

View File

@@ -3,12 +3,6 @@ package org.nl.acs.device.service.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.List;
import java.util.Date;
import org.nl.common.annotation.Query;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @author jiaolm * @author jiaolm
* @date 2023-05-09 * @date 2023-05-09

View File

@@ -1,16 +1,9 @@
package org.nl.acs.device.service.dto; package org.nl.acs.device.service.dto;
import lombok.AllArgsConstructor; import lombok.*;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.math.BigDecimal;
import java.sql.Timestamp;

View File

@@ -2,13 +2,6 @@ package org.nl.acs.device.service.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.List;
import java.util.Date;
import org.nl.common.annotation.Query;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @author jiaolm * @author jiaolm
* @date 2023-05-09 * @date 2023-05-09

View File

@@ -3,7 +3,6 @@ package org.nl.acs.device.service.dto;
import lombok.*; import lombok.*;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;

View File

@@ -3,12 +3,6 @@ package org.nl.acs.device.service.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.List;
import java.util.Date;
import org.nl.common.annotation.Query;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @author jiaolm * @author jiaolm
* @date 2023-05-09 * @date 2023-05-09

View File

@@ -1,15 +1,9 @@
package org.nl.acs.device.service.dto; package org.nl.acs.device.service.dto;
import lombok.AllArgsConstructor; import lombok.*;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

View File

@@ -3,12 +3,6 @@ package org.nl.acs.device.service.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.List;
import java.util.Date;
import org.nl.common.annotation.Query;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @author jiaolm * @author jiaolm
* @date 2023-05-09 * @date 2023-05-09

View File

@@ -1,15 +1,8 @@
package org.nl.acs.device.service.dto; package org.nl.acs.device.service.dto;
import lombok.AllArgsConstructor; import lombok.*;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

View File

@@ -3,12 +3,6 @@ package org.nl.acs.device.service.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.List;
import java.util.Date;
import org.nl.common.annotation.Query;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @author jiaolm * @author jiaolm
* @date 2023-05-09 * @date 2023-05-09

View File

@@ -1,6 +1,5 @@
package org.nl.acs.device.service.impl; package org.nl.acs.device.service.impl;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@@ -9,26 +8,25 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.nl.acs.device.domain.Device;
import org.nl.acs.device.service.mapper.DeviceMapper;
import org.nl.acs.common.base.PageInfo; import org.nl.acs.common.base.PageInfo;
import org.nl.acs.common.base.QueryHelpMybatisPlus; import org.nl.acs.common.base.QueryHelpMybatisPlus;
import org.nl.acs.common.base.impl.CommonServiceImpl; import org.nl.acs.common.base.impl.CommonServiceImpl;
import org.nl.common.exception.BadRequestException; import org.nl.acs.device.domain.Device;
import org.nl.acs.utils.ConvertUtil;
import org.nl.common.utils.FileUtil;
import org.nl.acs.utils.PageUtil;
import org.nl.acs.device.domain.DeviceErpmapping; import org.nl.acs.device.domain.DeviceErpmapping;
import org.nl.acs.device.service.DeviceErpmappingService; import org.nl.acs.device.service.DeviceErpmappingService;
import org.nl.acs.device.service.dto.AcsDeviceErpmappingDto; import org.nl.acs.device.service.dto.AcsDeviceErpmappingDto;
import org.nl.acs.device.service.dto.DeviceErpmappingQueryParam; import org.nl.acs.device.service.dto.DeviceErpmappingQueryParam;
import org.nl.acs.device.service.mapper.DeviceErpmappingMapper; import org.nl.acs.device.service.mapper.DeviceErpmappingMapper;
import org.nl.common.utils.SecurityUtils; import org.nl.acs.device.service.mapper.DeviceMapper;
import org.nl.acs.utils.ConvertUtil;
import org.nl.acs.utils.PageUtil;
import org.nl.common.exception.BadRequestException;
import org.nl.common.utils.FileUtil;
import org.nl.config.language.LangProcess; import org.nl.config.language.LangProcess;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.data.domain.Pageable;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;

View File

@@ -3,25 +3,22 @@ package org.nl.acs.device.service.impl;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.nl.acs.device.domain.DeviceAssigned;
import org.nl.acs.device.domain.DeviceExtra;
import org.nl.acs.device.service.DeviceExtraService;
import org.nl.acs.device.service.dto.DeviceAssignedDto;
import org.nl.acs.device.service.dto.DeviceExtraDto;
import org.nl.acs.device.service.dto.DeviceExtraQueryParam;
import org.nl.acs.device.service.mapper.DeviceExtraMapper;
import org.nl.acs.common.base.PageInfo; import org.nl.acs.common.base.PageInfo;
import org.nl.acs.common.base.QueryHelpMybatisPlus; import org.nl.acs.common.base.QueryHelpMybatisPlus;
import org.nl.acs.common.base.impl.CommonServiceImpl; import org.nl.acs.common.base.impl.CommonServiceImpl;
import org.nl.common.exception.BadRequestException; import org.nl.acs.device.domain.DeviceExtra;
import org.nl.acs.device.service.DeviceExtraService;
import org.nl.acs.device.service.dto.DeviceExtraDto;
import org.nl.acs.device.service.dto.DeviceExtraQueryParam;
import org.nl.acs.device.service.mapper.DeviceExtraMapper;
import org.nl.acs.utils.ConvertUtil; import org.nl.acs.utils.ConvertUtil;
import org.nl.acs.utils.PageUtil; import org.nl.acs.utils.PageUtil;
import org.nl.common.exception.BadRequestException;
import org.nl.common.utils.SecurityUtils; import org.nl.common.utils.SecurityUtils;
import org.nl.config.language.LangProcess; import org.nl.config.language.LangProcess;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;

View File

@@ -32,10 +32,6 @@ import org.nl.acs.device_driver.two_conveyor.slit_two_manipulator.SlitTwoManipul
import org.nl.acs.monitor.DeviceStageMonitor; import org.nl.acs.monitor.DeviceStageMonitor;
import org.nl.acs.route.domain.RouteLine; import org.nl.acs.route.domain.RouteLine;
import org.nl.acs.route.service.mapper.RouteLineMapper; import org.nl.acs.route.service.mapper.RouteLineMapper;
//import org.nl.acs.stage.domain.Stage;
//import org.nl.acs.stage.domain.StageActor;
//import org.nl.acs.stage.service.mapper.StageActorMapper;
//import org.nl.acs.stage.service.mapper.StageMapper;
import org.nl.acs.storage_cell.domain.StorageCell; import org.nl.acs.storage_cell.domain.StorageCell;
import org.nl.acs.storage_cell.service.mapper.StorageCellMapper; import org.nl.acs.storage_cell.service.mapper.StorageCellMapper;
import org.nl.acs.utils.ConvertUtil; import org.nl.acs.utils.ConvertUtil;
@@ -84,10 +80,6 @@ import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
// 默认不使用缓存
//import org.springframework.cache.annotation.CacheConfig;
//import org.springframework.cache.annotation.CacheEvict;
//import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;

View File

@@ -5,8 +5,6 @@ import org.jinterop.dcom.common.JIException;
import org.nl.acs.auto.initial.ApplicationAutoInitial; import org.nl.acs.auto.initial.ApplicationAutoInitial;
import org.nl.acs.device_driver.driver.ItemValue; import org.nl.acs.device_driver.driver.ItemValue;
import org.nl.acs.opc.service.dto.OpcServerManageDto; import org.nl.acs.opc.service.dto.OpcServerManageDto;
import org.nl.common.exception.BadRequestException;
import org.openscada.opc.lib.common.NotConnectedException; import org.openscada.opc.lib.common.NotConnectedException;
import org.openscada.opc.lib.da.Group; import org.openscada.opc.lib.da.Group;
import org.openscada.opc.lib.da.Server; import org.openscada.opc.lib.da.Server;

View File

@@ -1,8 +1,7 @@
package org.nl.acs.plc.service; package org.nl.acs.plc.service;
import com.alibaba.fastjson.JSONArray;
import org.nl.acs.common.base.PageInfo;
import org.nl.acs.common.base.CommonService; import org.nl.acs.common.base.CommonService;
import org.nl.acs.common.base.PageInfo;
import org.nl.acs.opc.domain.OpcPlc; import org.nl.acs.opc.domain.OpcPlc;
import org.nl.acs.opc.service.dto.OpcPlcDto; import org.nl.acs.opc.service.dto.OpcPlcDto;
import org.nl.acs.opc.service.dto.OpcPlcQueryParam; import org.nl.acs.opc.service.dto.OpcPlcQueryParam;

View File

@@ -1,7 +1,5 @@
package org.nl.acs.plc.service.impl; package org.nl.acs.plc.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@@ -9,24 +7,21 @@ import org.nl.acs.common.base.CommonFinalParam;
import org.nl.acs.common.base.PageInfo; import org.nl.acs.common.base.PageInfo;
import org.nl.acs.common.base.QueryHelpMybatisPlus; import org.nl.acs.common.base.QueryHelpMybatisPlus;
import org.nl.acs.common.base.impl.CommonServiceImpl; import org.nl.acs.common.base.impl.CommonServiceImpl;
import org.nl.acs.utils.ConvertUtil;
import org.nl.acs.utils.PageUtil;
import org.nl.acs.opc.domain.OpcPlc; import org.nl.acs.opc.domain.OpcPlc;
import org.nl.acs.plc.service.OpcPlcService;
import org.nl.acs.opc.service.dto.OpcPlcDto; import org.nl.acs.opc.service.dto.OpcPlcDto;
import org.nl.acs.opc.service.dto.OpcPlcQueryParam; import org.nl.acs.opc.service.dto.OpcPlcQueryParam;
import org.nl.acs.opc.service.mapper.OpcPlcMapper; import org.nl.acs.opc.service.mapper.OpcPlcMapper;
import org.nl.system.service.logicflow.dao.StageImage; import org.nl.acs.plc.service.OpcPlcService;
import org.nl.acs.utils.ConvertUtil;
import org.nl.acs.utils.PageUtil;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
// 默认不使用缓存
//import org.springframework.cache.annotation.CacheConfig;
//import org.springframework.cache.annotation.CacheEvict;
//import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable;
import java.util.*; import java.util.HashSet;
import java.util.List;
import java.util.Set;
/** /**
* @author jiaolm * @author jiaolm