Browse Source

移除问卷章节表、问卷细分章节表、问卷二级细分章节表相关文件

wangggziwen 10 months ago
parent
commit
b76ae43f39
27 changed files with 12 additions and 2871 deletions
  1. 0 129
      rc-admin/src/main/java/com/ruoyi/web/controller/rc/TChapController.java
  2. 0 129
      rc-admin/src/main/java/com/ruoyi/web/controller/rc/TSecSubChapController.java
  3. 0 129
      rc-admin/src/main/java/com/ruoyi/web/controller/rc/TSubChapController.java
  4. 0 91
      rc-buisness/src/main/java/com/ruoyi/rc/domain/TChap.java
  5. 0 275
      rc-buisness/src/main/java/com/ruoyi/rc/domain/TSecSubChap.java
  6. 0 105
      rc-buisness/src/main/java/com/ruoyi/rc/domain/TSubChap.java
  7. 0 61
      rc-buisness/src/main/java/com/ruoyi/rc/mapper/TChapMapper.java
  8. 0 61
      rc-buisness/src/main/java/com/ruoyi/rc/mapper/TSecSubChapMapper.java
  9. 0 61
      rc-buisness/src/main/java/com/ruoyi/rc/mapper/TSubChapMapper.java
  10. 0 61
      rc-buisness/src/main/java/com/ruoyi/rc/service/ITChapService.java
  11. 0 61
      rc-buisness/src/main/java/com/ruoyi/rc/service/ITSecSubChapService.java
  12. 0 61
      rc-buisness/src/main/java/com/ruoyi/rc/service/ITSubChapService.java
  13. 0 93
      rc-buisness/src/main/java/com/ruoyi/rc/service/impl/TChapServiceImpl.java
  14. 0 93
      rc-buisness/src/main/java/com/ruoyi/rc/service/impl/TSecSubChapServiceImpl.java
  15. 0 93
      rc-buisness/src/main/java/com/ruoyi/rc/service/impl/TSubChapServiceImpl.java
  16. 0 66
      rc-buisness/src/main/resources/mapper/rc/TChapMapper.xml
  17. 0 131
      rc-buisness/src/main/resources/mapper/rc/TSecSubChapMapper.xml
  18. 0 71
      rc-buisness/src/main/resources/mapper/rc/TSubChapMapper.xml
  19. 0 44
      ruoyi-ui/src/api/rc/chap.js
  20. 0 44
      ruoyi-ui/src/api/rc/secsubchap.js
  21. 0 44
      ruoyi-ui/src/api/rc/subchap.js
  22. 1 1
      ruoyi-ui/src/views/rc/audit/index.vue
  23. 0 265
      ruoyi-ui/src/views/rc/chap/index.vue
  24. 2 2
      ruoyi-ui/src/views/rc/deptinfo/index.vue
  25. 0 402
      ruoyi-ui/src/views/rc/secsubchap/index.vue
  26. 0 279
      ruoyi-ui/src/views/rc/subchap/index.vue
  27. 9 19
      sql/create.sql

+ 0 - 129
rc-admin/src/main/java/com/ruoyi/web/controller/rc/TChapController.java

@@ -1,129 +0,0 @@
-package com.ruoyi.web.controller.rc;
-
-import java.util.List;
-import javax.servlet.http.HttpServletResponse;
-
-import com.ruoyi.common.core.domain.entity.SysDept;
-import com.ruoyi.common.utils.StringUtils;
-import com.ruoyi.rc.domain.TAudit;
-import com.ruoyi.system.service.ISysDeptService;
-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.rc.domain.TChap;
-import com.ruoyi.rc.service.ITChapService;
-import com.ruoyi.common.utils.poi.ExcelUtil;
-import com.ruoyi.common.core.page.TableDataInfo;
-
-/**
- * 问卷章节Controller
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-@RestController
-@RequestMapping("/rc/chap")
-public class TChapController extends BaseController
-{
-    @Autowired
-    private ITChapService tChapService;
-
-    @Autowired
-    private ISysDeptService deptService;
-
-    /**
-     * 查询问卷章节列表
-     */
-    @PreAuthorize("@ss.hasPermi('rc:chap:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(TChap tChap)
-    {
-        startPage();
-        List<TChap> list = tChapService.selectTChapList(tChap);
-        for (TChap obj : list) {
-            String deptId = obj.getDeptId();
-            if (StringUtils.isNotEmpty(deptId)) {
-                if (deptId.indexOf(",") != -1) {
-                    StringBuffer sb = new StringBuffer();
-                    String[] ids = deptId.split(",");
-                    for (String id : ids) {
-                        SysDept sysDept = deptService.selectDeptById(Long.parseLong(id));
-                        sb.append(sysDept.getDeptName()).append(" / ");
-                    }
-                    obj.setDeptName(sb.toString().substring(0, sb.length() - 3));
-                } else {
-                    obj.setDeptName(deptService.selectDeptById(Long.parseLong(deptId)).getDeptName());
-                }
-            }
-        }
-        return getDataTable(list);
-    }
-
-    /**
-     * 导出问卷章节列表
-     */
-    @PreAuthorize("@ss.hasPermi('rc:chap:export')")
-    @Log(title = "问卷章节", businessType = BusinessType.EXPORT)
-    @PostMapping("/export")
-    public void export(HttpServletResponse response, TChap tChap)
-    {
-        List<TChap> list = tChapService.selectTChapList(tChap);
-        ExcelUtil<TChap> util = new ExcelUtil<TChap>(TChap.class);
-        util.exportExcel(response, list, "问卷章节数据");
-    }
-
-    /**
-     * 获取问卷章节详细信息
-     */
-    @PreAuthorize("@ss.hasPermi('rc:chap:query')")
-    @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
-        return success(tChapService.selectTChapById(id));
-    }
-
-    /**
-     * 新增问卷章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:chap:add')")
-    @Log(title = "问卷章节", businessType = BusinessType.INSERT)
-    @PostMapping
-    public AjaxResult add(@RequestBody TChap tChap)
-    {
-        tChap.setDeptId(getLoginUser().getDeptId().toString());
-        return toAjax(tChapService.insertTChap(tChap));
-    }
-
-    /**
-     * 修改问卷章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:chap:edit')")
-    @Log(title = "问卷章节", businessType = BusinessType.UPDATE)
-    @PutMapping
-    public AjaxResult edit(@RequestBody TChap tChap)
-    {
-        return toAjax(tChapService.updateTChap(tChap));
-    }
-
-    /**
-     * 删除问卷章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:chap:remove')")
-    @Log(title = "问卷章节", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
-        return toAjax(tChapService.deleteTChapByIds(ids));
-    }
-}

+ 0 - 129
rc-admin/src/main/java/com/ruoyi/web/controller/rc/TSecSubChapController.java

@@ -1,129 +0,0 @@
-package com.ruoyi.web.controller.rc;
-
-import java.util.List;
-import javax.servlet.http.HttpServletResponse;
-
-import com.ruoyi.common.core.domain.entity.SysDept;
-import com.ruoyi.common.utils.StringUtils;
-import com.ruoyi.rc.domain.TProgress;
-import com.ruoyi.system.service.ISysDeptService;
-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.rc.domain.TSecSubChap;
-import com.ruoyi.rc.service.ITSecSubChapService;
-import com.ruoyi.common.utils.poi.ExcelUtil;
-import com.ruoyi.common.core.page.TableDataInfo;
-
-/**
- * 问卷二级细分章节Controller
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-@RestController
-@RequestMapping("/rc/secsubchap")
-public class TSecSubChapController extends BaseController
-{
-    @Autowired
-    private ITSecSubChapService tSecSubChapService;
-
-    @Autowired
-    private ISysDeptService deptService;
-
-    /**
-     * 查询问卷二级细分章节列表
-     */
-    @PreAuthorize("@ss.hasPermi('rc:secsubchap:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(TSecSubChap tSecSubChap)
-    {
-        startPage();
-        List<TSecSubChap> list = tSecSubChapService.selectTSecSubChapList(tSecSubChap);
-        for (TSecSubChap obj : list) {
-            String deptId = obj.getDeptId();
-            if (StringUtils.isNotEmpty(deptId)) {
-                if (deptId.indexOf(",") != -1) {
-                    StringBuffer sb = new StringBuffer();
-                    String[] ids = deptId.split(",");
-                    for (String id : ids) {
-                        SysDept sysDept = deptService.selectDeptById(Long.parseLong(id));
-                        sb.append(sysDept.getDeptName()).append(" / ");
-                    }
-                    obj.setDeptName(sb.toString().substring(0, sb.length() - 3));
-                } else {
-                    obj.setDeptName(deptService.selectDeptById(Long.parseLong(deptId)).getDeptName());
-                }
-            }
-        }
-        return getDataTable(list);
-    }
-
-    /**
-     * 导出问卷二级细分章节列表
-     */
-    @PreAuthorize("@ss.hasPermi('rc:secsubchap:export')")
-    @Log(title = "问卷二级细分章节", businessType = BusinessType.EXPORT)
-    @PostMapping("/export")
-    public void export(HttpServletResponse response, TSecSubChap tSecSubChap)
-    {
-        List<TSecSubChap> list = tSecSubChapService.selectTSecSubChapList(tSecSubChap);
-        ExcelUtil<TSecSubChap> util = new ExcelUtil<TSecSubChap>(TSecSubChap.class);
-        util.exportExcel(response, list, "问卷二级细分章节数据");
-    }
-
-    /**
-     * 获取问卷二级细分章节详细信息
-     */
-    @PreAuthorize("@ss.hasPermi('rc:secsubchap:query')")
-    @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
-        return success(tSecSubChapService.selectTSecSubChapById(id));
-    }
-
-    /**
-     * 新增问卷二级细分章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:secsubchap:add')")
-    @Log(title = "问卷二级细分章节", businessType = BusinessType.INSERT)
-    @PostMapping
-    public AjaxResult add(@RequestBody TSecSubChap tSecSubChap)
-    {
-        tSecSubChap.setDeptId(getLoginUser().getDeptId().toString());
-        return toAjax(tSecSubChapService.insertTSecSubChap(tSecSubChap));
-    }
-
-    /**
-     * 修改问卷二级细分章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:secsubchap:edit')")
-    @Log(title = "问卷二级细分章节", businessType = BusinessType.UPDATE)
-    @PutMapping
-    public AjaxResult edit(@RequestBody TSecSubChap tSecSubChap)
-    {
-        return toAjax(tSecSubChapService.updateTSecSubChap(tSecSubChap));
-    }
-
-    /**
-     * 删除问卷二级细分章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:secsubchap:remove')")
-    @Log(title = "问卷二级细分章节", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
-        return toAjax(tSecSubChapService.deleteTSecSubChapByIds(ids));
-    }
-}

+ 0 - 129
rc-admin/src/main/java/com/ruoyi/web/controller/rc/TSubChapController.java

@@ -1,129 +0,0 @@
-package com.ruoyi.web.controller.rc;
-
-import java.util.List;
-import javax.servlet.http.HttpServletResponse;
-
-import com.ruoyi.common.core.domain.entity.SysDept;
-import com.ruoyi.common.utils.StringUtils;
-import com.ruoyi.rc.domain.TSecSubChap;
-import com.ruoyi.system.service.ISysDeptService;
-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.rc.domain.TSubChap;
-import com.ruoyi.rc.service.ITSubChapService;
-import com.ruoyi.common.utils.poi.ExcelUtil;
-import com.ruoyi.common.core.page.TableDataInfo;
-
-/**
- * 问卷细分章节Controller
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-@RestController
-@RequestMapping("/rc/subchap")
-public class TSubChapController extends BaseController
-{
-    @Autowired
-    private ITSubChapService tSubChapService;
-
-    @Autowired
-    private ISysDeptService deptService;
-
-    /**
-     * 查询问卷细分章节列表
-     */
-    @PreAuthorize("@ss.hasPermi('rc:subchap:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(TSubChap tSubChap)
-    {
-        startPage();
-        List<TSubChap> list = tSubChapService.selectTSubChapList(tSubChap);
-        for (TSubChap obj : list) {
-            String deptId = obj.getDeptId();
-            if (StringUtils.isNotEmpty(deptId)) {
-                if (deptId.indexOf(",") != -1) {
-                    StringBuffer sb = new StringBuffer();
-                    String[] ids = deptId.split(",");
-                    for (String id : ids) {
-                        SysDept sysDept = deptService.selectDeptById(Long.parseLong(id));
-                        sb.append(sysDept.getDeptName()).append(" / ");
-                    }
-                    obj.setDeptName(sb.toString().substring(0, sb.length() - 3));
-                } else {
-                    obj.setDeptName(deptService.selectDeptById(Long.parseLong(deptId)).getDeptName());
-                }
-            }
-        }
-        return getDataTable(list);
-    }
-
-    /**
-     * 导出问卷细分章节列表
-     */
-    @PreAuthorize("@ss.hasPermi('rc:subchap:export')")
-    @Log(title = "问卷细分章节", businessType = BusinessType.EXPORT)
-    @PostMapping("/export")
-    public void export(HttpServletResponse response, TSubChap tSubChap)
-    {
-        List<TSubChap> list = tSubChapService.selectTSubChapList(tSubChap);
-        ExcelUtil<TSubChap> util = new ExcelUtil<TSubChap>(TSubChap.class);
-        util.exportExcel(response, list, "问卷细分章节数据");
-    }
-
-    /**
-     * 获取问卷细分章节详细信息
-     */
-    @PreAuthorize("@ss.hasPermi('rc:subchap:query')")
-    @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
-        return success(tSubChapService.selectTSubChapById(id));
-    }
-
-    /**
-     * 新增问卷细分章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:subchap:add')")
-    @Log(title = "问卷细分章节", businessType = BusinessType.INSERT)
-    @PostMapping
-    public AjaxResult add(@RequestBody TSubChap tSubChap)
-    {
-        tSubChap.setDeptId(getLoginUser().getDeptId().toString());
-        return toAjax(tSubChapService.insertTSubChap(tSubChap));
-    }
-
-    /**
-     * 修改问卷细分章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:subchap:edit')")
-    @Log(title = "问卷细分章节", businessType = BusinessType.UPDATE)
-    @PutMapping
-    public AjaxResult edit(@RequestBody TSubChap tSubChap)
-    {
-        return toAjax(tSubChapService.updateTSubChap(tSubChap));
-    }
-
-    /**
-     * 删除问卷细分章节
-     */
-    @PreAuthorize("@ss.hasPermi('rc:subchap:remove')")
-    @Log(title = "问卷细分章节", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
-        return toAjax(tSubChapService.deleteTSubChapByIds(ids));
-    }
-}

+ 0 - 91
rc-buisness/src/main/java/com/ruoyi/rc/domain/TChap.java

@@ -1,91 +0,0 @@
-package com.ruoyi.rc.domain;
-
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-import com.ruoyi.common.annotation.Excel;
-import com.ruoyi.common.core.domain.BaseEntity;
-
-/**
- * 问卷章节对象 t_chap
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public class TChap extends BaseEntity
-{
-    private static final long serialVersionUID = 1L;
-
-    /** id */
-    private Long id;
-
-    /** 审计记录id */
-    @Excel(name = "审计记录id")
-    private Long auditId;
-
-    /** 名称 */
-    @Excel(name = "名称")
-    private String name;
-
-    /** 装置id */
-    @Excel(name = "装置id")
-    private String deptId;
-
-    /** 装置 */
-    @Excel(name = "装置")
-    private String deptName;
-
-    public String getDeptName() {
-        return deptName;
-    }
-
-    public void setDeptName(String deptName) {
-        this.deptName = deptName;
-    }
-
-    public void setId(Long id) 
-    {
-        this.id = id;
-    }
-
-    public Long getId() 
-    {
-        return id;
-    }
-    public void setAuditId(Long auditId) 
-    {
-        this.auditId = auditId;
-    }
-
-    public Long getAuditId() 
-    {
-        return auditId;
-    }
-    public void setName(String name) 
-    {
-        this.name = name;
-    }
-
-    public String getName() 
-    {
-        return name;
-    }
-    public void setDeptId(String deptId)
-    {
-        this.deptId = deptId;
-    }
-
-    public String getDeptId()
-    {
-        return deptId;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("auditId", getAuditId())
-            .append("name", getName())
-            .append("deptId", getDeptId())
-            .toString();
-    }
-}

+ 0 - 275
rc-buisness/src/main/java/com/ruoyi/rc/domain/TSecSubChap.java

@@ -1,275 +0,0 @@
-package com.ruoyi.rc.domain;
-
-import java.util.Date;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-import com.ruoyi.common.annotation.Excel;
-import com.ruoyi.common.core.domain.BaseEntity;
-
-/**
- * 问卷二级细分章节对象 t_sec_sub_chap
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public class TSecSubChap extends BaseEntity
-{
-    private static final long serialVersionUID = 1L;
-
-    /** id */
-    private Long id;
-
-    /** 审计记录id */
-    @Excel(name = "审计记录id")
-    private Long auditId;
-
-    /** 问卷细分章节id */
-    @Excel(name = "问卷细分章节id")
-    private Long subChapId;
-
-    /** 年份 */
-    @Excel(name = "年份", width = 30)
-    private String year;
-
-    /** 问卷类型 */
-    @Excel(name = "问卷类型")
-    private String type;
-
-    /** 目录 */
-    @Excel(name = "目录")
-    private String directory;
-
-    /** 序号 */
-    @Excel(name = "序号")
-    private Long code;
-
-    /** 名称 */
-    @Excel(name = "名称")
-    private String name;
-
-    /** YES/NO/NA */
-    @Excel(name = "YES/NO/NA")
-    private String yesNoNa;
-
-    /** MinimumStandard */
-    @Excel(name = "MinimumStandard")
-    private String minimumStandard;
-
-    /** Good Practices */
-    @Excel(name = "Good Practices")
-    private String goodPractices;
-
-    /** 标准 */
-    @Excel(name = "标准")
-    private String standard;
-
-    /** 完成情况 */
-    @Excel(name = "完成情况")
-    private String completionStatus;
-
-    /** 负责人 */
-    @Excel(name = "负责人")
-    private Long personInCharge;
-
-    /** 审核人 */
-    @Excel(name = "审核人")
-    private Long reviewer;
-
-    /** 备注 */
-    @Excel(name = "备注")
-    private String remarks;
-
-    /** 装置id */
-    @Excel(name = "装置id")
-    private String deptId;
-
-    /** 装置 */
-    @Excel(name = "装置")
-    private String deptName;
-
-    public String getDeptName() {
-        return deptName;
-    }
-
-    public void setDeptName(String deptName) {
-        this.deptName = deptName;
-    }
-
-    public void setId(Long id) 
-    {
-        this.id = id;
-    }
-
-    public Long getId() 
-    {
-        return id;
-    }
-    public void setAuditId(Long auditId) 
-    {
-        this.auditId = auditId;
-    }
-
-    public Long getAuditId() 
-    {
-        return auditId;
-    }
-    public void setSubChapId(Long subChapId) 
-    {
-        this.subChapId = subChapId;
-    }
-
-    public Long getSubChapId() 
-    {
-        return subChapId;
-    }
-    public void setYear(String year)
-    {
-        this.year = year;
-    }
-
-    public String getYear()
-    {
-        return year;
-    }
-    public void setType(String type) 
-    {
-        this.type = type;
-    }
-
-    public String getType() 
-    {
-        return type;
-    }
-    public void setDirectory(String directory) 
-    {
-        this.directory = directory;
-    }
-
-    public String getDirectory() 
-    {
-        return directory;
-    }
-    public void setCode(Long code) 
-    {
-        this.code = code;
-    }
-
-    public Long getCode() 
-    {
-        return code;
-    }
-    public void setName(String name) 
-    {
-        this.name = name;
-    }
-
-    public String getName() 
-    {
-        return name;
-    }
-    public void setYesNoNa(String setYesNoNa)
-    {
-        this.yesNoNa = yesNoNa;
-    }
-
-    public String getYesNoNa()
-    {
-        return yesNoNa;
-    }
-    public void setMinimumStandard(String minimumStandard) 
-    {
-        this.minimumStandard = minimumStandard;
-    }
-
-    public String getMinimumStandard() 
-    {
-        return minimumStandard;
-    }
-    public void setGoodPractices(String goodPractices) 
-    {
-        this.goodPractices = goodPractices;
-    }
-
-    public String getGoodPractices() 
-    {
-        return goodPractices;
-    }
-    public void setStandard(String standard)
-    {
-        this.standard = standard;
-    }
-
-    public String getStandard()
-    {
-        return standard;
-    }
-    public void setCompletionStatus(String completionStatus) 
-    {
-        this.completionStatus = completionStatus;
-    }
-
-    public String getCompletionStatus() 
-    {
-        return completionStatus;
-    }
-    public void setPersonInCharge(Long personInCharge) 
-    {
-        this.personInCharge = personInCharge;
-    }
-
-    public Long getPersonInCharge() 
-    {
-        return personInCharge;
-    }
-    public void setReviewer(Long reviewer) 
-    {
-        this.reviewer = reviewer;
-    }
-
-    public Long getReviewer() 
-    {
-        return reviewer;
-    }
-    public void setRemarks(String remarks) 
-    {
-        this.remarks = remarks;
-    }
-
-    public String getRemarks() 
-    {
-        return remarks;
-    }
-    public void setDeptId(String deptId)
-    {
-        this.deptId = deptId;
-    }
-
-    public String getDeptId()
-    {
-        return deptId;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("auditId", getAuditId())
-            .append("subChapId", getSubChapId())
-            .append("year", getYear())
-            .append("type", getType())
-            .append("directory", getDirectory())
-            .append("code", getCode())
-            .append("name", getName())
-            .append("yeaNoNa", getYesNoNa())
-            .append("minimumStandard", getMinimumStandard())
-            .append("goodPractices", getGoodPractices())
-            .append("standard", getStandard())
-            .append("completionStatus", getCompletionStatus())
-            .append("personInCharge", getPersonInCharge())
-            .append("reviewer", getReviewer())
-            .append("remarks", getRemarks())
-            .append("deptId", getDeptId())
-            .toString();
-    }
-}

+ 0 - 105
rc-buisness/src/main/java/com/ruoyi/rc/domain/TSubChap.java

@@ -1,105 +0,0 @@
-package com.ruoyi.rc.domain;
-
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-import com.ruoyi.common.annotation.Excel;
-import com.ruoyi.common.core.domain.BaseEntity;
-
-/**
- * 问卷细分章节对象 t_sub_chap
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public class TSubChap extends BaseEntity
-{
-    private static final long serialVersionUID = 1L;
-
-    /** id */
-    private Long id;
-
-    /** 审计记录id */
-    @Excel(name = "审计记录id")
-    private Long auditId;
-
-    /** 问卷章节id */
-    @Excel(name = "问卷章节id")
-    private Long chapId;
-
-    /** 名称 */
-    @Excel(name = "名称")
-    private String name;
-
-    /** 装置id */
-    @Excel(name = "装置id")
-    private String deptId;
-
-    /** 装置 */
-    @Excel(name = "装置")
-    private String deptName;
-
-    public String getDeptName() {
-        return deptName;
-    }
-
-    public void setDeptName(String deptName) {
-        this.deptName = deptName;
-    }
-
-    public void setId(Long id) 
-    {
-        this.id = id;
-    }
-
-    public Long getId() 
-    {
-        return id;
-    }
-    public void setAuditId(Long auditId) 
-    {
-        this.auditId = auditId;
-    }
-
-    public Long getAuditId() 
-    {
-        return auditId;
-    }
-    public void setChapId(Long chapId) 
-    {
-        this.chapId = chapId;
-    }
-
-    public Long getChapId() 
-    {
-        return chapId;
-    }
-    public void setName(String name) 
-    {
-        this.name = name;
-    }
-
-    public String getName() 
-    {
-        return name;
-    }
-    public void setDeptId(String deptId)
-    {
-        this.deptId = deptId;
-    }
-
-    public String getDeptId()
-    {
-        return deptId;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("auditId", getAuditId())
-            .append("chapId", getChapId())
-            .append("name", getName())
-            .append("deptId", getDeptId())
-            .toString();
-    }
-}

+ 0 - 61
rc-buisness/src/main/java/com/ruoyi/rc/mapper/TChapMapper.java

@@ -1,61 +0,0 @@
-package com.ruoyi.rc.mapper;
-
-import java.util.List;
-import com.ruoyi.rc.domain.TChap;
-
-/**
- * 问卷章节Mapper接口
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public interface TChapMapper 
-{
-    /**
-     * 查询问卷章节
-     * 
-     * @param id 问卷章节主键
-     * @return 问卷章节
-     */
-    public TChap selectTChapById(Long id);
-
-    /**
-     * 查询问卷章节列表
-     * 
-     * @param tChap 问卷章节
-     * @return 问卷章节集合
-     */
-    public List<TChap> selectTChapList(TChap tChap);
-
-    /**
-     * 新增问卷章节
-     * 
-     * @param tChap 问卷章节
-     * @return 结果
-     */
-    public int insertTChap(TChap tChap);
-
-    /**
-     * 修改问卷章节
-     * 
-     * @param tChap 问卷章节
-     * @return 结果
-     */
-    public int updateTChap(TChap tChap);
-
-    /**
-     * 删除问卷章节
-     * 
-     * @param id 问卷章节主键
-     * @return 结果
-     */
-    public int deleteTChapById(Long id);
-
-    /**
-     * 批量删除问卷章节
-     * 
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    public int deleteTChapByIds(Long[] ids);
-}

+ 0 - 61
rc-buisness/src/main/java/com/ruoyi/rc/mapper/TSecSubChapMapper.java

@@ -1,61 +0,0 @@
-package com.ruoyi.rc.mapper;
-
-import java.util.List;
-import com.ruoyi.rc.domain.TSecSubChap;
-
-/**
- * 问卷二级细分章节Mapper接口
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public interface TSecSubChapMapper 
-{
-    /**
-     * 查询问卷二级细分章节
-     * 
-     * @param id 问卷二级细分章节主键
-     * @return 问卷二级细分章节
-     */
-    public TSecSubChap selectTSecSubChapById(Long id);
-
-    /**
-     * 查询问卷二级细分章节列表
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 问卷二级细分章节集合
-     */
-    public List<TSecSubChap> selectTSecSubChapList(TSecSubChap tSecSubChap);
-
-    /**
-     * 新增问卷二级细分章节
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 结果
-     */
-    public int insertTSecSubChap(TSecSubChap tSecSubChap);
-
-    /**
-     * 修改问卷二级细分章节
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 结果
-     */
-    public int updateTSecSubChap(TSecSubChap tSecSubChap);
-
-    /**
-     * 删除问卷二级细分章节
-     * 
-     * @param id 问卷二级细分章节主键
-     * @return 结果
-     */
-    public int deleteTSecSubChapById(Long id);
-
-    /**
-     * 批量删除问卷二级细分章节
-     * 
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    public int deleteTSecSubChapByIds(Long[] ids);
-}

+ 0 - 61
rc-buisness/src/main/java/com/ruoyi/rc/mapper/TSubChapMapper.java

@@ -1,61 +0,0 @@
-package com.ruoyi.rc.mapper;
-
-import java.util.List;
-import com.ruoyi.rc.domain.TSubChap;
-
-/**
- * 问卷细分章节Mapper接口
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public interface TSubChapMapper 
-{
-    /**
-     * 查询问卷细分章节
-     * 
-     * @param id 问卷细分章节主键
-     * @return 问卷细分章节
-     */
-    public TSubChap selectTSubChapById(Long id);
-
-    /**
-     * 查询问卷细分章节列表
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 问卷细分章节集合
-     */
-    public List<TSubChap> selectTSubChapList(TSubChap tSubChap);
-
-    /**
-     * 新增问卷细分章节
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 结果
-     */
-    public int insertTSubChap(TSubChap tSubChap);
-
-    /**
-     * 修改问卷细分章节
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 结果
-     */
-    public int updateTSubChap(TSubChap tSubChap);
-
-    /**
-     * 删除问卷细分章节
-     * 
-     * @param id 问卷细分章节主键
-     * @return 结果
-     */
-    public int deleteTSubChapById(Long id);
-
-    /**
-     * 批量删除问卷细分章节
-     * 
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    public int deleteTSubChapByIds(Long[] ids);
-}

+ 0 - 61
rc-buisness/src/main/java/com/ruoyi/rc/service/ITChapService.java

@@ -1,61 +0,0 @@
-package com.ruoyi.rc.service;
-
-import java.util.List;
-import com.ruoyi.rc.domain.TChap;
-
-/**
- * 问卷章节Service接口
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public interface ITChapService 
-{
-    /**
-     * 查询问卷章节
-     * 
-     * @param id 问卷章节主键
-     * @return 问卷章节
-     */
-    public TChap selectTChapById(Long id);
-
-    /**
-     * 查询问卷章节列表
-     * 
-     * @param tChap 问卷章节
-     * @return 问卷章节集合
-     */
-    public List<TChap> selectTChapList(TChap tChap);
-
-    /**
-     * 新增问卷章节
-     * 
-     * @param tChap 问卷章节
-     * @return 结果
-     */
-    public int insertTChap(TChap tChap);
-
-    /**
-     * 修改问卷章节
-     * 
-     * @param tChap 问卷章节
-     * @return 结果
-     */
-    public int updateTChap(TChap tChap);
-
-    /**
-     * 批量删除问卷章节
-     * 
-     * @param ids 需要删除的问卷章节主键集合
-     * @return 结果
-     */
-    public int deleteTChapByIds(Long[] ids);
-
-    /**
-     * 删除问卷章节信息
-     * 
-     * @param id 问卷章节主键
-     * @return 结果
-     */
-    public int deleteTChapById(Long id);
-}

+ 0 - 61
rc-buisness/src/main/java/com/ruoyi/rc/service/ITSecSubChapService.java

@@ -1,61 +0,0 @@
-package com.ruoyi.rc.service;
-
-import java.util.List;
-import com.ruoyi.rc.domain.TSecSubChap;
-
-/**
- * 问卷二级细分章节Service接口
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public interface ITSecSubChapService 
-{
-    /**
-     * 查询问卷二级细分章节
-     * 
-     * @param id 问卷二级细分章节主键
-     * @return 问卷二级细分章节
-     */
-    public TSecSubChap selectTSecSubChapById(Long id);
-
-    /**
-     * 查询问卷二级细分章节列表
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 问卷二级细分章节集合
-     */
-    public List<TSecSubChap> selectTSecSubChapList(TSecSubChap tSecSubChap);
-
-    /**
-     * 新增问卷二级细分章节
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 结果
-     */
-    public int insertTSecSubChap(TSecSubChap tSecSubChap);
-
-    /**
-     * 修改问卷二级细分章节
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 结果
-     */
-    public int updateTSecSubChap(TSecSubChap tSecSubChap);
-
-    /**
-     * 批量删除问卷二级细分章节
-     * 
-     * @param ids 需要删除的问卷二级细分章节主键集合
-     * @return 结果
-     */
-    public int deleteTSecSubChapByIds(Long[] ids);
-
-    /**
-     * 删除问卷二级细分章节信息
-     * 
-     * @param id 问卷二级细分章节主键
-     * @return 结果
-     */
-    public int deleteTSecSubChapById(Long id);
-}

+ 0 - 61
rc-buisness/src/main/java/com/ruoyi/rc/service/ITSubChapService.java

@@ -1,61 +0,0 @@
-package com.ruoyi.rc.service;
-
-import java.util.List;
-import com.ruoyi.rc.domain.TSubChap;
-
-/**
- * 问卷细分章节Service接口
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-public interface ITSubChapService 
-{
-    /**
-     * 查询问卷细分章节
-     * 
-     * @param id 问卷细分章节主键
-     * @return 问卷细分章节
-     */
-    public TSubChap selectTSubChapById(Long id);
-
-    /**
-     * 查询问卷细分章节列表
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 问卷细分章节集合
-     */
-    public List<TSubChap> selectTSubChapList(TSubChap tSubChap);
-
-    /**
-     * 新增问卷细分章节
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 结果
-     */
-    public int insertTSubChap(TSubChap tSubChap);
-
-    /**
-     * 修改问卷细分章节
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 结果
-     */
-    public int updateTSubChap(TSubChap tSubChap);
-
-    /**
-     * 批量删除问卷细分章节
-     * 
-     * @param ids 需要删除的问卷细分章节主键集合
-     * @return 结果
-     */
-    public int deleteTSubChapByIds(Long[] ids);
-
-    /**
-     * 删除问卷细分章节信息
-     * 
-     * @param id 问卷细分章节主键
-     * @return 结果
-     */
-    public int deleteTSubChapById(Long id);
-}

+ 0 - 93
rc-buisness/src/main/java/com/ruoyi/rc/service/impl/TChapServiceImpl.java

@@ -1,93 +0,0 @@
-package com.ruoyi.rc.service.impl;
-
-import java.util.List;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import com.ruoyi.rc.mapper.TChapMapper;
-import com.ruoyi.rc.domain.TChap;
-import com.ruoyi.rc.service.ITChapService;
-
-/**
- * 问卷章节Service业务层处理
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-@Service
-public class TChapServiceImpl implements ITChapService 
-{
-    @Autowired
-    private TChapMapper tChapMapper;
-
-    /**
-     * 查询问卷章节
-     * 
-     * @param id 问卷章节主键
-     * @return 问卷章节
-     */
-    @Override
-    public TChap selectTChapById(Long id)
-    {
-        return tChapMapper.selectTChapById(id);
-    }
-
-    /**
-     * 查询问卷章节列表
-     * 
-     * @param tChap 问卷章节
-     * @return 问卷章节
-     */
-    @Override
-    public List<TChap> selectTChapList(TChap tChap)
-    {
-        return tChapMapper.selectTChapList(tChap);
-    }
-
-    /**
-     * 新增问卷章节
-     * 
-     * @param tChap 问卷章节
-     * @return 结果
-     */
-    @Override
-    public int insertTChap(TChap tChap)
-    {
-        return tChapMapper.insertTChap(tChap);
-    }
-
-    /**
-     * 修改问卷章节
-     * 
-     * @param tChap 问卷章节
-     * @return 结果
-     */
-    @Override
-    public int updateTChap(TChap tChap)
-    {
-        return tChapMapper.updateTChap(tChap);
-    }
-
-    /**
-     * 批量删除问卷章节
-     * 
-     * @param ids 需要删除的问卷章节主键
-     * @return 结果
-     */
-    @Override
-    public int deleteTChapByIds(Long[] ids)
-    {
-        return tChapMapper.deleteTChapByIds(ids);
-    }
-
-    /**
-     * 删除问卷章节信息
-     * 
-     * @param id 问卷章节主键
-     * @return 结果
-     */
-    @Override
-    public int deleteTChapById(Long id)
-    {
-        return tChapMapper.deleteTChapById(id);
-    }
-}

+ 0 - 93
rc-buisness/src/main/java/com/ruoyi/rc/service/impl/TSecSubChapServiceImpl.java

@@ -1,93 +0,0 @@
-package com.ruoyi.rc.service.impl;
-
-import java.util.List;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import com.ruoyi.rc.mapper.TSecSubChapMapper;
-import com.ruoyi.rc.domain.TSecSubChap;
-import com.ruoyi.rc.service.ITSecSubChapService;
-
-/**
- * 问卷二级细分章节Service业务层处理
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-@Service
-public class TSecSubChapServiceImpl implements ITSecSubChapService 
-{
-    @Autowired
-    private TSecSubChapMapper tSecSubChapMapper;
-
-    /**
-     * 查询问卷二级细分章节
-     * 
-     * @param id 问卷二级细分章节主键
-     * @return 问卷二级细分章节
-     */
-    @Override
-    public TSecSubChap selectTSecSubChapById(Long id)
-    {
-        return tSecSubChapMapper.selectTSecSubChapById(id);
-    }
-
-    /**
-     * 查询问卷二级细分章节列表
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 问卷二级细分章节
-     */
-    @Override
-    public List<TSecSubChap> selectTSecSubChapList(TSecSubChap tSecSubChap)
-    {
-        return tSecSubChapMapper.selectTSecSubChapList(tSecSubChap);
-    }
-
-    /**
-     * 新增问卷二级细分章节
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 结果
-     */
-    @Override
-    public int insertTSecSubChap(TSecSubChap tSecSubChap)
-    {
-        return tSecSubChapMapper.insertTSecSubChap(tSecSubChap);
-    }
-
-    /**
-     * 修改问卷二级细分章节
-     * 
-     * @param tSecSubChap 问卷二级细分章节
-     * @return 结果
-     */
-    @Override
-    public int updateTSecSubChap(TSecSubChap tSecSubChap)
-    {
-        return tSecSubChapMapper.updateTSecSubChap(tSecSubChap);
-    }
-
-    /**
-     * 批量删除问卷二级细分章节
-     * 
-     * @param ids 需要删除的问卷二级细分章节主键
-     * @return 结果
-     */
-    @Override
-    public int deleteTSecSubChapByIds(Long[] ids)
-    {
-        return tSecSubChapMapper.deleteTSecSubChapByIds(ids);
-    }
-
-    /**
-     * 删除问卷二级细分章节信息
-     * 
-     * @param id 问卷二级细分章节主键
-     * @return 结果
-     */
-    @Override
-    public int deleteTSecSubChapById(Long id)
-    {
-        return tSecSubChapMapper.deleteTSecSubChapById(id);
-    }
-}

+ 0 - 93
rc-buisness/src/main/java/com/ruoyi/rc/service/impl/TSubChapServiceImpl.java

@@ -1,93 +0,0 @@
-package com.ruoyi.rc.service.impl;
-
-import java.util.List;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import com.ruoyi.rc.mapper.TSubChapMapper;
-import com.ruoyi.rc.domain.TSubChap;
-import com.ruoyi.rc.service.ITSubChapService;
-
-/**
- * 问卷细分章节Service业务层处理
- * 
- * @author ruoyi
- * @date 2024-07-19
- */
-@Service
-public class TSubChapServiceImpl implements ITSubChapService 
-{
-    @Autowired
-    private TSubChapMapper tSubChapMapper;
-
-    /**
-     * 查询问卷细分章节
-     * 
-     * @param id 问卷细分章节主键
-     * @return 问卷细分章节
-     */
-    @Override
-    public TSubChap selectTSubChapById(Long id)
-    {
-        return tSubChapMapper.selectTSubChapById(id);
-    }
-
-    /**
-     * 查询问卷细分章节列表
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 问卷细分章节
-     */
-    @Override
-    public List<TSubChap> selectTSubChapList(TSubChap tSubChap)
-    {
-        return tSubChapMapper.selectTSubChapList(tSubChap);
-    }
-
-    /**
-     * 新增问卷细分章节
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 结果
-     */
-    @Override
-    public int insertTSubChap(TSubChap tSubChap)
-    {
-        return tSubChapMapper.insertTSubChap(tSubChap);
-    }
-
-    /**
-     * 修改问卷细分章节
-     * 
-     * @param tSubChap 问卷细分章节
-     * @return 结果
-     */
-    @Override
-    public int updateTSubChap(TSubChap tSubChap)
-    {
-        return tSubChapMapper.updateTSubChap(tSubChap);
-    }
-
-    /**
-     * 批量删除问卷细分章节
-     * 
-     * @param ids 需要删除的问卷细分章节主键
-     * @return 结果
-     */
-    @Override
-    public int deleteTSubChapByIds(Long[] ids)
-    {
-        return tSubChapMapper.deleteTSubChapByIds(ids);
-    }
-
-    /**
-     * 删除问卷细分章节信息
-     * 
-     * @param id 问卷细分章节主键
-     * @return 结果
-     */
-    @Override
-    public int deleteTSubChapById(Long id)
-    {
-        return tSubChapMapper.deleteTSubChapById(id);
-    }
-}

+ 0 - 66
rc-buisness/src/main/resources/mapper/rc/TChapMapper.xml

@@ -1,66 +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.rc.mapper.TChapMapper">
-    
-    <resultMap type="TChap" id="TChapResult">
-        <result property="id"    column="id"    />
-        <result property="auditId"    column="audit_id"    />
-        <result property="name"    column="name"    />
-        <result property="deptId"    column="dept_id"    />
-    </resultMap>
-
-    <sql id="selectTChapVo">
-        select id, audit_id, name, dept_id from t_chap
-    </sql>
-
-    <select id="selectTChapList" parameterType="TChap" resultMap="TChapResult">
-        <include refid="selectTChapVo"/>
-        <where>  
-            <if test="auditId != null "> and audit_id = #{auditId}</if>
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-            <if test="deptId != null "> and dept_id like concat(concat('%', #{deptId}), '%')</if>
-        </where>
-    </select>
-    
-    <select id="selectTChapById" parameterType="Long" resultMap="TChapResult">
-        <include refid="selectTChapVo"/>
-        where id = #{id}
-    </select>
-
-    <insert id="insertTChap" parameterType="TChap" useGeneratedKeys="true" keyProperty="id">
-        insert into t_chap
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="auditId != null">audit_id,</if>
-            <if test="name != null">name,</if>
-            <if test="deptId != null">dept_id,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="auditId != null">#{auditId},</if>
-            <if test="name != null">#{name},</if>
-            <if test="deptId != null">#{deptId},</if>
-         </trim>
-    </insert>
-
-    <update id="updateTChap" parameterType="TChap">
-        update t_chap
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="auditId != null">audit_id = #{auditId},</if>
-            <if test="name != null">name = #{name},</if>
-            <if test="deptId != null">dept_id = #{deptId},</if>
-        </trim>
-        where id = #{id}
-    </update>
-
-    <delete id="deleteTChapById" parameterType="Long">
-        delete from t_chap where id = #{id}
-    </delete>
-
-    <delete id="deleteTChapByIds" parameterType="String">
-        delete from t_chap where id in 
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-</mapper>

+ 0 - 131
rc-buisness/src/main/resources/mapper/rc/TSecSubChapMapper.xml

@@ -1,131 +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.rc.mapper.TSecSubChapMapper">
-    
-    <resultMap type="TSecSubChap" id="TSecSubChapResult">
-        <result property="id"    column="id"    />
-        <result property="auditId"    column="audit_id"    />
-        <result property="subChapId"    column="sub_chap_id"    />
-        <result property="year"    column="year"    />
-        <result property="type"    column="type"    />
-        <result property="directory"    column="directory"    />
-        <result property="code"    column="code"    />
-        <result property="name"    column="name"    />
-        <result property="yesNoNa"    column="yes_no_na"    />
-        <result property="minimumStandard"    column="minimum_standard"    />
-        <result property="goodPractices"    column="good_practices"    />
-        <result property="standard"    column="standard"    />
-        <result property="completionStatus"    column="completion_status"    />
-        <result property="personInCharge"    column="person_in_charge"    />
-        <result property="reviewer"    column="reviewer"    />
-        <result property="remarks"    column="remarks"    />
-        <result property="deptId"    column="dept_id"    />
-    </resultMap>
-
-    <sql id="selectTSecSubChapVo">
-        select id, audit_id, sub_chap_id, year, type, directory, code, name, yes_no_na, minimum_standard, good_practices, standard, completion_status, person_in_charge, reviewer, remarks, dept_id from t_sec_sub_chap
-    </sql>
-
-    <select id="selectTSecSubChapList" parameterType="TSecSubChap" resultMap="TSecSubChapResult">
-        <include refid="selectTSecSubChapVo"/>
-        <where>  
-            <if test="auditId != null "> and audit_id = #{auditId}</if>
-            <if test="subChapId != null "> and sub_chap_id = #{subChapId}</if>
-            <if test="year != null  and year != ''"> and year = #{year}</if>
-            <if test="type != null  and type != ''"> and type = #{type}</if>
-            <if test="directory != null  and directory != ''"> and directory = #{directory}</if>
-            <if test="code != null "> and code = #{code}</if>
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-            <if test="yesNoNa != null  and yesNoNa != ''"> and yes_no_na = #{yesNoNa}</if>
-            <if test="minimumStandard != null  and minimumStandard != ''"> and minimum_standard = #{minimumStandard}</if>
-            <if test="goodPractices != null  and goodPractices != ''"> and good_practices = #{goodPractices}</if>
-            <if test="standard != null  and standard != ''"> and standard = #{standard}</if>
-            <if test="completionStatus != null  and completionStatus != ''"> and completion_status = #{completionStatus}</if>
-            <if test="personInCharge != null "> and person_in_charge = #{personInCharge}</if>
-            <if test="reviewer != null "> and reviewer = #{reviewer}</if>
-            <if test="remarks != null  and remarks != ''"> and remarks = #{remarks}</if>
-            <if test="deptId != null "> and dept_id like concat(concat('%', #{deptId}), '%')</if>
-        </where>
-    </select>
-    
-    <select id="selectTSecSubChapById" parameterType="Long" resultMap="TSecSubChapResult">
-        <include refid="selectTSecSubChapVo"/>
-        where id = #{id}
-    </select>
-
-    <insert id="insertTSecSubChap" parameterType="TSecSubChap" useGeneratedKeys="true" keyProperty="id">
-        insert into t_sec_sub_chap
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="auditId != null">audit_id,</if>
-            <if test="subChapId != null">sub_chap_id,</if>
-            <if test="year != null">year,</if>
-            <if test="type != null">type,</if>
-            <if test="directory != null">directory,</if>
-            <if test="code != null">code,</if>
-            <if test="name != null">name,</if>
-            <if test="yesNoNa != null">yes_no_na,</if>
-            <if test="minimumStandard != null">minimum_standard,</if>
-            <if test="goodPractices != null">good_practices,</if>
-            <if test="standard != null">standard,</if>
-            <if test="completionStatus != null">completion_status,</if>
-            <if test="personInCharge != null">person_in_charge,</if>
-            <if test="reviewer != null">reviewer,</if>
-            <if test="remarks != null">remarks,</if>
-            <if test="deptId != null">dept_id,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="auditId != null">#{auditId},</if>
-            <if test="subChapId != null">#{subChapId},</if>
-            <if test="year != null">#{year},</if>
-            <if test="type != null">#{type},</if>
-            <if test="directory != null">#{directory},</if>
-            <if test="code != null">#{code},</if>
-            <if test="name != null">#{name},</if>
-            <if test="yesNoNa != null">#{yesNoNa},</if>
-            <if test="minimumStandard != null">#{minimumStandard},</if>
-            <if test="goodPractices != null">#{goodPractices},</if>
-            <if test="standard != null">#{standard},</if>
-            <if test="completionStatus != null">#{completionStatus},</if>
-            <if test="personInCharge != null">#{personInCharge},</if>
-            <if test="reviewer != null">#{reviewer},</if>
-            <if test="remarks != null">#{remarks},</if>
-            <if test="deptId != null">#{deptId},</if>
-         </trim>
-    </insert>
-
-    <update id="updateTSecSubChap" parameterType="TSecSubChap">
-        update t_sec_sub_chap
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="auditId != null">audit_id = #{auditId},</if>
-            <if test="subChapId != null">sub_chap_id = #{subChapId},</if>
-            <if test="year != null">year = #{year},</if>
-            <if test="type != null">type = #{type},</if>
-            <if test="directory != null">directory = #{directory},</if>
-            <if test="code != null">code = #{code},</if>
-            <if test="name != null">name = #{name},</if>
-            <if test="yesNoNa != null">yes_no_na = #{yesNoNa},</if>
-            <if test="minimumStandard != null">minimum_standard = #{minimumStandard},</if>
-            <if test="goodPractices != null">good_practices = #{goodPractices},</if>
-            <if test="standard != null">standard = #{standard},</if>
-            <if test="completionStatus != null">completion_status = #{completionStatus},</if>
-            <if test="personInCharge != null">person_in_charge = #{personInCharge},</if>
-            <if test="reviewer != null">reviewer = #{reviewer},</if>
-            <if test="remarks != null">remarks = #{remarks},</if>
-            <if test="deptId != null">dept_id = #{deptId},</if>
-        </trim>
-        where id = #{id}
-    </update>
-
-    <delete id="deleteTSecSubChapById" parameterType="Long">
-        delete from t_sec_sub_chap where id = #{id}
-    </delete>
-
-    <delete id="deleteTSecSubChapByIds" parameterType="String">
-        delete from t_sec_sub_chap where id in 
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-</mapper>

+ 0 - 71
rc-buisness/src/main/resources/mapper/rc/TSubChapMapper.xml

@@ -1,71 +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.rc.mapper.TSubChapMapper">
-    
-    <resultMap type="TSubChap" id="TSubChapResult">
-        <result property="id"    column="id"    />
-        <result property="auditId"    column="audit_id"    />
-        <result property="chapId"    column="chap_id"    />
-        <result property="name"    column="name"    />
-        <result property="deptId"    column="dept_id"    />
-    </resultMap>
-
-    <sql id="selectTSubChapVo">
-        select id, audit_id, chap_id, name, dept_id from t_sub_chap
-    </sql>
-
-    <select id="selectTSubChapList" parameterType="TSubChap" resultMap="TSubChapResult">
-        <include refid="selectTSubChapVo"/>
-        <where>  
-            <if test="auditId != null "> and audit_id = #{auditId}</if>
-            <if test="chapId != null "> and chap_id = #{chapId}</if>
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-            <if test="deptId != null "> and dept_id like concat(concat('%', #{deptId}), '%')</if>
-        </where>
-    </select>
-    
-    <select id="selectTSubChapById" parameterType="Long" resultMap="TSubChapResult">
-        <include refid="selectTSubChapVo"/>
-        where id = #{id}
-    </select>
-
-    <insert id="insertTSubChap" parameterType="TSubChap" useGeneratedKeys="true" keyProperty="id">
-        insert into t_sub_chap
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="auditId != null">audit_id,</if>
-            <if test="chapId != null">chap_id,</if>
-            <if test="name != null">name,</if>
-            <if test="deptId != null">dept_id,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="auditId != null">#{auditId},</if>
-            <if test="chapId != null">#{chapId},</if>
-            <if test="name != null">#{name},</if>
-            <if test="deptId != null">#{deptId},</if>
-         </trim>
-    </insert>
-
-    <update id="updateTSubChap" parameterType="TSubChap">
-        update t_sub_chap
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="auditId != null">audit_id = #{auditId},</if>
-            <if test="chapId != null">chap_id = #{chapId},</if>
-            <if test="name != null">name = #{name},</if>
-            <if test="deptId != null">dept_id = #{deptId},</if>
-        </trim>
-        where id = #{id}
-    </update>
-
-    <delete id="deleteTSubChapById" parameterType="Long">
-        delete from t_sub_chap where id = #{id}
-    </delete>
-
-    <delete id="deleteTSubChapByIds" parameterType="String">
-        delete from t_sub_chap where id in 
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-</mapper>

+ 0 - 44
ruoyi-ui/src/api/rc/chap.js

@@ -1,44 +0,0 @@
-import request from '@/utils/request'
-
-// 查询问卷章节列表
-export function listChap(query) {
-  return request({
-    url: '/rc/chap/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询问卷章节详细
-export function getChap(id) {
-  return request({
-    url: '/rc/chap/' + id,
-    method: 'get'
-  })
-}
-
-// 新增问卷章节
-export function addChap(data) {
-  return request({
-    url: '/rc/chap',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改问卷章节
-export function updateChap(data) {
-  return request({
-    url: '/rc/chap',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除问卷章节
-export function delChap(id) {
-  return request({
-    url: '/rc/chap/' + id,
-    method: 'delete'
-  })
-}

+ 0 - 44
ruoyi-ui/src/api/rc/secsubchap.js

@@ -1,44 +0,0 @@
-import request from '@/utils/request'
-
-// 查询问卷二级细分章节列表
-export function listSecsubchap(query) {
-  return request({
-    url: '/rc/secsubchap/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询问卷二级细分章节详细
-export function getSecsubchap(id) {
-  return request({
-    url: '/rc/secsubchap/' + id,
-    method: 'get'
-  })
-}
-
-// 新增问卷二级细分章节
-export function addSecsubchap(data) {
-  return request({
-    url: '/rc/secsubchap',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改问卷二级细分章节
-export function updateSecsubchap(data) {
-  return request({
-    url: '/rc/secsubchap',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除问卷二级细分章节
-export function delSecsubchap(id) {
-  return request({
-    url: '/rc/secsubchap/' + id,
-    method: 'delete'
-  })
-}

+ 0 - 44
ruoyi-ui/src/api/rc/subchap.js

@@ -1,44 +0,0 @@
-import request from '@/utils/request'
-
-// 查询问卷细分章节列表
-export function listSubchap(query) {
-  return request({
-    url: '/rc/subchap/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询问卷细分章节详细
-export function getSubchap(id) {
-  return request({
-    url: '/rc/subchap/' + id,
-    method: 'get'
-  })
-}
-
-// 新增问卷细分章节
-export function addSubchap(data) {
-  return request({
-    url: '/rc/subchap',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改问卷细分章节
-export function updateSubchap(data) {
-  return request({
-    url: '/rc/subchap',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除问卷细分章节
-export function delSubchap(id) {
-  return request({
-    url: '/rc/subchap/' + id,
-    method: 'delete'
-  })
-}

+ 1 - 1
ruoyi-ui/src/views/rc/audit/index.vue

@@ -90,7 +90,7 @@
     <el-table border v-loading="loading" :data="auditList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="装置" align="center" prop="deptName" />
-      <el-table-column label="年份" align="center" prop="year" width="180">
+      <el-table-column label="年份" align="center" prop="year">
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.year, '{y}') }}</span>
         </template>

+ 0 - 265
ruoyi-ui/src/views/rc/chap/index.vue

@@ -1,265 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-      <el-form-item label="审计记录id" prop="auditId">
-        <el-input
-          v-model="queryParams.auditId"
-          placeholder="请输入审计记录id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="装置id" prop="deptId">
-        <el-input
-          v-model="queryParams.deptId"
-          placeholder="请输入装置id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item>
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
-      </el-form-item>
-    </el-form>
-
-    <el-row :gutter="10" class="mb8">
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          v-hasPermi="['rc:chap:add']"
-        >新增</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleUpdate"
-          v-hasPermi="['rc:chap:edit']"
-        >修改</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="danger"
-          plain
-          icon="el-icon-delete"
-          size="mini"
-          :disabled="multiple"
-          @click="handleDelete"
-          v-hasPermi="['rc:chap:remove']"
-        >删除</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          v-hasPermi="['rc:chap:export']"
-        >导出</el-button>
-      </el-col>
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
-    </el-row>
-
-    <el-table border v-loading="loading" :data="chapList" @selection-change="handleSelectionChange">
-      <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="id" align="center" prop="id" />
-      <el-table-column label="审计记录id" align="center" prop="auditId" />
-      <el-table-column label="名称" align="center" prop="name" />
-      <el-table-column label="装置id" align="center" prop="deptId" />
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
-        <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['rc:chap:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['rc:chap:remove']"
-          >删除</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    
-    <pagination
-      v-show="total>0"
-      :total="total"
-      :page.sync="queryParams.pageNum"
-      :limit.sync="queryParams.pageSize"
-      @pagination="getList"
-    />
-
-    <!-- 添加或修改问卷章节对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-        <el-form-item label="审计记录id" prop="auditId">
-          <el-input v-model="form.auditId" placeholder="请输入审计记录id" />
-        </el-form-item>
-        <el-form-item label="名称" prop="name">
-          <el-input v-model="form.name" type="textarea" placeholder="请输入内容" />
-        </el-form-item>
-        <el-form-item label="装置id" prop="deptId">
-          <el-input v-model="form.deptId" placeholder="请输入装置id" />
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-import { listChap, getChap, delChap, addChap, updateChap } from "@/api/rc/chap";
-
-export default {
-  name: "Chap",
-  data() {
-    return {
-      // 遮罩层
-      loading: true,
-      // 选中数组
-      ids: [],
-      // 非单个禁用
-      single: true,
-      // 非多个禁用
-      multiple: true,
-      // 显示搜索条件
-      showSearch: true,
-      // 总条数
-      total: 0,
-      // 问卷章节表格数据
-      chapList: [],
-      // 弹出层标题
-      title: "",
-      // 是否显示弹出层
-      open: false,
-      // 查询参数
-      queryParams: {
-        pageNum: 1,
-        pageSize: 10,
-        auditId: null,
-        name: null,
-        deptId: null
-      },
-      // 表单参数
-      form: {},
-      // 表单校验
-      rules: {
-      }
-    };
-  },
-  created() {
-    this.getList();
-  },
-  methods: {
-    /** 查询问卷章节列表 */
-    getList() {
-      this.loading = true;
-      listChap(this.queryParams).then(response => {
-        this.chapList = response.rows;
-        this.total = response.total;
-        this.loading = false;
-      });
-    },
-    // 取消按钮
-    cancel() {
-      this.open = false;
-      this.reset();
-    },
-    // 表单重置
-    reset() {
-      this.form = {
-        id: null,
-        auditId: null,
-        name: null,
-        deptId: null
-      };
-      this.resetForm("form");
-    },
-    /** 搜索按钮操作 */
-    handleQuery() {
-      this.queryParams.pageNum = 1;
-      this.getList();
-    },
-    /** 重置按钮操作 */
-    resetQuery() {
-      this.resetForm("queryForm");
-      this.handleQuery();
-    },
-    // 多选框选中数据
-    handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.id)
-      this.single = selection.length!==1
-      this.multiple = !selection.length
-    },
-    /** 新增按钮操作 */
-    handleAdd() {
-      this.reset();
-      this.open = true;
-      this.title = "添加问卷章节";
-    },
-    /** 修改按钮操作 */
-    handleUpdate(row) {
-      this.reset();
-      const id = row.id || this.ids
-      getChap(id).then(response => {
-        this.form = response.data;
-        this.open = true;
-        this.title = "修改问卷章节";
-      });
-    },
-    /** 提交按钮 */
-    submitForm() {
-      this.$refs["form"].validate(valid => {
-        if (valid) {
-          if (this.form.id != null) {
-            updateChap(this.form).then(response => {
-              this.$modal.msgSuccess("修改成功");
-              this.open = false;
-              this.getList();
-            });
-          } else {
-            addChap(this.form).then(response => {
-              this.$modal.msgSuccess("新增成功");
-              this.open = false;
-              this.getList();
-            });
-          }
-        }
-      });
-    },
-    /** 删除按钮操作 */
-    handleDelete(row) {
-      const ids = row.id || this.ids;
-      this.$modal.confirm('是否确认删除问卷章节编号为"' + ids + '"的数据项?').then(function() {
-        return delChap(ids);
-      }).then(() => {
-        this.getList();
-        this.$modal.msgSuccess("删除成功");
-      }).catch(() => {});
-    },
-    /** 导出按钮操作 */
-    handleExport() {
-      this.download('rc/chap/export', {
-        ...this.queryParams
-      }, `chap_${new Date().getTime()}.xlsx`)
-    }
-  }
-};
-</script>

+ 2 - 2
ruoyi-ui/src/views/rc/deptinfo/index.vue

@@ -74,13 +74,13 @@
     <el-table border v-loading="loading" :data="deptinfoList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="装置" align="center" prop="deptName" />
-      <el-table-column label="年份" align="center" prop="year" width="180">
+      <el-table-column label="年份" align="center" prop="year">
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.year, '{y}') }}</span>
         </template>
       </el-table-column>
       <el-table-column label="装置信息" align="center" prop="deptInfo" />
-      <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" width="120" fixed="right" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
             size="mini"

+ 0 - 402
ruoyi-ui/src/views/rc/secsubchap/index.vue

@@ -1,402 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-      <el-form-item label="年份" prop="year">
-        <el-date-picker clearable
-                        v-model="queryParams.year"
-                        type="year"
-                        value-format="yyyy"
-                        placeholder="请选择年份">
-        </el-date-picker>
-      </el-form-item>
-      <el-form-item label="审计记录id" prop="auditId">
-        <el-input
-          v-model="queryParams.auditId"
-          placeholder="请输入审计记录id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="问卷细分章节id" prop="subChapId">
-        <el-input
-          v-model="queryParams.subChapId"
-          placeholder="请输入问卷细分章节id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="序号" prop="code">
-        <el-input
-          v-model="queryParams.code"
-          placeholder="请输入序号"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="YES/NO/NA" prop="yesNoNa">
-        <el-input
-          v-model="queryParams.yesNoNa"
-          placeholder="请输入YES/NO/NA"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="标准" prop="standard">
-        <el-input
-          v-model="queryParams.standard"
-          placeholder="请输入标准"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="负责人" prop="personInCharge">
-        <el-input
-          v-model="queryParams.personInCharge"
-          placeholder="请输入负责人"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="审核人" prop="reviewer">
-        <el-input
-          v-model="queryParams.reviewer"
-          placeholder="请输入审核人"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="装置id" prop="deptId">
-        <el-input
-          v-model="queryParams.deptId"
-          placeholder="请输入装置id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item>
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
-      </el-form-item>
-    </el-form>
-
-    <el-row :gutter="10" class="mb8">
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          v-hasPermi="['rc:secsubchap:add']"
-        >新增</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleUpdate"
-          v-hasPermi="['rc:secsubchap:edit']"
-        >修改</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="danger"
-          plain
-          icon="el-icon-delete"
-          size="mini"
-          :disabled="multiple"
-          @click="handleDelete"
-          v-hasPermi="['rc:secsubchap:remove']"
-        >删除</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          v-hasPermi="['rc:secsubchap:export']"
-        >导出</el-button>
-      </el-col>
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
-    </el-row>
-
-    <el-table border v-loading="loading" :data="secsubchapList" @selection-change="handleSelectionChange">
-      <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="id" align="center" prop="id" />
-      <el-table-column label="审计记录id" align="center" prop="auditId" />
-      <el-table-column label="问卷细分章节id" align="center" prop="subChapId" />
-      <el-table-column label="年份" align="center" prop="year" width="180">
-        <template slot-scope="scope">
-          <span>{{ parseTime(scope.row.year, '{y}') }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="问卷类型" align="center" prop="type" />
-      <el-table-column label="目录" align="center" prop="directory" />
-      <el-table-column label="序号" align="center" prop="code" />
-      <el-table-column label="名称" align="center" prop="name" />
-      <el-table-column label="YES/NO/NA" align="center" prop="yesNoNa" />
-      <el-table-column label="MinimumStandard" align="center" prop="minimumStandard" />
-      <el-table-column label="Good Practices" align="center" prop="goodPractices" />
-      <el-table-column label="标准" align="center" prop="standard" />
-      <el-table-column label="完成情况" align="center" prop="completionStatus" />
-      <el-table-column label="负责人" align="center" prop="personInCharge" />
-      <el-table-column label="审核人" align="center" prop="reviewer" />
-      <el-table-column label="备注" align="center" prop="remarks" />
-      <el-table-column label="装置id" align="center" prop="deptId" />
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
-        <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['rc:secsubchap:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['rc:secsubchap:remove']"
-          >删除</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    
-    <pagination
-      v-show="total>0"
-      :total="total"
-      :page.sync="queryParams.pageNum"
-      :limit.sync="queryParams.pageSize"
-      @pagination="getList"
-    />
-
-    <!-- 添加或修改问卷二级细分章节对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-        <el-form-item label="审计记录id" prop="auditId">
-          <el-input v-model="form.auditId" placeholder="请输入审计记录id" />
-        </el-form-item>
-        <el-form-item label="问卷细分章节id" prop="subChapId">
-          <el-input v-model="form.subChapId" placeholder="请输入问卷细分章节id" />
-        </el-form-item>
-        <el-form-item label="年份" prop="year">
-          <el-date-picker clearable
-                          v-model="form.year"
-                          type="year"
-                          value-format="yyyy"
-                          placeholder="请选择年份">
-          </el-date-picker>
-        </el-form-item>
-        <el-form-item label="目录" prop="directory">
-          <el-input v-model="form.directory" type="textarea" placeholder="请输入内容" />
-        </el-form-item>
-        <el-form-item label="序号" prop="code">
-          <el-input v-model="form.code" placeholder="请输入序号" />
-        </el-form-item>
-        <el-form-item label="名称" prop="name">
-          <el-input v-model="form.name" type="textarea" placeholder="请输入内容" />
-        </el-form-item>
-        <el-form-item label="YES/NO/NA" prop="yesNoNa">
-          <el-input v-model="form.yesNoNa" placeholder="请输入YES/NO/NA" />
-        </el-form-item>
-        <el-form-item label="MinimumStandard" prop="minimumStandard">
-          <el-input v-model="form.minimumStandard" type="textarea" placeholder="请输入内容" />
-        </el-form-item>
-        <el-form-item label="Good Practices" prop="goodPractices">
-          <el-input v-model="form.goodPractices" type="textarea" placeholder="请输入内容" />
-        </el-form-item>
-        <el-form-item label="标准" prop="standard">
-          <el-input v-model="form.standard" placeholder="请输入标准" />
-        </el-form-item>
-        <el-form-item label="负责人" prop="personInCharge">
-          <el-input v-model="form.personInCharge" placeholder="请输入负责人" />
-        </el-form-item>
-        <el-form-item label="审核人" prop="reviewer">
-          <el-input v-model="form.reviewer" placeholder="请输入审核人" />
-        </el-form-item>
-        <el-form-item label="备注" prop="remarks">
-          <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容" />
-        </el-form-item>
-        <el-form-item label="装置id" prop="deptId">
-          <el-input v-model="form.deptId" placeholder="请输入装置id" />
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-import { listSecsubchap, getSecsubchap, delSecsubchap, addSecsubchap, updateSecsubchap } from "@/api/rc/secsubchap";
-
-export default {
-  name: "Secsubchap",
-  data() {
-    return {
-      // 遮罩层
-      loading: true,
-      // 选中数组
-      ids: [],
-      // 非单个禁用
-      single: true,
-      // 非多个禁用
-      multiple: true,
-      // 显示搜索条件
-      showSearch: true,
-      // 总条数
-      total: 0,
-      // 问卷二级细分章节表格数据
-      secsubchapList: [],
-      // 弹出层标题
-      title: "",
-      // 是否显示弹出层
-      open: false,
-      // 查询参数
-      queryParams: {
-        pageNum: 1,
-        pageSize: 10,
-        auditId: null,
-        subChapId: null,
-        year: null,
-        type: null,
-        directory: null,
-        code: null,
-        name: null,
-        yesNoNa: null,
-        minimumStandard: null,
-        goodPractices: null,
-        standard: null,
-        completionStatus: null,
-        personInCharge: null,
-        reviewer: null,
-        remarks: null,
-        deptId: null
-      },
-      // 表单参数
-      form: {},
-      // 表单校验
-      rules: {
-      }
-    };
-  },
-  created() {
-    this.getList();
-  },
-  methods: {
-    /** 查询问卷二级细分章节列表 */
-    getList() {
-      this.loading = true;
-      listSecsubchap(this.queryParams).then(response => {
-        this.secsubchapList = response.rows;
-        this.total = response.total;
-        this.loading = false;
-      });
-    },
-    // 取消按钮
-    cancel() {
-      this.open = false;
-      this.reset();
-    },
-    // 表单重置
-    reset() {
-      this.form = {
-        id: null,
-        auditId: null,
-        subChapId: null,
-        year: null,
-        type: null,
-        directory: null,
-        code: null,
-        name: null,
-        yesNoNa: null,
-        minimumStandard: null,
-        goodPractices: null,
-        standard: null,
-        completionStatus: null,
-        personInCharge: null,
-        reviewer: null,
-        remarks: null,
-        deptId: null
-      };
-      this.resetForm("form");
-    },
-    /** 搜索按钮操作 */
-    handleQuery() {
-      this.queryParams.pageNum = 1;
-      this.getList();
-    },
-    /** 重置按钮操作 */
-    resetQuery() {
-      this.resetForm("queryForm");
-      this.handleQuery();
-    },
-    // 多选框选中数据
-    handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.id)
-      this.single = selection.length!==1
-      this.multiple = !selection.length
-    },
-    /** 新增按钮操作 */
-    handleAdd() {
-      this.reset();
-      this.open = true;
-      this.title = "添加问卷二级细分章节";
-    },
-    /** 修改按钮操作 */
-    handleUpdate(row) {
-      this.reset();
-      const id = row.id || this.ids
-      getSecsubchap(id).then(response => {
-        this.form = response.data;
-        this.open = true;
-        this.title = "修改问卷二级细分章节";
-      });
-    },
-    /** 提交按钮 */
-    submitForm() {
-      this.$refs["form"].validate(valid => {
-        if (valid) {
-          if (this.form.id != null) {
-            updateSecsubchap(this.form).then(response => {
-              this.$modal.msgSuccess("修改成功");
-              this.open = false;
-              this.getList();
-            });
-          } else {
-            addSecsubchap(this.form).then(response => {
-              this.$modal.msgSuccess("新增成功");
-              this.open = false;
-              this.getList();
-            });
-          }
-        }
-      });
-    },
-    /** 删除按钮操作 */
-    handleDelete(row) {
-      const ids = row.id || this.ids;
-      this.$modal.confirm('是否确认删除问卷二级细分章节编号为"' + ids + '"的数据项?').then(function() {
-        return delSecsubchap(ids);
-      }).then(() => {
-        this.getList();
-        this.$modal.msgSuccess("删除成功");
-      }).catch(() => {});
-    },
-    /** 导出按钮操作 */
-    handleExport() {
-      this.download('rc/secsubchap/export', {
-        ...this.queryParams
-      }, `secsubchap_${new Date().getTime()}.xlsx`)
-    }
-  }
-};
-</script>

+ 0 - 279
ruoyi-ui/src/views/rc/subchap/index.vue

@@ -1,279 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-      <el-form-item label="审计记录id" prop="auditId">
-        <el-input
-          v-model="queryParams.auditId"
-          placeholder="请输入审计记录id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="问卷章节id" prop="chapId">
-        <el-input
-          v-model="queryParams.chapId"
-          placeholder="请输入问卷章节id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="装置id" prop="deptId">
-        <el-input
-          v-model="queryParams.deptId"
-          placeholder="请输入装置id"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item>
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
-      </el-form-item>
-    </el-form>
-
-    <el-row :gutter="10" class="mb8">
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          v-hasPermi="['rc:subchap:add']"
-        >新增</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleUpdate"
-          v-hasPermi="['rc:subchap:edit']"
-        >修改</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="danger"
-          plain
-          icon="el-icon-delete"
-          size="mini"
-          :disabled="multiple"
-          @click="handleDelete"
-          v-hasPermi="['rc:subchap:remove']"
-        >删除</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          v-hasPermi="['rc:subchap:export']"
-        >导出</el-button>
-      </el-col>
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
-    </el-row>
-
-    <el-table border v-loading="loading" :data="subchapList" @selection-change="handleSelectionChange">
-      <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="id" align="center" prop="id" />
-      <el-table-column label="审计记录id" align="center" prop="auditId" />
-      <el-table-column label="问卷章节id" align="center" prop="chapId" />
-      <el-table-column label="名称" align="center" prop="name" />
-      <el-table-column label="装置id" align="center" prop="deptId" />
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
-        <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['rc:subchap:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['rc:subchap:remove']"
-          >删除</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    
-    <pagination
-      v-show="total>0"
-      :total="total"
-      :page.sync="queryParams.pageNum"
-      :limit.sync="queryParams.pageSize"
-      @pagination="getList"
-    />
-
-    <!-- 添加或修改问卷细分章节对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-        <el-form-item label="审计记录id" prop="auditId">
-          <el-input v-model="form.auditId" placeholder="请输入审计记录id" />
-        </el-form-item>
-        <el-form-item label="问卷章节id" prop="chapId">
-          <el-input v-model="form.chapId" placeholder="请输入问卷章节id" />
-        </el-form-item>
-        <el-form-item label="名称" prop="name">
-          <el-input v-model="form.name" type="textarea" placeholder="请输入内容" />
-        </el-form-item>
-        <el-form-item label="装置id" prop="deptId">
-          <el-input v-model="form.deptId" placeholder="请输入装置id" />
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-import { listSubchap, getSubchap, delSubchap, addSubchap, updateSubchap } from "@/api/rc/subchap";
-
-export default {
-  name: "Subchap",
-  data() {
-    return {
-      // 遮罩层
-      loading: true,
-      // 选中数组
-      ids: [],
-      // 非单个禁用
-      single: true,
-      // 非多个禁用
-      multiple: true,
-      // 显示搜索条件
-      showSearch: true,
-      // 总条数
-      total: 0,
-      // 问卷细分章节表格数据
-      subchapList: [],
-      // 弹出层标题
-      title: "",
-      // 是否显示弹出层
-      open: false,
-      // 查询参数
-      queryParams: {
-        pageNum: 1,
-        pageSize: 10,
-        auditId: null,
-        chapId: null,
-        name: null,
-        deptId: null
-      },
-      // 表单参数
-      form: {},
-      // 表单校验
-      rules: {
-      }
-    };
-  },
-  created() {
-    this.getList();
-  },
-  methods: {
-    /** 查询问卷细分章节列表 */
-    getList() {
-      this.loading = true;
-      listSubchap(this.queryParams).then(response => {
-        this.subchapList = response.rows;
-        this.total = response.total;
-        this.loading = false;
-      });
-    },
-    // 取消按钮
-    cancel() {
-      this.open = false;
-      this.reset();
-    },
-    // 表单重置
-    reset() {
-      this.form = {
-        id: null,
-        auditId: null,
-        chapId: null,
-        name: null,
-        deptId: null
-      };
-      this.resetForm("form");
-    },
-    /** 搜索按钮操作 */
-    handleQuery() {
-      this.queryParams.pageNum = 1;
-      this.getList();
-    },
-    /** 重置按钮操作 */
-    resetQuery() {
-      this.resetForm("queryForm");
-      this.handleQuery();
-    },
-    // 多选框选中数据
-    handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.id)
-      this.single = selection.length!==1
-      this.multiple = !selection.length
-    },
-    /** 新增按钮操作 */
-    handleAdd() {
-      this.reset();
-      this.open = true;
-      this.title = "添加问卷细分章节";
-    },
-    /** 修改按钮操作 */
-    handleUpdate(row) {
-      this.reset();
-      const id = row.id || this.ids
-      getSubchap(id).then(response => {
-        this.form = response.data;
-        this.open = true;
-        this.title = "修改问卷细分章节";
-      });
-    },
-    /** 提交按钮 */
-    submitForm() {
-      this.$refs["form"].validate(valid => {
-        if (valid) {
-          if (this.form.id != null) {
-            updateSubchap(this.form).then(response => {
-              this.$modal.msgSuccess("修改成功");
-              this.open = false;
-              this.getList();
-            });
-          } else {
-            addSubchap(this.form).then(response => {
-              this.$modal.msgSuccess("新增成功");
-              this.open = false;
-              this.getList();
-            });
-          }
-        }
-      });
-    },
-    /** 删除按钮操作 */
-    handleDelete(row) {
-      const ids = row.id || this.ids;
-      this.$modal.confirm('是否确认删除问卷细分章节编号为"' + ids + '"的数据项?').then(function() {
-        return delSubchap(ids);
-      }).then(() => {
-        this.getList();
-        this.$modal.msgSuccess("删除成功");
-      }).catch(() => {});
-    },
-    /** 导出按钮操作 */
-    handleExport() {
-      this.download('rc/subchap/export', {
-        ...this.queryParams
-      }, `subchap_${new Date().getTime()}.xlsx`)
-    }
-  }
-};
-</script>

+ 9 - 19
sql/create.sql

@@ -24,35 +24,24 @@ create table t_dept_info (
 ) engine=innodb auto_increment=100 comment = '装置信息表';
 
 -- ----------------------------
--- 问卷章节表
+-- 章节表
 -- ----------------------------
-create table t_chap (
+create table t_chapter (
   id                bigint(20)    comment 'id'  not null  auto_increment,
   audit_id          bigint(20)    comment '审计记录id',
+  code              varchar(8)    comment '序号',
   name              varchar(500)  comment '名称',
   dept_id           varchar(255)  comment '装置id',
   primary key (id)
-) engine=innodb auto_increment=100 comment = '问卷章节表';
+) engine=innodb auto_increment=100 comment = '章节表';
 
 -- ----------------------------
--- 问卷细分章节
+-- 问卷表
 -- ----------------------------
-create table t_sub_chap (
+create table t_questionnaire (
   id                bigint(20)    comment 'id'  not null  auto_increment,
   audit_id          bigint(20)    comment '审计记录id',
-  chap_id           bigint(20)    comment '问卷章节id',
-  name              varchar(500)  comment '名称',
-  dept_id           varchar(255)  comment '装置id',
-  primary key (id)
-) engine=innodb auto_increment=100 comment = '问卷细分章节表';
-
--- ----------------------------
--- 问卷二级细分章节表
--- ----------------------------
-create table t_sec_sub_chap (
-  id                bigint(20)    comment 'id'  not null  auto_increment,
-  audit_id          bigint(20)    comment '审计记录id',
-  sub_chap_id       bigint(20)    comment '问卷细分章节id',
+  chapter_id        bigint(20)    comment '章节id',
   year              year          comment '年份',
   type              char(1)       comment '问卷类型',
   directory         varchar(500)  comment '目录',
@@ -68,7 +57,8 @@ create table t_sec_sub_chap (
   remarks           varchar(500)  comment '备注',
   dept_id           varchar(255)  comment '装置id',
   primary key (id)
-) engine=innodb auto_increment=100 comment = '问卷二级细分章节表';
+) engine=innodb auto_increment=100 comment = '问卷表';
+
 
 -- ----------------------------
 -- 进度表