监测平台系统bug优化处理
parent
f35d45a3a1
commit
441b390210
@ -0,0 +1,25 @@
|
|||||||
|
package com.ruoyi.business.controller;
|
||||||
|
|
||||||
|
import com.ruoyi.business.domain.HwOfflineRule;
|
||||||
|
import com.ruoyi.business.service.HwOfflineRuleService;
|
||||||
|
import com.ruoyi.common.core.web.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/offlineRule")
|
||||||
|
public class HwOfflineRuleController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private HwOfflineRuleService hwOfflineRuleService;
|
||||||
|
|
||||||
|
@GetMapping("list")
|
||||||
|
public TableDataInfo list(HwOfflineRule hwOfflineRule){
|
||||||
|
startPage();
|
||||||
|
List<HwOfflineRule> hwOfflineRules = hwOfflineRuleService.selectRuleList(hwOfflineRule);
|
||||||
|
return getDataTable(hwOfflineRules);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.ruoyi.business.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.business.domain.HwOfflineRule;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface HwOfflineRuleMapper {
|
||||||
|
|
||||||
|
List<HwOfflineRule> selectHwOfflineRuleJoinList(HwOfflineRule hwOfflineRule);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.ruoyi.business.service;
|
||||||
|
|
||||||
|
import com.ruoyi.business.domain.HwOfflineRule;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface HwOfflineRuleService {
|
||||||
|
List<HwOfflineRule> selectRuleList(HwOfflineRule hwOfflineRule);
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.ruoyi.business.service.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.business.domain.HwOfflineRule;
|
||||||
|
import com.ruoyi.business.mapper.HwOfflineRuleMapper;
|
||||||
|
import com.ruoyi.business.service.HwOfflineRuleService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
@Service
|
||||||
|
public class HwOfflineRuleServiceImpl implements HwOfflineRuleService {
|
||||||
|
@Autowired
|
||||||
|
private HwOfflineRuleMapper hwOfflineRuleMapper;
|
||||||
|
@Override
|
||||||
|
public List<HwOfflineRule> selectRuleList(HwOfflineRule hwOfflineRule) {
|
||||||
|
List<HwOfflineRule> hwOfflineRules = hwOfflineRuleMapper.selectHwOfflineRuleJoinList(hwOfflineRule);
|
||||||
|
return hwOfflineRules;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue