城阳车管所项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

85 lines
3.6 KiB

/**
* The MIT License (MIT)
* Copyright (c) 2012-present 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.mingsoft.cms.action.web;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import net.mingsoft.base.entity.ResultData;
import net.mingsoft.basic.bean.EUListBean;
import net.mingsoft.basic.util.BasicUtil;
import net.mingsoft.cms.action.BaseAction;
import net.mingsoft.cms.biz.IDutyStandbyBiz;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
/**
* 分类管理控制层
* @author 铭飞开发团队
* 创建日期:2019-11-28 15:12:32<br/>
* 历史修订:<br/>
*/
@Api(tags={"前端-值班备勤接口"})
@Controller("WebdutyStandbyAction")
@RequestMapping("/cms/dutyStandby")
public class DutyStandbyAction extends BaseAction {
/**
* 注入分类业务层
*/
@Autowired
private IDutyStandbyBiz dutyStandbyBiz;
/**
* 查询分类列表
* @param entity 分类实体
*/
@ApiOperation(value = "查询分类列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "id", required =false,paramType="query"),
@ApiImplicitParam(name = "dutyDate", value = "值班日期", required =false,paramType="query"),
@ApiImplicitParam(name = "monitor", value = "带班长", required =false,paramType="query"),
@ApiImplicitParam(name = "deputyMonitor", value = "副带班长", required =false,paramType="query"),
@ApiImplicitParam(name = "policeDuty", value = "民警值班员", required =false,paramType="query"),
@ApiImplicitParam(name = "auxiliaryPoliceDuty", value = "辅警值班员", required =false,paramType="query"),
@ApiImplicitParam(name = "blDutyPerson", value = "北岭值班人员", required =false,paramType="query"),
})
@RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore DutyStandbyEntity entity) {
entity.setSqlWhere("");
List list = dutyStandbyBiz.query(entity);
return ResultData.build().success(new EUListBean(list,(int)BasicUtil.endPage(list).getTotal()));
}
}