69 lines
2.2 KiB
Plaintext
69 lines
2.2 KiB
Plaintext
|
|
package com.sercurityControl.decision.controller;
|
||
|
|
|
||
|
|
import com.securityControl.common.core.web.controller.BaseController;
|
||
|
|
import com.securityControl.common.core.web.domain.AjaxResult;
|
||
|
|
import com.securityControl.common.core.web.page.TableDataInfo;
|
||
|
|
import com.securityControl.common.log.annotation.Log;
|
||
|
|
import com.securityControl.common.log.enums.BusinessType;
|
||
|
|
import com.sercurityControl.decision.domain.qo.TeamChangeListQo;
|
||
|
|
import com.sercurityControl.decision.service.JjPlanService;
|
||
|
|
import io.swagger.annotations.Api;
|
||
|
|
import io.swagger.annotations.ApiOperation;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
import javax.annotation.Resource;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 计划模块控制层
|
||
|
|
*
|
||
|
|
* @author makejava
|
||
|
|
* @since 2022-12-06 14:31:54
|
||
|
|
*/
|
||
|
|
@RestController
|
||
|
|
@RequestMapping("/planManage")
|
||
|
|
@Api(tags = "计划管理预警")
|
||
|
|
public class JjPlanController extends BaseController{
|
||
|
|
|
||
|
|
@Resource
|
||
|
|
private JjPlanService planService;
|
||
|
|
|
||
|
|
|
||
|
|
@ApiOperation("查询计划管理班组告警")
|
||
|
|
@GetMapping("/getTeamNum")
|
||
|
|
@Log(title = "计划管理预警", businessType = BusinessType.QUERY, details = "查询计划管理班组告警")
|
||
|
|
public AjaxResult getTeamNum() {
|
||
|
|
return AjaxResult.success(planService.getTeamNum());
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 查询计划列表
|
||
|
|
*
|
||
|
|
* @param teamChangeListQo 筛选条件
|
||
|
|
* @return 查询结果
|
||
|
|
*/
|
||
|
|
@ApiOperation(value = "查询计划列表")
|
||
|
|
@GetMapping("/queryByPage")
|
||
|
|
@Log(title = "计划管理预警", businessType = BusinessType.QUERY, details = "查询计划列表")
|
||
|
|
public TableDataInfo queryByPage(TeamChangeListQo teamChangeListQo) {
|
||
|
|
startPage();
|
||
|
|
return getDataTable(planService.queryByPage(teamChangeListQo));
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
@ApiOperation("查询建管单位集合")
|
||
|
|
@GetMapping("/getBuildUnit")
|
||
|
|
@Log(title = "计划管理预警", businessType = BusinessType.QUERY, details = "查询建管单位集合")
|
||
|
|
public AjaxResult getBuildUnit() {
|
||
|
|
return AjaxResult.success(planService.getBuildUnit());
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|