parent
8bfb056938
commit
4f881e7dce
@ -0,0 +1,105 @@
|
|||||||
|
package com.ruoyi.programManagement.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import com.ruoyi.programManagement.entity.SzEnforExamine;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.programManagement.service.ISzEnforExamineService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 现场检查记录Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-26
|
||||||
|
*/
|
||||||
|
@Api(tags = "现场检查记录")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/pharmaceuticals/examine")
|
||||||
|
public class SzEnforExamineController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzEnforExamineService szEnforExamineService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询现场检查记录列表
|
||||||
|
*/
|
||||||
|
@ApiOperation("查询现场检查记录列表")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzEnforExamine szEnforExamine)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzEnforExamine> list = szEnforExamineService.selectSzEnforExamineList(szEnforExamine);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出现场检查记录列表
|
||||||
|
*/
|
||||||
|
@ApiOperation("导出现场检查记录列表")
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzEnforExamine szEnforExamine)
|
||||||
|
{
|
||||||
|
List<SzEnforExamine> list = szEnforExamineService.selectSzEnforExamineList(szEnforExamine);
|
||||||
|
ExcelUtil<SzEnforExamine> util = new ExcelUtil<SzEnforExamine>(SzEnforExamine.class);
|
||||||
|
util.exportExcel(response, list, "现场检查记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取现场检查记录详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取现场检查记录详细信息")
|
||||||
|
@GetMapping(value = "/{ID}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("ID") String ID)
|
||||||
|
{
|
||||||
|
return success(szEnforExamineService.selectSzEnforExamineByID(ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增现场检查记录
|
||||||
|
*/
|
||||||
|
@ApiOperation("新增现场检查记录")
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzEnforExamine szEnforExamine)
|
||||||
|
{
|
||||||
|
return toAjax(szEnforExamineService.insertSzEnforExamine(szEnforExamine));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改现场检查记录
|
||||||
|
*/
|
||||||
|
@ApiOperation("修改现场检查记录")
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzEnforExamine szEnforExamine)
|
||||||
|
{
|
||||||
|
return toAjax(szEnforExamineService.updateSzEnforExamine(szEnforExamine));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除现场检查记录
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiOperation("删除现场检查记录")
|
||||||
|
@DeleteMapping("/{IDs}")
|
||||||
|
public AjaxResult remove(@PathVariable String[] IDs)
|
||||||
|
{
|
||||||
|
return toAjax(szEnforExamineService.deleteSzEnforExamineByIDs(IDs));
|
||||||
|
}
|
||||||
|
}
|
@ -1,143 +0,0 @@
|
|||||||
package com.ruoyi.programManagement.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.ruoyi.common.annotation.Excel;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划管理表(BPlanManage)表实体类
|
|
||||||
*
|
|
||||||
* @author wu
|
|
||||||
* @since 2023-09-07 09:43:07
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@ApiModel("计划管理表实体类")
|
|
||||||
public class BPlanManage {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 886164627593957269L;
|
|
||||||
/**
|
|
||||||
* 编号
|
|
||||||
*/
|
|
||||||
@Excel(name = "编号")
|
|
||||||
@ApiModelProperty(value = "编号")
|
|
||||||
@TableId(type = IdType.AUTO)
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划年份
|
|
||||||
*/
|
|
||||||
@Excel(name = "计划年份")
|
|
||||||
@ApiModelProperty(value = "计划年份")
|
|
||||||
private String plannedYear;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 行政区划
|
|
||||||
*/
|
|
||||||
@Excel(name = "行政区划")
|
|
||||||
@ApiModelProperty(value = "行政区划")
|
|
||||||
private String district;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划企业数量
|
|
||||||
*/
|
|
||||||
@Excel(name = "计划企业数量")
|
|
||||||
@ApiModelProperty(value = "计划企业数量")
|
|
||||||
private String planNumb;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划标题
|
|
||||||
*/
|
|
||||||
@Excel(name = "计划标题")
|
|
||||||
@ApiModelProperty(value = "计划标题")
|
|
||||||
private String planName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划内容
|
|
||||||
*/
|
|
||||||
@Excel(name = "计划内容")
|
|
||||||
@ApiModelProperty(value = "计划内容")
|
|
||||||
private String planContent;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建者ID
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "创建者ID")
|
|
||||||
private Long createId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新者ID
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "更新者ID")
|
|
||||||
private Long updateId;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户权限id
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "用户权限id")
|
|
||||||
private Long userId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 部门权限id
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "部门权限id")
|
|
||||||
private Long deptId;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@ApiModelProperty(value = "企业id")
|
|
||||||
private String enterpriseId;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@Excel(name = "创建时间", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
|
||||||
@ApiModelProperty("创建时间")
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新者
|
|
||||||
*/
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建者
|
|
||||||
*/
|
|
||||||
private String createBy;
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@Excel(name = "更新时间", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
|
||||||
@ApiModelProperty("更新时间")
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 重点企业数量
|
|
||||||
*/
|
|
||||||
@ApiModelProperty("重点企业数量")
|
|
||||||
private Integer keyCount;
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,165 @@
|
|||||||
|
package com.ruoyi.programManagement.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
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;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 现场检查记录对象 sz_enfor_examine
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-26
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("现场检查记录对象")
|
||||||
|
public class SzEnforExamine extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Date dmsTimestamp;
|
||||||
|
|
||||||
|
/** ID */
|
||||||
|
@ApiModelProperty(value = "ID")
|
||||||
|
private String ID;
|
||||||
|
|
||||||
|
/** 检查方案id */
|
||||||
|
@Excel(name = "检查方案id")
|
||||||
|
@ApiModelProperty(value = "检查方案id")
|
||||||
|
private String planExamineId;
|
||||||
|
|
||||||
|
/** 企业名称 */
|
||||||
|
@Excel(name = "企业名称")
|
||||||
|
@ApiModelProperty(value = "企业名称")
|
||||||
|
private String entprName;
|
||||||
|
|
||||||
|
/** 统一社会信用代码 */
|
||||||
|
@Excel(name = "统一社会信用代码")
|
||||||
|
@ApiModelProperty(value = "统一社会信用代码")
|
||||||
|
private String uscCode;
|
||||||
|
|
||||||
|
/** 检查场所 */
|
||||||
|
@Excel(name = "检查场所")
|
||||||
|
@ApiModelProperty(value = "检查场所")
|
||||||
|
private String examineSite;
|
||||||
|
|
||||||
|
/** 检查来源 */
|
||||||
|
@Excel(name = "检查来源")
|
||||||
|
@ApiModelProperty(value = "检查来源")
|
||||||
|
private String examineSource;
|
||||||
|
|
||||||
|
/** 检查开始时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@ApiModelProperty(value = "检查开始时间")
|
||||||
|
@Excel(name = "检查开始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date examineStartTime;
|
||||||
|
|
||||||
|
/** 检查结束时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "检查结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@ApiModelProperty(value = "检查结束时间")
|
||||||
|
private Date examineEndTime;
|
||||||
|
|
||||||
|
/** 检查人员id */
|
||||||
|
@ApiModelProperty(value = "检查人员id")
|
||||||
|
@Excel(name = "检查人员id")
|
||||||
|
private String executorId;
|
||||||
|
|
||||||
|
/** 检查情况 */
|
||||||
|
@Excel(name = "检查情况")
|
||||||
|
@ApiModelProperty(value = "检查情况")
|
||||||
|
private String examineSituation;
|
||||||
|
|
||||||
|
/** 文书文号 */
|
||||||
|
@Excel(name = "文书文号")
|
||||||
|
@ApiModelProperty(value = "文书文号")
|
||||||
|
private String writNo;
|
||||||
|
|
||||||
|
/** 文书类型 */
|
||||||
|
@Excel(name = "文书类型")
|
||||||
|
@ApiModelProperty(value = "文书类型")
|
||||||
|
private String typeCode;
|
||||||
|
|
||||||
|
/** 现场证据附件 */
|
||||||
|
@Excel(name = "现场证据附件")
|
||||||
|
@ApiModelProperty(value = "现场证据附件")
|
||||||
|
private String EVIDENCE;
|
||||||
|
|
||||||
|
/** 执法部门 */
|
||||||
|
@Excel(name = "执法部门")
|
||||||
|
@ApiModelProperty(value = "执法部门")
|
||||||
|
private String executorDept;
|
||||||
|
|
||||||
|
/** 执法部门代码 */
|
||||||
|
@ApiModelProperty(value = "执法部门代码")
|
||||||
|
@Excel(name = "执法部门代码")
|
||||||
|
private String executorDeptCode;
|
||||||
|
|
||||||
|
/** 检查方式 */
|
||||||
|
@Excel(name = "检查方式")
|
||||||
|
@ApiModelProperty(value = "检查方式")
|
||||||
|
private String examineType;
|
||||||
|
|
||||||
|
/** 是否是三年专项 */
|
||||||
|
@ApiModelProperty(value = "是否是三年专项")
|
||||||
|
@Excel(name = "是否是三年专项")
|
||||||
|
private String threeSpecialType;
|
||||||
|
|
||||||
|
/** 钢铁三年专项时,企业设施的版本号 */
|
||||||
|
@ApiModelProperty(value = "钢铁三年专项时,企业设施的版本号")
|
||||||
|
@Excel(name = "钢铁三年专项时,企业设施的版本号")
|
||||||
|
private String enterpriseUnitVersion;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@ApiModelProperty(value = "创建人")
|
||||||
|
@Excel(name = "创建人")
|
||||||
|
private String CREATER;
|
||||||
|
|
||||||
|
/** 更新人 */
|
||||||
|
@ApiModelProperty(value = "更新人")
|
||||||
|
@Excel(name = "更新人")
|
||||||
|
private String UPDATER;
|
||||||
|
|
||||||
|
/** 数据来源 */
|
||||||
|
@ApiModelProperty(value = "数据来源")
|
||||||
|
@Excel(name = "数据来源")
|
||||||
|
private String sourceData;
|
||||||
|
|
||||||
|
/** 是否专家参与 */
|
||||||
|
@ApiModelProperty(value = "是否专家参与")
|
||||||
|
@Excel(name = "是否专家参与")
|
||||||
|
private Long expertsInFlag;
|
||||||
|
|
||||||
|
/** 专家姓名 */
|
||||||
|
@ApiModelProperty(value = "专家姓名")
|
||||||
|
@Excel(name = "专家姓名")
|
||||||
|
private String expertsName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
private Date CREATETIME;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "修改时间")
|
||||||
|
private Date UPDATETIME;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.ruoyi.programManagement.entity.request;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询计划企业请求类
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BPlanEnterprisePageRequest {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计划年份
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "计划年份")
|
||||||
|
private String plannedYear;
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
package com.ruoyi.programManagement.entity.request;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 执法计划工作情况统计请求类
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("执法计划工作情况统计请求类")
|
||||||
|
public class zhifaRequest {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计划年份
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "计划年份")
|
||||||
|
private String plannedYear;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区县id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "区县id")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* size
|
||||||
|
*/
|
||||||
|
@ApiModelProperty("size")
|
||||||
|
private int pageSize;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* num
|
||||||
|
*/
|
||||||
|
@ApiModelProperty("num")
|
||||||
|
private int pageNum;
|
||||||
|
}
|
@ -1,139 +0,0 @@
|
|||||||
package com.ruoyi.programManagement.entity.response;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.ruoyi.common.annotation.Excel;
|
|
||||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划管理查看详情响应类
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class BPlanManageResponse {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编号
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "编号")
|
|
||||||
@TableId(type = IdType.AUTO)
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划年份
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "计划年份")
|
|
||||||
private String plannedYear;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 行政区划
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "行政区划")
|
|
||||||
private String district;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划企业数量
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "计划企业数量")
|
|
||||||
private String planNumb;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划标题
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "计划标题")
|
|
||||||
private String planName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划内容
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "计划内容")
|
|
||||||
private String planContent;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建者ID
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "创建者ID")
|
|
||||||
private Integer createId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新者ID
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "更新者ID")
|
|
||||||
private Integer updateId;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户权限id
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "用户权限id")
|
|
||||||
private Long userId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 部门权限id
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "部门权限id")
|
|
||||||
private Long deptId;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
@ApiModelProperty(value = "企业id")
|
|
||||||
private String enterpriseId;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
|
||||||
@ApiModelProperty("创建时间")
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新者
|
|
||||||
*/
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建者
|
|
||||||
*/
|
|
||||||
private String createBy;
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@Excel(name = "年份", dateFormat = "yyyy/MM/dd HH:mm:ss")
|
|
||||||
@ApiModelProperty("更新时间")
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@ApiModelProperty("备注")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 企业详情list
|
|
||||||
*/
|
|
||||||
@ApiModelProperty("企业详情list")
|
|
||||||
List<SzEntBasicInfo> list;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 重点企业数量
|
|
||||||
*/
|
|
||||||
@ApiModelProperty("重点企业数量")
|
|
||||||
private Integer keyCount;
|
|
||||||
}
|
|
@ -0,0 +1,80 @@
|
|||||||
|
package com.ruoyi.programManagement.entity.response;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 执法计划工作情况响应类
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("执法计划工作情况响应类")
|
||||||
|
public class zhifaCountResponse {
|
||||||
|
/**
|
||||||
|
* 部门id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "部门id")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 部门名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "部门名称")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省重点企业数量
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "省重点企业数量")
|
||||||
|
private Integer keyPlan;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 非省重点企业数量
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "非省重点企业数量")
|
||||||
|
private Integer nonKeyPlan;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省重点完成数
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "省重点完成数")
|
||||||
|
private Integer keyCompleted;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 非省重点完成数
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "非省重点完成数")
|
||||||
|
private Integer nonKeyCompleted;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省重点完成比
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "省重点完成比")
|
||||||
|
private Integer percentageCompleted;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 非省重点完成比
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "非省重点完成比")
|
||||||
|
private Integer percentageNonCompleted;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合计计划数量
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "合计计划数量")
|
||||||
|
private Integer totalPlanCount;
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.ruoyi.programManagement.entity.response;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import io.swagger.models.auth.In;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 各区域执法计划
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("各区域执法计划")
|
||||||
|
public class zhifaPlanResponse {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数量
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "数量")
|
||||||
|
private Integer count;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 部门
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "部门")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -1,50 +0,0 @@
|
|||||||
package com.ruoyi.programManagement.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.ruoyi.programManagement.entity.BPlanManage;
|
|
||||||
import com.ruoyi.programManagement.entity.request.checkResultRequest;
|
|
||||||
import com.ruoyi.programManagement.entity.response.BPlanManagePageResponse;
|
|
||||||
import com.ruoyi.programManagement.entity.response.BPlanManageResponse;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划管理表(BPlanManage)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author wu
|
|
||||||
* @since 2023-09-07 09:43:07
|
|
||||||
*/
|
|
||||||
public interface BPlanManageMapper extends BaseMapper<BPlanManage> {
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据id查询计划管理和计划企业
|
|
||||||
*
|
|
||||||
* @param id 主键id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
BPlanManageResponse selectByPlanId(Long id);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页条件查询计划管理表
|
|
||||||
*
|
|
||||||
* @param req 查询条件
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public List<BPlanManagePageResponse> page(@Param("req") checkResultRequest req);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询计划管理列表
|
|
||||||
* @param bPlanManage 实体类
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<BPlanManage> selectBybPlanManage(BPlanManage bPlanManage);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.ruoyi.programManagement.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.programManagement.entity.SzEnforExamine;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 现场检查记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-26
|
||||||
|
*/
|
||||||
|
public interface SzEnforExamineMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询现场检查记录
|
||||||
|
*
|
||||||
|
* @param ID 现场检查记录主键
|
||||||
|
* @return 现场检查记录
|
||||||
|
*/
|
||||||
|
public SzEnforExamine selectSzEnforExamineByID(String ID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询现场检查记录列表
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 现场检查记录集合
|
||||||
|
*/
|
||||||
|
public List<SzEnforExamine> selectSzEnforExamineList(SzEnforExamine szEnforExamine);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增现场检查记录
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzEnforExamine(SzEnforExamine szEnforExamine);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改现场检查记录
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzEnforExamine(SzEnforExamine szEnforExamine);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除现场检查记录
|
||||||
|
*
|
||||||
|
* @param ID 现场检查记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzEnforExamineByID(String ID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除现场检查记录
|
||||||
|
*
|
||||||
|
* @param IDs 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzEnforExamineByIDs(String[] IDs);
|
||||||
|
}
|
@ -1,45 +0,0 @@
|
|||||||
package com.ruoyi.programManagement.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
|
||||||
import com.ruoyi.programManagement.entity.BPlanManage;
|
|
||||||
import com.ruoyi.programManagement.entity.request.checkResultRequest;
|
|
||||||
import com.ruoyi.programManagement.entity.response.BPlanManageResponse;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划管理表(BPlanManage)表服务接口
|
|
||||||
*
|
|
||||||
* @author wu
|
|
||||||
* @since 2023-09-07 09:43:07
|
|
||||||
*/
|
|
||||||
public interface BPlanManageService extends IService<BPlanManage> {
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据id查询计划管理和计划企业
|
|
||||||
*
|
|
||||||
* @param id 主键id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
BPlanManageResponse selectById(Long id);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页条件查询计划管理表
|
|
||||||
*
|
|
||||||
* @param req 查询条件
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public Map<String, Object> page(checkResultRequest req);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询计划管理列表
|
|
||||||
* @param bPlanManage 实体类
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<BPlanManage> selectBybPlanManage(BPlanManage bPlanManage);
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.ruoyi.programManagement.service;
|
||||||
|
|
||||||
|
import com.ruoyi.programManagement.entity.SzEnforExamine;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 现场检查记录Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-26
|
||||||
|
*/
|
||||||
|
public interface ISzEnforExamineService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询现场检查记录
|
||||||
|
*
|
||||||
|
* @param ID 现场检查记录主键
|
||||||
|
* @return 现场检查记录
|
||||||
|
*/
|
||||||
|
public SzEnforExamine selectSzEnforExamineByID(String ID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询现场检查记录列表
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 现场检查记录集合
|
||||||
|
*/
|
||||||
|
public List<SzEnforExamine> selectSzEnforExamineList(SzEnforExamine szEnforExamine);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增现场检查记录
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzEnforExamine(SzEnforExamine szEnforExamine);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改现场检查记录
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzEnforExamine(SzEnforExamine szEnforExamine);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除现场检查记录
|
||||||
|
*
|
||||||
|
* @param IDs 需要删除的现场检查记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzEnforExamineByIDs(String[] IDs);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除现场检查记录信息
|
||||||
|
*
|
||||||
|
* @param ID 现场检查记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzEnforExamineByID(String ID);
|
||||||
|
}
|
@ -1,64 +0,0 @@
|
|||||||
package com.ruoyi.programManagement.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
||||||
import com.github.pagehelper.PageHelper;
|
|
||||||
import com.github.pagehelper.PageInfo;
|
|
||||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
|
||||||
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
|
|
||||||
import com.ruoyi.programManagement.entity.request.checkResultRequest;
|
|
||||||
import com.ruoyi.programManagement.entity.response.BPlanManagePageResponse;
|
|
||||||
import com.ruoyi.programManagement.entity.response.BPlanManageResponse;
|
|
||||||
import com.ruoyi.programManagement.mapper.BPlanEnterpriseMapper;
|
|
||||||
import com.ruoyi.programManagement.mapper.BPlanManageMapper;
|
|
||||||
import com.ruoyi.programManagement.entity.BPlanManage;
|
|
||||||
import com.ruoyi.programManagement.service.BPlanManageService;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计划管理表(BPlanManage)表服务实现类
|
|
||||||
*
|
|
||||||
* @author wu
|
|
||||||
* @since 2023-09-07 09:43:07
|
|
||||||
*/
|
|
||||||
@Service("bPlanManageService")
|
|
||||||
public class BPlanManageServiceImpl extends ServiceImpl<BPlanManageMapper, BPlanManage> implements BPlanManageService {
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private BPlanManageMapper bPlanManageMapper;
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private BPlanEnterpriseMapper bPlanEnterpriseMapper;
|
|
||||||
@Override
|
|
||||||
public BPlanManageResponse selectById(Long id) {
|
|
||||||
BPlanManageResponse bPlanManage=bPlanManageMapper.selectByPlanId(id);
|
|
||||||
//根据id获取企业列表
|
|
||||||
bPlanManage.setList(bPlanEnterpriseMapper.getByPlanId(id));
|
|
||||||
return bPlanManage;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, Object> page(checkResultRequest req) {
|
|
||||||
List<BPlanManagePageResponse> bPlanManageInfos = bPlanManageMapper.page(req);
|
|
||||||
PageHelper.startPage(req.getPageNum(),req.getPageSize());
|
|
||||||
PageInfo<BPlanManagePageResponse> pageInfo = new PageInfo<>(bPlanManageInfos);
|
|
||||||
Map<String, Object> result =new HashMap<>();
|
|
||||||
result.put("total",pageInfo.getTotal());
|
|
||||||
result.put("list",pageInfo.getList());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<BPlanManage> selectBybPlanManage(BPlanManage bPlanManage) {
|
|
||||||
return bPlanManageMapper.selectBybPlanManage(bPlanManage);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,95 @@
|
|||||||
|
package com.ruoyi.programManagement.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.programManagement.entity.SzEnforExamine;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.programManagement.mapper.SzEnforExamineMapper;
|
||||||
|
|
||||||
|
import com.ruoyi.programManagement.service.ISzEnforExamineService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 现场检查记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-26
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzEnforExamineServiceImpl implements ISzEnforExamineService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzEnforExamineMapper szEnforExamineMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询现场检查记录
|
||||||
|
*
|
||||||
|
* @param ID 现场检查记录主键
|
||||||
|
* @return 现场检查记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzEnforExamine selectSzEnforExamineByID(String ID)
|
||||||
|
{
|
||||||
|
return szEnforExamineMapper.selectSzEnforExamineByID(ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询现场检查记录列表
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 现场检查记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzEnforExamine> selectSzEnforExamineList(SzEnforExamine szEnforExamine)
|
||||||
|
{
|
||||||
|
return szEnforExamineMapper.selectSzEnforExamineList(szEnforExamine);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增现场检查记录
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzEnforExamine(SzEnforExamine szEnforExamine)
|
||||||
|
{
|
||||||
|
return szEnforExamineMapper.insertSzEnforExamine(szEnforExamine);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改现场检查记录
|
||||||
|
*
|
||||||
|
* @param szEnforExamine 现场检查记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzEnforExamine(SzEnforExamine szEnforExamine)
|
||||||
|
{
|
||||||
|
return szEnforExamineMapper.updateSzEnforExamine(szEnforExamine);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除现场检查记录
|
||||||
|
*
|
||||||
|
* @param IDs 需要删除的现场检查记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzEnforExamineByIDs(String[] IDs)
|
||||||
|
{
|
||||||
|
return szEnforExamineMapper.deleteSzEnforExamineByIDs(IDs);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除现场检查记录信息
|
||||||
|
*
|
||||||
|
* @param ID 现场检查记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzEnforExamineByID(String ID)
|
||||||
|
{
|
||||||
|
return szEnforExamineMapper.deleteSzEnforExamineByID(ID);
|
||||||
|
}
|
||||||
|
}
|
@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.ruoyi.programManagement.mapper.BPlanManageMapper">
|
|
||||||
|
|
||||||
|
|
||||||
<select id="page" resultType="com.ruoyi.programManagement.entity.response.BPlanManagePageResponse">
|
|
||||||
SELECT a.*
|
|
||||||
FROM b_plan_manage a
|
|
||||||
<where>
|
|
||||||
<if test="req.plannedYear !=null and req.plannedYear !='' ">
|
|
||||||
and a.planned_year =#{req.plannedYear}
|
|
||||||
</if>
|
|
||||||
<if test="req.district !=null and req.district !='' ">
|
|
||||||
and a.district =#{req.district}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
<select id="selectByPlanId" resultType="com.ruoyi.programManagement.entity.response.BPlanManageResponse">
|
|
||||||
select a.*
|
|
||||||
from b_plan_manage a
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
<select id="selectBybPlanManage" resultType="com.ruoyi.programManagement.entity.BPlanManage">
|
|
||||||
select a.*
|
|
||||||
from b_plan_manage a
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
@ -0,0 +1,178 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.programManagement.mapper.SzEnforExamineMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzEnforExamine" id="SzEnforExamineResult">
|
||||||
|
<result property="dmsTimestamp" column="dms_timestamp" />
|
||||||
|
<result property="ID" column="ID" />
|
||||||
|
<result property="planExamineId" column="PLAN_EXAMINE_ID" />
|
||||||
|
<result property="entprName" column="ENTPR_NAME" />
|
||||||
|
<result property="uscCode" column="USC_CODE" />
|
||||||
|
<result property="examineSite" column="EXAMINE_SITE" />
|
||||||
|
<result property="examineSource" column="EXAMINE_SOURCE" />
|
||||||
|
<result property="examineStartTime" column="EXAMINE_START_TIME" />
|
||||||
|
<result property="examineEndTime" column="EXAMINE_END_TIME" />
|
||||||
|
<result property="executorId" column="EXECUTOR_ID" />
|
||||||
|
<result property="examineSituation" column="EXAMINE_SITUATION" />
|
||||||
|
<result property="writNo" column="WRIT_NO" />
|
||||||
|
<result property="typeCode" column="TYPE_CODE" />
|
||||||
|
<result property="EVIDENCE" column="EVIDENCE" />
|
||||||
|
<result property="executorDept" column="EXECUTOR_DEPT" />
|
||||||
|
<result property="executorDeptCode" column="EXECUTOR_DEPT_CODE" />
|
||||||
|
<result property="examineType" column="EXAMINE_TYPE" />
|
||||||
|
<result property="threeSpecialType" column="THREE_SPECIAL_TYPE" />
|
||||||
|
<result property="enterpriseUnitVersion" column="ENTERPRISE_UNIT_VERSION" />
|
||||||
|
<result property="CREATER" column="CREATER" />
|
||||||
|
<result property="CREATETIME" column="CREATETIME" />
|
||||||
|
<result property="UPDATER" column="UPDATER" />
|
||||||
|
<result property="UPDATETIME" column="UPDATETIME" />
|
||||||
|
<result property="sourceData" column="SOURCE_DATA" />
|
||||||
|
<result property="expertsInFlag" column="EXPERTS_IN_FLAG" />
|
||||||
|
<result property="expertsName" column="EXPERTS_NAME" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzEnforExamineVo">
|
||||||
|
select dms_timestamp, ID, PLAN_EXAMINE_ID, ENTPR_NAME, USC_CODE, EXAMINE_SITE, EXAMINE_SOURCE, EXAMINE_START_TIME, EXAMINE_END_TIME, EXECUTOR_ID, EXAMINE_SITUATION, WRIT_NO, TYPE_CODE, EVIDENCE, EXECUTOR_DEPT, EXECUTOR_DEPT_CODE, EXAMINE_TYPE, THREE_SPECIAL_TYPE, ENTERPRISE_UNIT_VERSION, CREATER, CREATETIME, UPDATER, UPDATETIME, SOURCE_DATA, EXPERTS_IN_FLAG, EXPERTS_NAME from sz_enfor_examine
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzEnforExamineList" parameterType="SzEnforExamine" resultMap="SzEnforExamineResult">
|
||||||
|
<include refid="selectSzEnforExamineVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="dmsTimestamp != null "> and dms_timestamp = #{dmsTimestamp}</if>
|
||||||
|
<if test="planExamineId != null and planExamineId != ''"> and PLAN_EXAMINE_ID = #{planExamineId}</if>
|
||||||
|
<if test="entprName != null and entprName != ''"> and ENTPR_NAME like concat('%', #{entprName}, '%')</if>
|
||||||
|
<if test="uscCode != null and uscCode != ''"> and USC_CODE = #{uscCode}</if>
|
||||||
|
<if test="examineSite != null and examineSite != ''"> and EXAMINE_SITE = #{examineSite}</if>
|
||||||
|
<if test="examineSource != null and examineSource != ''"> and EXAMINE_SOURCE = #{examineSource}</if>
|
||||||
|
<if test="examineStartTime != null "> and EXAMINE_START_TIME = #{examineStartTime}</if>
|
||||||
|
<if test="examineEndTime != null "> and EXAMINE_END_TIME = #{examineEndTime}</if>
|
||||||
|
<if test="executorId != null and executorId != ''"> and EXECUTOR_ID = #{executorId}</if>
|
||||||
|
<if test="examineSituation != null and examineSituation != ''"> and EXAMINE_SITUATION = #{examineSituation}</if>
|
||||||
|
<if test="writNo != null and writNo != ''"> and WRIT_NO = #{writNo}</if>
|
||||||
|
<if test="typeCode != null and typeCode != ''"> and TYPE_CODE = #{typeCode}</if>
|
||||||
|
<if test="EVIDENCE != null and EVIDENCE != ''"> and EVIDENCE = #{EVIDENCE}</if>
|
||||||
|
<if test="executorDept != null and executorDept != ''"> and EXECUTOR_DEPT = #{executorDept}</if>
|
||||||
|
<if test="executorDeptCode != null and executorDeptCode != ''"> and EXECUTOR_DEPT_CODE = #{executorDeptCode}</if>
|
||||||
|
<if test="examineType != null and examineType != ''"> and EXAMINE_TYPE = #{examineType}</if>
|
||||||
|
<if test="threeSpecialType != null and threeSpecialType != ''"> and THREE_SPECIAL_TYPE = #{threeSpecialType}</if>
|
||||||
|
<if test="enterpriseUnitVersion != null and enterpriseUnitVersion != ''"> and ENTERPRISE_UNIT_VERSION = #{enterpriseUnitVersion}</if>
|
||||||
|
<if test="CREATER != null and CREATER != ''"> and CREATER = #{CREATER}</if>
|
||||||
|
<if test="CREATETIME != null "> and CREATETIME = #{CREATETIME}</if>
|
||||||
|
<if test="UPDATER != null and UPDATER != ''"> and UPDATER = #{UPDATER}</if>
|
||||||
|
<if test="UPDATETIME != null "> and UPDATETIME = #{UPDATETIME}</if>
|
||||||
|
<if test="sourceData != null and sourceData != ''"> and SOURCE_DATA = #{sourceData}</if>
|
||||||
|
<if test="expertsInFlag != null "> and EXPERTS_IN_FLAG = #{expertsInFlag}</if>
|
||||||
|
<if test="expertsName != null and expertsName != ''"> and EXPERTS_NAME like concat('%', #{expertsName}, '%')</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzEnforExamineByID" parameterType="String" resultMap="SzEnforExamineResult">
|
||||||
|
<include refid="selectSzEnforExamineVo"/>
|
||||||
|
where ID = #{ID}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzEnforExamine" parameterType="SzEnforExamine">
|
||||||
|
insert into sz_enfor_examine
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="dmsTimestamp != null">dms_timestamp,</if>
|
||||||
|
<if test="ID != null">ID,</if>
|
||||||
|
<if test="planExamineId != null">PLAN_EXAMINE_ID,</if>
|
||||||
|
<if test="entprName != null and entprName != ''">ENTPR_NAME,</if>
|
||||||
|
<if test="uscCode != null and uscCode != ''">USC_CODE,</if>
|
||||||
|
<if test="examineSite != null">EXAMINE_SITE,</if>
|
||||||
|
<if test="examineSource != null">EXAMINE_SOURCE,</if>
|
||||||
|
<if test="examineStartTime != null">EXAMINE_START_TIME,</if>
|
||||||
|
<if test="examineEndTime != null">EXAMINE_END_TIME,</if>
|
||||||
|
<if test="executorId != null and executorId != ''">EXECUTOR_ID,</if>
|
||||||
|
<if test="examineSituation != null">EXAMINE_SITUATION,</if>
|
||||||
|
<if test="writNo != null">WRIT_NO,</if>
|
||||||
|
<if test="typeCode != null">TYPE_CODE,</if>
|
||||||
|
<if test="EVIDENCE != null">EVIDENCE,</if>
|
||||||
|
<if test="executorDept != null">EXECUTOR_DEPT,</if>
|
||||||
|
<if test="executorDeptCode != null and executorDeptCode != ''">EXECUTOR_DEPT_CODE,</if>
|
||||||
|
<if test="examineType != null">EXAMINE_TYPE,</if>
|
||||||
|
<if test="threeSpecialType != null">THREE_SPECIAL_TYPE,</if>
|
||||||
|
<if test="enterpriseUnitVersion != null">ENTERPRISE_UNIT_VERSION,</if>
|
||||||
|
<if test="CREATER != null">CREATER,</if>
|
||||||
|
<if test="CREATETIME != null">CREATETIME,</if>
|
||||||
|
<if test="UPDATER != null">UPDATER,</if>
|
||||||
|
<if test="UPDATETIME != null">UPDATETIME,</if>
|
||||||
|
<if test="sourceData != null">SOURCE_DATA,</if>
|
||||||
|
<if test="expertsInFlag != null">EXPERTS_IN_FLAG,</if>
|
||||||
|
<if test="expertsName != null">EXPERTS_NAME,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="dmsTimestamp != null">#{dmsTimestamp},</if>
|
||||||
|
<if test="ID != null">#{ID},</if>
|
||||||
|
<if test="planExamineId != null">#{planExamineId},</if>
|
||||||
|
<if test="entprName != null and entprName != ''">#{entprName},</if>
|
||||||
|
<if test="uscCode != null and uscCode != ''">#{uscCode},</if>
|
||||||
|
<if test="examineSite != null">#{examineSite},</if>
|
||||||
|
<if test="examineSource != null">#{examineSource},</if>
|
||||||
|
<if test="examineStartTime != null">#{examineStartTime},</if>
|
||||||
|
<if test="examineEndTime != null">#{examineEndTime},</if>
|
||||||
|
<if test="executorId != null and executorId != ''">#{executorId},</if>
|
||||||
|
<if test="examineSituation != null">#{examineSituation},</if>
|
||||||
|
<if test="writNo != null">#{writNo},</if>
|
||||||
|
<if test="typeCode != null">#{typeCode},</if>
|
||||||
|
<if test="EVIDENCE != null">#{EVIDENCE},</if>
|
||||||
|
<if test="executorDept != null">#{executorDept},</if>
|
||||||
|
<if test="executorDeptCode != null and executorDeptCode != ''">#{executorDeptCode},</if>
|
||||||
|
<if test="examineType != null">#{examineType},</if>
|
||||||
|
<if test="threeSpecialType != null">#{threeSpecialType},</if>
|
||||||
|
<if test="enterpriseUnitVersion != null">#{enterpriseUnitVersion},</if>
|
||||||
|
<if test="CREATER != null">#{CREATER},</if>
|
||||||
|
<if test="CREATETIME != null">#{CREATETIME},</if>
|
||||||
|
<if test="UPDATER != null">#{UPDATER},</if>
|
||||||
|
<if test="UPDATETIME != null">#{UPDATETIME},</if>
|
||||||
|
<if test="sourceData != null">#{sourceData},</if>
|
||||||
|
<if test="expertsInFlag != null">#{expertsInFlag},</if>
|
||||||
|
<if test="expertsName != null">#{expertsName},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzEnforExamine" parameterType="SzEnforExamine">
|
||||||
|
update sz_enfor_examine
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="dmsTimestamp != null">dms_timestamp = #{dmsTimestamp},</if>
|
||||||
|
<if test="planExamineId != null">PLAN_EXAMINE_ID = #{planExamineId},</if>
|
||||||
|
<if test="entprName != null and entprName != ''">ENTPR_NAME = #{entprName},</if>
|
||||||
|
<if test="uscCode != null and uscCode != ''">USC_CODE = #{uscCode},</if>
|
||||||
|
<if test="examineSite != null">EXAMINE_SITE = #{examineSite},</if>
|
||||||
|
<if test="examineSource != null">EXAMINE_SOURCE = #{examineSource},</if>
|
||||||
|
<if test="examineStartTime != null">EXAMINE_START_TIME = #{examineStartTime},</if>
|
||||||
|
<if test="examineEndTime != null">EXAMINE_END_TIME = #{examineEndTime},</if>
|
||||||
|
<if test="executorId != null and executorId != ''">EXECUTOR_ID = #{executorId},</if>
|
||||||
|
<if test="examineSituation != null">EXAMINE_SITUATION = #{examineSituation},</if>
|
||||||
|
<if test="writNo != null">WRIT_NO = #{writNo},</if>
|
||||||
|
<if test="typeCode != null">TYPE_CODE = #{typeCode},</if>
|
||||||
|
<if test="EVIDENCE != null">EVIDENCE = #{EVIDENCE},</if>
|
||||||
|
<if test="executorDept != null">EXECUTOR_DEPT = #{executorDept},</if>
|
||||||
|
<if test="executorDeptCode != null and executorDeptCode != ''">EXECUTOR_DEPT_CODE = #{executorDeptCode},</if>
|
||||||
|
<if test="examineType != null">EXAMINE_TYPE = #{examineType},</if>
|
||||||
|
<if test="threeSpecialType != null">THREE_SPECIAL_TYPE = #{threeSpecialType},</if>
|
||||||
|
<if test="enterpriseUnitVersion != null">ENTERPRISE_UNIT_VERSION = #{enterpriseUnitVersion},</if>
|
||||||
|
<if test="CREATER != null">CREATER = #{CREATER},</if>
|
||||||
|
<if test="CREATETIME != null">CREATETIME = #{CREATETIME},</if>
|
||||||
|
<if test="UPDATER != null">UPDATER = #{UPDATER},</if>
|
||||||
|
<if test="UPDATETIME != null">UPDATETIME = #{UPDATETIME},</if>
|
||||||
|
<if test="sourceData != null">SOURCE_DATA = #{sourceData},</if>
|
||||||
|
<if test="expertsInFlag != null">EXPERTS_IN_FLAG = #{expertsInFlag},</if>
|
||||||
|
<if test="expertsName != null">EXPERTS_NAME = #{expertsName},</if>
|
||||||
|
</trim>
|
||||||
|
where ID = #{ID}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzEnforExamineByID" parameterType="String">
|
||||||
|
delete from sz_enfor_examine where ID = #{ID}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzEnforExamineByIDs" parameterType="String">
|
||||||
|
delete from sz_enfor_examine where ID in
|
||||||
|
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
||||||
|
#{ID}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
Reference in new issue