| | |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | |
| | | @RestController |
| | | @RequestMapping("/dry/dryOpcDevice") |
| | | @Slf4j |
| | | @ConditionalOnProperty(name = "kangaroohy.milo.enabled", havingValue = "true") |
| | | public class DryOpcDeviceController extends JeecgController<DryOpcDevice, IDryOpcDeviceService> { |
| | | @Autowired |
| | | private IDryOpcDeviceService dryOpcDeviceService; |
| | |
| | | @Autowired |
| | | private MiloService miloService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | | * |
| | |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 添加 |
| | | * |
| | |
| | | dryOpcDeviceService.save(dryOpcDevice); |
| | | return Result.OK("添加成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 编辑 |
| | | * |
| | |
| | | dryOpcDeviceService.updateById(dryOpcDevice); |
| | | return Result.OK("编辑成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id删除 |
| | | * |
| | |
| | | dryOpcDeviceService.removeById(id); |
| | | return Result.OK("删除成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | |
| | | this.dryOpcDeviceService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("批量删除成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id查询 |
| | | * |