| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | /** |
| | | * @Description: mdc(计划/非计划)停机维护表 |
| | | * @Description: mdc(计划-非计划)停机维护表 |
| | | * @Author: Lius |
| | | * @Date: 2023-07-13 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "mdc(计划/非计划)停机维护表") |
| | | @Api(tags = "mdc(计划-非计划)停机维护表") |
| | | @RestController |
| | | @RequestMapping("/mdc/mdcPlanClose") |
| | | public class MdcPlanCloseController extends JeecgController<MdcPlanClose, IMdcPlanCloseService> { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "mdc(计划/非计划)停机维护表-分页列表查询") |
| | | @ApiOperation(value = "mdc(计划/非计划)停机维护表-分页列表查询", notes = "mdc(计划/非计划)停机维护表-分页列表查询") |
| | | @AutoLog(value = "mdc(计划-非计划)停机维护表-分页列表查询") |
| | | @ApiOperation(value = "mdc(计划-非计划)停机维护表-分页列表查询", notes = "mdc(计划-非计划)停机维护表-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(MdcPlanCloseVo mdcPlanClose, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | |
| | | * @param mdcPlanClose |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "mdc(计划/非计划)停机维护表-添加") |
| | | @ApiOperation(value = "mdc(计划/非计划)停机维护表-添加", notes = "mdc(计划/非计划)停机维护表-添加") |
| | | @AutoLog(value = "mdc(计划-非计划)停机维护表-添加") |
| | | @ApiOperation(value = "mdc(计划-非计划)停机维护表-添加", notes = "mdc(计划-非计划)停机维护表-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody MdcPlanCloseVo mdcPlanClose) { |
| | | if (StringUtils.isBlank(mdcPlanClose.getEquipmentIds())) { |
| | |
| | | * @param mdcPlanClose |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "mdc(计划/非计划)停机维护表-编辑") |
| | | @ApiOperation(value = "mdc(计划/非计划)停机维护表-编辑", notes = "mdc(计划/非计划)停机维护表-编辑") |
| | | @AutoLog(value = "mdc(计划-非计划)停机维护表-编辑") |
| | | @ApiOperation(value = "mdc(计划-非计划)停机维护表-编辑", notes = "mdc(计划-非计划)停机维护表-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody MdcPlanClose mdcPlanClose) { |
| | | mdcPlanCloseService.updateById(mdcPlanClose); |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "mdc(计划/非计划)停机维护表-通过id删除") |
| | | @ApiOperation(value = "mdc(计划/非计划)停机维护表-通过id删除", notes = "mdc(计划/非计划)停机维护表-通过id删除") |
| | | @AutoLog(value = "mdc(计划-非计划)停机维护表-通过id删除") |
| | | @ApiOperation(value = "mdc(计划-非计划)停机维护表-通过id删除", notes = "mdc(计划-非计划)停机维护表-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | | mdcPlanCloseService.removeById(id); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "mdc(计划/非计划)停机维护表-批量删除") |
| | | @ApiOperation(value = "mdc(计划/非计划)停机维护表-批量删除", notes = "mdc(计划/非计划)停机维护表-批量删除") |
| | | @AutoLog(value = "mdc(计划-非计划)停机维护表-批量删除") |
| | | @ApiOperation(value = "mdc(计划-非计划)停机维护表-批量删除", notes = "mdc(计划-非计划)停机维护表-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | | this.mdcPlanCloseService.removeByIds(Arrays.asList(ids.split(","))); |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "mdc(计划/非计划)停机维护表-通过id查询") |
| | | @ApiOperation(value = "mdc(计划/非计划)停机维护表-通过id查询", notes = "mdc(计划/非计划)停机维护表-通过id查询") |
| | | @AutoLog(value = "mdc(计划-非计划)停机维护表-通过id查询") |
| | | @ApiOperation(value = "mdc(计划-非计划)停机维护表-通过id查询", notes = "mdc(计划-非计划)停机维护表-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | | MdcPlanClose mdcPlanClose = mdcPlanCloseService.getById(id); |