package com.gk.firework.Controller;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.gk.firework.Controller.Base.BaseController;
|
import com.gk.firework.Domain.*;
|
import com.gk.firework.Domain.Utils.FilterObject;
|
import com.gk.firework.Domain.Vo.StandardTemplate1Vo;
|
import com.gk.firework.Service.*;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParams;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
@Api(tags = "安全生产标准化管理")
|
@RequestMapping("/")
|
@RestController
|
public class StandardController extends BaseController {
|
|
@Autowired
|
private StandardTemplate1Service standardTemplate1Service;
|
@Autowired
|
private StandardLawListService standardLawListService;
|
@Autowired
|
private StandardEducationLegerService standardEducationLegerService;
|
@Autowired
|
private StandardGuardRollService standardGuardRollService;
|
@Autowired
|
private StandardDeviceToolsLegerService standardDeviceToolsLegerService;
|
@Autowired
|
private StandardProductLegerService standardProductLegerService;
|
@Autowired
|
private StandardHiddenDangerLegerService standardHiddenDangerLegerService;
|
@Autowired
|
private StandardSupplyMarketObjectService standardSupplyMarketObjectService;
|
@Autowired
|
private StandardConferenceRecordService standardConferenceRecordService;
|
@Autowired
|
private StandardRewardRecordService standardRewardRecordService;
|
|
/**
|
* @Description: 查询简单模板
|
* @date 2021/4/29 13:59
|
*/
|
@ApiOperation(value = "查询简单模板", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/standardList")
|
Object template1(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardTemplate1Service.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
/**
|
* @Description: 新增简单模板
|
* @date 2021/4/29 15:42
|
*/
|
@ApiOperation(value = "新增简单模板", httpMethod = "POST")
|
@PostMapping("/addstandard")
|
Object addStandard(StandardTemplate1Vo standardTemplate1Vo) {
|
standardTemplate1Service.addStandard(standardTemplate1Vo,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 修改简单模板
|
* @date 2021/4/30 16:13
|
*/
|
@ApiOperation(value = "修改简单模板", httpMethod = "PUT")
|
@PostMapping("/putstandard")
|
Object modStandard(StandardTemplate1Vo standardTemplate1Vo) {
|
standardTemplate1Service.modStandard(standardTemplate1Vo,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 删除简单模板
|
* @date 2021/4/30 16:21
|
*/
|
@ApiOperation(value = "删除简单模板", httpMethod = "DELETE")
|
@PostMapping("/delstandard")
|
Object delStandard(@RequestParam Long id) {
|
standardTemplate1Service.delStandard(id, getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 适用的法律法规清单
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "查询适用的法律法规清单", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryStandardLawList")
|
Object queryStandardLawList(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardLawListService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
|
/**
|
* @Description: 新增适用的法律法规清单
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "新增适用的法律法规清单", httpMethod = "POST")
|
@PostMapping("/addstandardLawList")
|
Object addStandardLawList(StandardLawList standardLawList) {
|
standardLawListService.addStandardLawList(standardLawList,getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 修改适用的法律法规清单
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "修改适用的法律法规清单", httpMethod = "PUT")
|
@PostMapping("/putstandardLawList")
|
Object modStandardLawList(StandardLawList standardLawList) {
|
standardLawListService.modStandardLawList(standardLawList,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 删除适用的法律法规清单
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "删除适用的法律法规清单", httpMethod = "DELETE")
|
@PostMapping("/delstandardLawList")
|
Object delStandardLawList(@RequestParam Long id) {
|
standardLawListService.delStandardLawList(id,getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 从业人员教育培训台账
|
* @date 2021/5/8 16:29
|
*/
|
@ApiOperation(value = "查询从业人员教育培训台账", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryStandardEducationLeger")
|
Object queryStandardEducationLeger(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardEducationLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
/**
|
* @Description: 新增从业人员教育培训台账
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "新增从业人员教育培训台账", httpMethod = "POST")
|
@PostMapping("/addstandardEducationLeger")
|
Object addStandardEducationLeger(StandardEducationLeger standardEducationLeger) {
|
standardEducationLegerService.addStandardEducationLeger(standardEducationLeger,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 修改从业人员教育培训台账
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "修改从业人员教育培训台账", httpMethod = "PUT")
|
@PostMapping("/putstandardEducationLeger")
|
Object modStandardEducationLeger(StandardEducationLeger standardEducationLeger) {
|
standardEducationLegerService.modStandardEducationLeger(standardEducationLeger,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 删除从业人员教育培训台账
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "删除从业人员教育培训台账", httpMethod = "DELETE")
|
@PostMapping("/delstandardEducationLeger")
|
Object delStandardEducationLeger(@RequestParam Long id) {
|
standardEducationLegerService.delStandardEducationLeger(id,getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 查询保管员和守护员名册
|
* @date 2021/5/8 16:29
|
*/
|
@ApiOperation(value = "查询保管员和守护员名册", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryStandardGuardRoll")
|
Object queryStandardGuardRoll(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardGuardRollService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
|
/**
|
* @Description: 新增保管员和守护员名册
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "新增从业人员教育培训台账", httpMethod = "POST")
|
@PostMapping("/addstandardGuardRoll")
|
Object addStandardGuardRoll(@RequestBody StandardGuardRoll standardGuardRoll) {
|
standardGuardRollService.addStandardGuardRoll(standardGuardRoll,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 修改保管员和守护员名册
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "新增从业人员教育培训台账", httpMethod = "PUT")
|
@PostMapping("/putstandardGuardRoll")
|
Object modStandardGuardRoll(@RequestBody StandardGuardRoll standardGuardRoll) {
|
standardGuardRollService.modStandardGuardRoll(standardGuardRoll,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 删除保管员和守护员名册
|
* @date 2021/5/8 13:50
|
*/
|
@ApiOperation(value = "删除从业人员教育培训台账", httpMethod = "DELETE")
|
@PostMapping("/delstandardGuardRoll")
|
Object delStandardGuardRoll(@RequestParam Long id) {
|
standardGuardRollService.delStandardGuardRoll(id,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 安全设施设备、消防器材和运输工具台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "查询安全设施设备、消防器材和运输工具台账", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryDeviceToolsLeger")
|
Object queryDeviceToolsLeger(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardDeviceToolsLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
|
/**
|
* @Description: 新增安全设施设备、消防器材和运输工具台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "deviceToolsLeger", httpMethod = "POST")
|
@PostMapping("/adddeviceToolsLeger")
|
Object addDeviceToolsLeger(@RequestBody StandardDeviceToolsLeger standardDeviceToolsLeger) {
|
standardDeviceToolsLegerService.addDeviceToolsLeger(standardDeviceToolsLeger,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 新增安全设施设备、消防器材和运输工具台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "deviceToolsLeger", httpMethod = "PUT")
|
@PostMapping("/putdeviceToolsLeger")
|
Object modDeviceToolsLeger(@RequestBody StandardDeviceToolsLeger standardDeviceToolsLeger) {
|
standardDeviceToolsLegerService.modDeviceToolsLeger(standardDeviceToolsLeger,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 删除安全设施设备、消防器材和运输工具台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "deviceToolsLeger", httpMethod = "DELETE")
|
@PostMapping("/deldeviceToolsLeger")
|
Object modDeviceToolsLeger(@RequestParam Long id) {
|
standardDeviceToolsLegerService.delDeviceToolsLeger(id,getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 经营产品信息台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "查询经营产品信息台账", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryProductLeger")
|
Object queryProductLeger(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardProductLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
|
/**
|
* @Description: 新增经营产品信息台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "新增经营产品信息台账", httpMethod = "POST")
|
@PostMapping("/addproductLeger")
|
Object addProductLeger(@RequestBody StandardProductLeger standardProductLeger) {
|
standardProductLegerService.addProductLeger(standardProductLeger,getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 修改经营产品信息台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "修改经营产品信息台账", httpMethod = "PUT")
|
@PostMapping("/putproductLeger")
|
Object modProductLeger(@RequestBody StandardProductLeger standardProductLeger) {
|
standardProductLegerService.modProductLeger(standardProductLeger,getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 删除经营产品信息台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "删除经营产品信息台账", httpMethod = "DELETE")
|
@PostMapping("/delproductLeger")
|
Object delProductLeger(@RequestParam Long id) {
|
standardProductLegerService.delProductLeger(id,getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 隐患排查治理台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "查询隐患排查治理台账", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryHiddenDangerLeger")
|
Object queryHiddenDangerLeger(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardHiddenDangerLegerService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
/**
|
* @Description: 新增隐患排查治理台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "新增隐患排查治理台账", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/addhiddenDangerLeger")
|
Object addHiddenDangerLeger(@RequestBody StandardHiddenDangerLeger standardHiddenDangerLeger) {
|
standardHiddenDangerLegerService.addHiddenDangerLeger(standardHiddenDangerLeger, getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 修改隐患排查治理台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "修改隐患排查治理台账", httpMethod = "PUT")
|
@PostMapping("/puthiddenDangerLeger")
|
Object modHiddenDangerLeger(@RequestBody StandardHiddenDangerLeger standardHiddenDangerLeger) {
|
standardHiddenDangerLegerService.modHiddenDangerLeger(standardHiddenDangerLeger, getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 删除隐患排查治理台账
|
* @date 2021/5/18 9:24
|
*/
|
@ApiOperation(value = "删除隐患排查治理台账", httpMethod = "DELETE")
|
@PostMapping("/delhiddenDangerLeger")
|
Object delHiddenDangerLeger(@RequestParam Long id) {
|
standardHiddenDangerLegerService.delHiddenDangerLeger(id, getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 供销对象台账
|
* @date 2021/5/21 10:30
|
*/
|
@ApiOperation(value = "供销对象台账", notes = "分页查询", httpMethod = "POST")
|
@ApiImplicitParams({
|
@ApiImplicitParam(name = "menu",value = "供|销的菜单名")
|
})
|
@PostMapping("/querySupplyMarketObject")
|
Object querySupplyMarketObject(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardSupplyMarketObjectService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
/**
|
* @Description: 新增供销对象台账
|
* @date 2021/5/21 10:30
|
*/
|
@ApiOperation(value = "新增供销对象台账", httpMethod = "POST")
|
@ApiImplicitParams({
|
@ApiImplicitParam(name = "menu",value = "供|销的菜单名")
|
})
|
@PostMapping("/addsupplyMarketObject")
|
Object addSupplyMarketObject(@RequestBody StandardSupplyMarketObject standardSupplyMarketObject) {
|
standardSupplyMarketObjectService.addSupplyMarketObject(standardSupplyMarketObject, getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 修改供销对象台账
|
* @date 2021/5/21 10:30
|
*/
|
@ApiOperation(value = "修改供销对象台账",httpMethod = "PUT")
|
@ApiImplicitParams({
|
@ApiImplicitParam(name = "menu",value = "供|销的菜单名")
|
})
|
@PostMapping("/putsupplyMarketObject")
|
Object modSupplyMarketObject(@RequestBody StandardSupplyMarketObject standardSupplyMarketObject) {
|
standardSupplyMarketObjectService.modSupplyMarketObject(standardSupplyMarketObject, getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 删除供销对象台账
|
* @date 2021/5/21 10:30
|
*/
|
@ApiOperation(value = "删除供销对象台账",httpMethod = "DELETE")
|
@ApiImplicitParams({
|
@ApiImplicitParam(name = "id",value = "供销对象台账id")
|
})
|
@PostMapping("/delsupplyMarketObject")
|
Object delSupplyMarketObject(@RequestParam Long id) {
|
standardSupplyMarketObjectService.delSupplyMarketObject(id, getUser());
|
return success();
|
}
|
|
/**
|
* @Description: 会议记录
|
* @date 2021/5/21 14:04
|
*/
|
@ApiOperation(value = "会议记录", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryStandardConferenceRecord")
|
Object queryStandardConferenceRecord(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardConferenceRecordService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
|
/**
|
* @Description: 新增会议记录
|
* @date 2021/5/21 10:30
|
*/
|
@ApiOperation(value = "新增会议记录", httpMethod = "POST")
|
@PostMapping("/addstandardConferenceRecord")
|
Object addStandardConferenceRecord(@RequestBody StandardConferenceRecord standardConferenceRecord) {
|
standardConferenceRecordService.addStandardConferenceRecord(standardConferenceRecord, getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 修改会议记录
|
* @date 2021/5/21 10:30
|
*/
|
@ApiOperation(value = "修改会议记录", httpMethod = "PUT")
|
@PostMapping("/putstandardConferenceRecord")
|
Object modStandardConferenceRecord(@RequestBody StandardConferenceRecord standardConferenceRecord) {
|
standardConferenceRecordService.modStandardConferenceRecord(standardConferenceRecord, getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 删除会议记录
|
* @date 2021/5/21 10:30
|
*/
|
@ApiOperation(value = "删除会议记录", httpMethod = "DELETE")
|
@PostMapping("/delstandardConferenceRecord")
|
Object delStandardConferenceRecord(@RequestParam Long id) {
|
standardConferenceRecordService.delStandardConferenceRecord(id, getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 奖惩记录
|
* @date 2021/5/21 15:16
|
*/
|
|
@ApiOperation(value = "奖惩记录", notes = "分页查询", httpMethod = "POST")
|
@PostMapping("/queryRecordAndPunishmentRecord")
|
Object queryRecordAndPunishmentRecord(@RequestBody FilterObject filterObject) {
|
Integer pageIndex = filterObject.getPageIndex();
|
Integer pageSize = filterObject.getPageSize();
|
IPage page = standardRewardRecordService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(),getUser());
|
return success(page);
|
}
|
|
|
/**
|
* @Description: 新增奖惩记录
|
* @date 2021/5/21 15:16
|
*/
|
|
@ApiOperation(value = "新增奖惩记录", httpMethod = "POST")
|
@PostMapping("/addrecordAndPunishmentRecord")
|
Object addRecordAndPunishmentRecord(@RequestBody StandardRewardRecord standardRewardRecord) {
|
standardRewardRecordService.addRecordAndPunishmentRecord(standardRewardRecord,getUser());
|
return success();
|
}
|
|
|
|
/**
|
* @Description: 修改奖惩记录
|
* @date 2021/5/21 15:16
|
*/
|
|
@ApiOperation(value = "修改奖惩记录", httpMethod = "PUT")
|
@PostMapping("/putrecordAndPunishmentRecord")
|
Object modRecordAndPunishmentRecord(@RequestBody StandardRewardRecord standardRewardRecord) {
|
standardRewardRecordService.modRecordAndPunishmentRecord(standardRewardRecord,getUser());
|
return success();
|
}
|
|
|
/**
|
* @Description: 删除奖惩记录
|
* @date 2021/5/21 15:16
|
*/
|
|
@ApiOperation(value = "删除奖惩记录", httpMethod = "DELETE")
|
@PostMapping("/delrecordAndPunishmentRecord")
|
Object modRecordAndPunishmentRecord(@RequestParam Long id) {
|
standardRewardRecordService.delRecordAndPunishmentRecord(id,getUser());
|
return success();
|
}
|
}
|