parent
2bdec541de
commit
07c2a8aa68
@ -0,0 +1,50 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.database.domain.DevopsVideoStatus;
|
||||
import com.ruoyi.database.domain.DisposalInfo;
|
||||
import com.ruoyi.database.service.DisposalInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "预警信息处置表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/DisposalInfo")
|
||||
public class DisposalInfoController extends BaseController {
|
||||
|
||||
private final DisposalInfoService disposalInfoService;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询预警信息处置表")
|
||||
public TableDataInfo<DisposalInfo> list(DisposalInfo disposalInfo) {
|
||||
startPage();
|
||||
List<DisposalInfo> list = disposalInfoService.list(new QueryWrapper<>(disposalInfo));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增预警信息处置表")
|
||||
@Log(title = "预警信息处置表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody DisposalInfo disposalInfo) {
|
||||
return toAjax(disposalInfoService.save(disposalInfo));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改预警信息处置表")
|
||||
@Log(title = "预警信息处置表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody DisposalInfo disposalInfo) {
|
||||
return toAjax(disposalInfoService.updateById(disposalInfo));
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.ruoyi.database.domain;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @TableName disposal_info
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "disposal_info")
|
||||
@ApiModel(value = "DisposalInfo", description = "预警信息处置表")
|
||||
public class DisposalInfo extends BaseEntity {
|
||||
|
||||
|
||||
@ApiModelProperty("主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("非法狩猎人员预警表主键")
|
||||
@Excel(name = "非法狩猎人员预警表主键")
|
||||
private Long huntersModelRecordId;
|
||||
|
||||
@ApiModelProperty("预警接收民警")
|
||||
@Excel(name = "预警接收民警")
|
||||
private String receptionPoliceman;
|
||||
|
||||
@ApiModelProperty("预警接收单位")
|
||||
@Excel(name = "预警接收单位")
|
||||
private String receptionPoliceStation;
|
||||
|
||||
@ApiModelProperty("指派单位")
|
||||
@Excel(name = "指派单位")
|
||||
private String assignPoliceStation;
|
||||
|
||||
@ApiModelProperty("处置结果")
|
||||
@Excel(name = "处置结果")
|
||||
private Integer disposalResult;
|
||||
@TableField(exist = false)
|
||||
private String disposalResultCn;
|
||||
|
||||
@ApiModelProperty("风险描述")
|
||||
@Excel(name = "风险描述")
|
||||
private String riskDesc;
|
||||
|
||||
@ApiModelProperty("预警签收民警")
|
||||
@Excel(name = "预警签收民警")
|
||||
private String signPoliceman;
|
||||
|
||||
@ApiModelProperty("预警签收单位")
|
||||
@Excel(name = "预警签收单位")
|
||||
private String signPoliceStation;
|
||||
|
||||
@ApiModelProperty("签收状态")
|
||||
@Excel(name = "签收状态")
|
||||
private Integer signStatus;
|
||||
@TableField(exist = false)
|
||||
private String signStatusCn;
|
||||
|
||||
@ApiModelProperty("风险反馈")
|
||||
@Excel(name = "风险反馈")
|
||||
private String riskFeedback;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.ruoyi.database.domain.DisposalInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【disposal_info(预警信息处置表)】的数据库操作Mapper
|
||||
* @createDate 2024-01-27 17:23:03
|
||||
* @Entity com.ruoyi.database.domain.DisposalInfo
|
||||
*/
|
||||
@Mapper
|
||||
public interface DisposalInfoMapper extends BaseMapper<DisposalInfo> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
import com.ruoyi.database.domain.DisposalInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【disposal_info(预警信息处置表)】的数据库操作Service
|
||||
* @createDate 2024-01-27 17:23:03
|
||||
*/
|
||||
public interface DisposalInfoService extends IService<DisposalInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.database.domain.DisposalInfo;
|
||||
import com.ruoyi.database.service.DisposalInfoService;
|
||||
import com.ruoyi.database.mapper.DisposalInfoMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【disposal_info(预警信息处置表)】的数据库操作Service实现
|
||||
* @createDate 2024-01-27 17:23:03
|
||||
*/
|
||||
@Service
|
||||
public class DisposalInfoServiceImpl extends ServiceImpl<DisposalInfoMapper, DisposalInfo> implements DisposalInfoService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue