parent
ca7fac100c
commit
857a826e93
@ -1,25 +0,0 @@
|
||||
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);
|
||||
}
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
package com.ruoyi.business.mapper;
|
||||
|
||||
import com.ruoyi.business.domain.HwOfflineRule;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HwOfflineRuleMapper {
|
||||
|
||||
List<HwOfflineRule> selectHwOfflineRuleJoinList(HwOfflineRule hwOfflineRule);
|
||||
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package com.ruoyi.business.service;
|
||||
|
||||
import com.ruoyi.business.domain.HwOfflineRule;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HwOfflineRuleService {
|
||||
List<HwOfflineRule> selectRuleList(HwOfflineRule hwOfflineRule);
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
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