parent
346c064c43
commit
2296d6ddad
@ -0,0 +1,98 @@
|
||||
package com.da.dangan.controller;
|
||||
|
||||
import com.da.common.annotation.Log;
|
||||
import com.da.common.core.controller.BaseController;
|
||||
import com.da.common.core.domain.AjaxResult;
|
||||
import com.da.common.core.page.TableDataInfo;
|
||||
import com.da.common.enums.BusinessType;
|
||||
import com.da.common.utils.poi.ExcelUtil;
|
||||
import com.da.dangan.domain.DaQuanwen;
|
||||
import com.da.dangan.service.IDaQuanwenService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 全文识别Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-04-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dangan/quanwen")
|
||||
public class DaQuanwenController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDaQuanwenService daQuanwenService;
|
||||
|
||||
/**
|
||||
* 查询全文识别列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('dangan:quanwen:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DaQuanwen daQuanwen)
|
||||
{
|
||||
startPage();
|
||||
List<DaQuanwen> list = daQuanwenService.selectDaQuanwenList(daQuanwen);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出全文识别列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('dangan:quanwen:export')")
|
||||
@Log(title = "全文识别", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DaQuanwen daQuanwen)
|
||||
{
|
||||
List<DaQuanwen> list = daQuanwenService.selectDaQuanwenList(daQuanwen);
|
||||
ExcelUtil<DaQuanwen> util = new ExcelUtil<DaQuanwen>(DaQuanwen.class);
|
||||
util.exportExcel(response, list, "全文识别数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全文识别详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('dangan:quanwen:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(daQuanwenService.selectDaQuanwenById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增全文识别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('dangan:quanwen:add')")
|
||||
@Log(title = "全文识别", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DaQuanwen daQuanwen)
|
||||
{
|
||||
return toAjax(daQuanwenService.insertDaQuanwen(daQuanwen));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改全文识别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('dangan:quanwen:edit')")
|
||||
@Log(title = "全文识别", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DaQuanwen daQuanwen)
|
||||
{
|
||||
return toAjax(daQuanwenService.updateDaQuanwen(daQuanwen));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除全文识别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('dangan:quanwen:remove')")
|
||||
@Log(title = "全文识别", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(daQuanwenService.deleteDaQuanwenByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,238 @@
|
||||
package com.da.dangan.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.da.common.annotation.Excel;
|
||||
import com.da.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 全文识别对象 da_quanwen
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-04-25
|
||||
*/
|
||||
public class DaQuanwen extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 全文识别内容 */
|
||||
@Excel(name = "全文识别内容")
|
||||
private String allInfo;
|
||||
|
||||
/** 任务id */
|
||||
@Excel(name = "任务id")
|
||||
private Long taskId;
|
||||
|
||||
/** 业务类型(字典) */
|
||||
@Excel(name = "业务类型(字典)")
|
||||
private String ywType;
|
||||
|
||||
/** 目录id */
|
||||
@Excel(name = "目录id")
|
||||
private Long muId;
|
||||
|
||||
/** 档案目录路径 */
|
||||
@Excel(name = "档案目录路径")
|
||||
private String muPath;
|
||||
|
||||
/** 识别图片id */
|
||||
@Excel(name = "识别图片id")
|
||||
private String picIds;
|
||||
|
||||
/** 识别图片 */
|
||||
@Excel(name = "识别图片")
|
||||
private String pictures;
|
||||
|
||||
/** 相关图片id */
|
||||
@Excel(name = "相关图片id")
|
||||
private String allPicIds;
|
||||
|
||||
/** 相关图片 */
|
||||
@Excel(name = "相关图片")
|
||||
private String allPics;
|
||||
|
||||
/** 是否纠错(字典0否1是) */
|
||||
@Excel(name = "是否纠错(字典0否1是)")
|
||||
private String errorCorrect;
|
||||
|
||||
/** 审核状态(字典) */
|
||||
@Excel(name = "审核状态(字典)")
|
||||
private String auditStatus;
|
||||
|
||||
/** 审核人 */
|
||||
@Excel(name = "审核人")
|
||||
private String auditName;
|
||||
|
||||
/** 审核结果 */
|
||||
@Excel(name = "审核结果")
|
||||
private String auditResult;
|
||||
|
||||
/** 审核原由 */
|
||||
@Excel(name = "审核原由")
|
||||
private String auditReason;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setAllInfo(String allInfo)
|
||||
{
|
||||
this.allInfo = allInfo;
|
||||
}
|
||||
|
||||
public String getAllInfo()
|
||||
{
|
||||
return allInfo;
|
||||
}
|
||||
public void setTaskId(Long taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public Long getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
public void setYwType(String ywType)
|
||||
{
|
||||
this.ywType = ywType;
|
||||
}
|
||||
|
||||
public String getYwType()
|
||||
{
|
||||
return ywType;
|
||||
}
|
||||
public void setMuId(Long muId)
|
||||
{
|
||||
this.muId = muId;
|
||||
}
|
||||
|
||||
public Long getMuId()
|
||||
{
|
||||
return muId;
|
||||
}
|
||||
public void setMuPath(String muPath)
|
||||
{
|
||||
this.muPath = muPath;
|
||||
}
|
||||
|
||||
public String getMuPath()
|
||||
{
|
||||
return muPath;
|
||||
}
|
||||
public void setPicIds(String picIds)
|
||||
{
|
||||
this.picIds = picIds;
|
||||
}
|
||||
|
||||
public String getPicIds()
|
||||
{
|
||||
return picIds;
|
||||
}
|
||||
public void setPictures(String pictures)
|
||||
{
|
||||
this.pictures = pictures;
|
||||
}
|
||||
|
||||
public String getPictures()
|
||||
{
|
||||
return pictures;
|
||||
}
|
||||
public void setAllPicIds(String allPicIds)
|
||||
{
|
||||
this.allPicIds = allPicIds;
|
||||
}
|
||||
|
||||
public String getAllPicIds()
|
||||
{
|
||||
return allPicIds;
|
||||
}
|
||||
public void setAllPics(String allPics)
|
||||
{
|
||||
this.allPics = allPics;
|
||||
}
|
||||
|
||||
public String getAllPics()
|
||||
{
|
||||
return allPics;
|
||||
}
|
||||
public void setErrorCorrect(String errorCorrect)
|
||||
{
|
||||
this.errorCorrect = errorCorrect;
|
||||
}
|
||||
|
||||
public String getErrorCorrect()
|
||||
{
|
||||
return errorCorrect;
|
||||
}
|
||||
public void setAuditStatus(String auditStatus)
|
||||
{
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public String getAuditStatus()
|
||||
{
|
||||
return auditStatus;
|
||||
}
|
||||
public void setAuditName(String auditName)
|
||||
{
|
||||
this.auditName = auditName;
|
||||
}
|
||||
|
||||
public String getAuditName()
|
||||
{
|
||||
return auditName;
|
||||
}
|
||||
public void setAuditResult(String auditResult)
|
||||
{
|
||||
this.auditResult = auditResult;
|
||||
}
|
||||
|
||||
public String getAuditResult()
|
||||
{
|
||||
return auditResult;
|
||||
}
|
||||
public void setAuditReason(String auditReason)
|
||||
{
|
||||
this.auditReason = auditReason;
|
||||
}
|
||||
|
||||
public String getAuditReason()
|
||||
{
|
||||
return auditReason;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("allInfo", getAllInfo())
|
||||
.append("taskId", getTaskId())
|
||||
.append("ywType", getYwType())
|
||||
.append("muId", getMuId())
|
||||
.append("muPath", getMuPath())
|
||||
.append("picIds", getPicIds())
|
||||
.append("pictures", getPictures())
|
||||
.append("allPicIds", getAllPicIds())
|
||||
.append("allPics", getAllPics())
|
||||
.append("errorCorrect", getErrorCorrect())
|
||||
.append("auditStatus", getAuditStatus())
|
||||
.append("auditName", getAuditName())
|
||||
.append("auditResult", getAuditResult())
|
||||
.append("auditReason", getAuditReason())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.da.dangan.domain.vo;
|
||||
|
||||
import com.da.dangan.domain.DaQuanwen;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class QwDatas {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private List<Long> Picid;
|
||||
private List<DaQuanwen> info;
|
||||
|
||||
public List<Long> getPicid() {
|
||||
return Picid;
|
||||
}
|
||||
|
||||
public void setPicid(List<Long> picid) {
|
||||
Picid = picid;
|
||||
}
|
||||
|
||||
public List<DaQuanwen> getInfo() {
|
||||
return info;
|
||||
}
|
||||
|
||||
public void setInfo(List<DaQuanwen> info) {
|
||||
this.info = info;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.da.dangan.mapper;
|
||||
|
||||
import com.da.dangan.domain.DaQuanwen;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 全文识别Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-04-25
|
||||
*/
|
||||
public interface DaQuanwenMapper
|
||||
{
|
||||
/**
|
||||
* 查询全文识别
|
||||
*
|
||||
* @param id 全文识别主键
|
||||
* @return 全文识别
|
||||
*/
|
||||
public DaQuanwen selectDaQuanwenById(Long id);
|
||||
|
||||
/**
|
||||
* 查询全文识别列表
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 全文识别集合
|
||||
*/
|
||||
public List<DaQuanwen> selectDaQuanwenList(DaQuanwen daQuanwen);
|
||||
|
||||
/**
|
||||
* 新增全文识别
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDaQuanwen(DaQuanwen daQuanwen);
|
||||
|
||||
/**
|
||||
* 修改全文识别
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDaQuanwen(DaQuanwen daQuanwen);
|
||||
|
||||
/**
|
||||
* 删除全文识别
|
||||
*
|
||||
* @param id 全文识别主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDaQuanwenById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除全文识别
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDaQuanwenByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.da.dangan.service;
|
||||
|
||||
import com.da.dangan.domain.DaQuanwen;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 全文识别Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-04-25
|
||||
*/
|
||||
public interface IDaQuanwenService
|
||||
{
|
||||
/**
|
||||
* 查询全文识别
|
||||
*
|
||||
* @param id 全文识别主键
|
||||
* @return 全文识别
|
||||
*/
|
||||
public DaQuanwen selectDaQuanwenById(Long id);
|
||||
|
||||
/**
|
||||
* 查询全文识别列表
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 全文识别集合
|
||||
*/
|
||||
public List<DaQuanwen> selectDaQuanwenList(DaQuanwen daQuanwen);
|
||||
|
||||
/**
|
||||
* 新增全文识别
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDaQuanwen(DaQuanwen daQuanwen);
|
||||
|
||||
/**
|
||||
* 修改全文识别
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDaQuanwen(DaQuanwen daQuanwen);
|
||||
|
||||
/**
|
||||
* 批量删除全文识别
|
||||
*
|
||||
* @param ids 需要删除的全文识别主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDaQuanwenByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除全文识别信息
|
||||
*
|
||||
* @param id 全文识别主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDaQuanwenById(Long id);
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package com.da.dangan.service.impl;
|
||||
|
||||
import com.da.common.utils.DateUtils;
|
||||
import com.da.dangan.domain.DaQuanwen;
|
||||
import com.da.dangan.mapper.DaQuanwenMapper;
|
||||
import com.da.dangan.service.IDaQuanwenService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 全文识别Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-04-25
|
||||
*/
|
||||
@Service
|
||||
public class DaQuanwenServiceImpl implements IDaQuanwenService
|
||||
{
|
||||
@Resource
|
||||
private DaQuanwenMapper daQuanwenMapper;
|
||||
|
||||
/**
|
||||
* 查询全文识别
|
||||
*
|
||||
* @param id 全文识别主键
|
||||
* @return 全文识别
|
||||
*/
|
||||
@Override
|
||||
public DaQuanwen selectDaQuanwenById(Long id)
|
||||
{
|
||||
return daQuanwenMapper.selectDaQuanwenById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询全文识别列表
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 全文识别
|
||||
*/
|
||||
@Override
|
||||
public List<DaQuanwen> selectDaQuanwenList(DaQuanwen daQuanwen)
|
||||
{
|
||||
return daQuanwenMapper.selectDaQuanwenList(daQuanwen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增全文识别
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDaQuanwen(DaQuanwen daQuanwen)
|
||||
{
|
||||
daQuanwen.setCreateTime(DateUtils.getNowDate());
|
||||
return daQuanwenMapper.insertDaQuanwen(daQuanwen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改全文识别
|
||||
*
|
||||
* @param daQuanwen 全文识别
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDaQuanwen(DaQuanwen daQuanwen)
|
||||
{
|
||||
daQuanwen.setUpdateTime(DateUtils.getNowDate());
|
||||
return daQuanwenMapper.updateDaQuanwen(daQuanwen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除全文识别
|
||||
*
|
||||
* @param ids 需要删除的全文识别主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDaQuanwenByIds(Long[] ids)
|
||||
{
|
||||
return daQuanwenMapper.deleteDaQuanwenByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除全文识别信息
|
||||
*
|
||||
* @param id 全文识别主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDaQuanwenById(Long id)
|
||||
{
|
||||
return daQuanwenMapper.deleteDaQuanwenById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,141 @@
|
||||
<?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.da.dangan.mapper.DaQuanwenMapper">
|
||||
|
||||
<resultMap type="DaQuanwen" id="DaQuanwenResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="allInfo" column="all_info" />
|
||||
<result property="taskId" column="task_id" />
|
||||
<result property="ywType" column="yw_type" />
|
||||
<result property="muId" column="mu_id" />
|
||||
<result property="muPath" column="mu_path" />
|
||||
<result property="picIds" column="pic_ids" />
|
||||
<result property="pictures" column="pictures" />
|
||||
<result property="allPicIds" column="all_pic_ids" />
|
||||
<result property="allPics" column="all_pics" />
|
||||
<result property="errorCorrect" column="error_correct" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="auditName" column="audit_name" />
|
||||
<result property="auditResult" column="audit_result" />
|
||||
<result property="auditReason" column="audit_reason" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDaQuanwenVo">
|
||||
select id, all_info, task_id, yw_type, mu_id, mu_path, pic_ids, pictures, all_pic_ids, all_pics, error_correct, audit_status, audit_name, audit_result, audit_reason, remark, create_by, create_time, update_by, update_time from da_quanwen
|
||||
</sql>
|
||||
|
||||
<select id="selectDaQuanwenList" parameterType="DaQuanwen" resultMap="DaQuanwenResult">
|
||||
<include refid="selectDaQuanwenVo"/>
|
||||
<where>
|
||||
<if test="allInfo != null and allInfo != ''"> and all_info = #{allInfo}</if>
|
||||
<if test="taskId != null "> and task_id = #{taskId}</if>
|
||||
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
|
||||
<if test="muId != null "> and mu_id = #{muId}</if>
|
||||
<if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if>
|
||||
<if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if>
|
||||
<if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if>
|
||||
<if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if>
|
||||
<if test="allPics != null and allPics != ''"> and all_pics = #{allPics}</if>
|
||||
<if test="errorCorrect != null and errorCorrect != ''"> and error_correct = #{errorCorrect}</if>
|
||||
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
|
||||
<if test="auditName != null and auditName != ''"> and audit_name like concat('%', #{auditName}, '%')</if>
|
||||
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
|
||||
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDaQuanwenById" parameterType="Long" resultMap="DaQuanwenResult">
|
||||
<include refid="selectDaQuanwenVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDaQuanwen" parameterType="DaQuanwen" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into da_quanwen
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="allInfo != null">all_info,</if>
|
||||
<if test="taskId != null">task_id,</if>
|
||||
<if test="ywType != null and ywType != ''">yw_type,</if>
|
||||
<if test="muId != null">mu_id,</if>
|
||||
<if test="muPath != null">mu_path,</if>
|
||||
<if test="picIds != null">pic_ids,</if>
|
||||
<if test="pictures != null">pictures,</if>
|
||||
<if test="allPicIds != null">all_pic_ids,</if>
|
||||
<if test="allPics != null">all_pics,</if>
|
||||
<if test="errorCorrect != null">error_correct,</if>
|
||||
<if test="auditStatus != null">audit_status,</if>
|
||||
<if test="auditName != null">audit_name,</if>
|
||||
<if test="auditResult != null">audit_result,</if>
|
||||
<if test="auditReason != null">audit_reason,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="allInfo != null">#{allInfo},</if>
|
||||
<if test="taskId != null">#{taskId},</if>
|
||||
<if test="ywType != null and ywType != ''">#{ywType},</if>
|
||||
<if test="muId != null">#{muId},</if>
|
||||
<if test="muPath != null">#{muPath},</if>
|
||||
<if test="picIds != null">#{picIds},</if>
|
||||
<if test="pictures != null">#{pictures},</if>
|
||||
<if test="allPicIds != null">#{allPicIds},</if>
|
||||
<if test="allPics != null">#{allPics},</if>
|
||||
<if test="errorCorrect != null">#{errorCorrect},</if>
|
||||
<if test="auditStatus != null">#{auditStatus},</if>
|
||||
<if test="auditName != null">#{auditName},</if>
|
||||
<if test="auditResult != null">#{auditResult},</if>
|
||||
<if test="auditReason != null">#{auditReason},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDaQuanwen" parameterType="DaQuanwen">
|
||||
update da_quanwen
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="allInfo != null">all_info = #{allInfo},</if>
|
||||
<if test="taskId != null">task_id = #{taskId},</if>
|
||||
<if test="ywType != null and ywType != ''">yw_type = #{ywType},</if>
|
||||
<if test="muId != null">mu_id = #{muId},</if>
|
||||
<if test="muPath != null">mu_path = #{muPath},</if>
|
||||
<if test="picIds != null">pic_ids = #{picIds},</if>
|
||||
<if test="pictures != null">pictures = #{pictures},</if>
|
||||
<if test="allPicIds != null">all_pic_ids = #{allPicIds},</if>
|
||||
<if test="allPics != null">all_pics = #{allPics},</if>
|
||||
<if test="errorCorrect != null">error_correct = #{errorCorrect},</if>
|
||||
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
|
||||
<if test="auditName != null">audit_name = #{auditName},</if>
|
||||
<if test="auditResult != null">audit_result = #{auditResult},</if>
|
||||
<if test="auditReason != null">audit_reason = #{auditReason},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDaQuanwenById" parameterType="Long">
|
||||
delete from da_quanwen where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDaQuanwenByIds" parameterType="String">
|
||||
delete from da_quanwen where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询全文识别列表
|
||||
export function listQuanwen(query) {
|
||||
return request({
|
||||
url: '/dangan/quanwen/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询全文识别详细
|
||||
export function getQuanwen(id) {
|
||||
return request({
|
||||
url: '/dangan/quanwen/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增全文识别
|
||||
export function addQuanwen(data) {
|
||||
return request({
|
||||
url: '/dangan/quanwen',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改全文识别
|
||||
export function updateQuanwen(data) {
|
||||
return request({
|
||||
url: '/dangan/quanwen',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除全文识别
|
||||
export function delQuanwen(id) {
|
||||
return request({
|
||||
url: '/dangan/quanwen/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,396 @@
|
||||
<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="taskId">
|
||||
<el-input
|
||||
v-model="queryParams.taskId"
|
||||
placeholder="请输入任务id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="目录id" prop="muId">
|
||||
<el-input
|
||||
v-model="queryParams.muId"
|
||||
placeholder="请输入目录id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="档案目录路径" prop="muPath">
|
||||
<el-input
|
||||
v-model="queryParams.muPath"
|
||||
placeholder="请输入档案目录路径"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="识别图片id" prop="picIds">
|
||||
<el-input
|
||||
v-model="queryParams.picIds"
|
||||
placeholder="请输入识别图片id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="相关图片id" prop="allPicIds">
|
||||
<el-input
|
||||
v-model="queryParams.allPicIds"
|
||||
placeholder="请输入相关图片id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否纠错(字典0否1是)" prop="errorCorrect">
|
||||
<el-input
|
||||
v-model="queryParams.errorCorrect"
|
||||
placeholder="请输入是否纠错(字典0否1是)"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="auditName">
|
||||
<el-input
|
||||
v-model="queryParams.auditName"
|
||||
placeholder="请输入审核人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核结果" prop="auditResult">
|
||||
<el-input
|
||||
v-model="queryParams.auditResult"
|
||||
placeholder="请输入审核结果"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核原由" prop="auditReason">
|
||||
<el-input
|
||||
v-model="queryParams.auditReason"
|
||||
placeholder="请输入审核原由"
|
||||
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="['dangan:quanwen: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="['dangan:quanwen: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="['dangan:quanwen: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="['dangan:quanwen:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="quanwenList" @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="全文识别内容" align="center" prop="allInfo" />
|
||||
<el-table-column label="任务id" align="center" prop="taskId" />
|
||||
<el-table-column label="业务类型(字典)" align="center" prop="ywType" />
|
||||
<el-table-column label="目录id" align="center" prop="muId" />
|
||||
<el-table-column label="档案目录路径" align="center" prop="muPath" />
|
||||
<el-table-column label="识别图片id" align="center" prop="picIds" />
|
||||
<el-table-column label="识别图片" align="center" prop="pictures" />
|
||||
<el-table-column label="相关图片id" align="center" prop="allPicIds" />
|
||||
<el-table-column label="相关图片" align="center" prop="allPics" />
|
||||
<el-table-column label="是否纠错(字典0否1是)" align="center" prop="errorCorrect" />
|
||||
<el-table-column label="审核状态(字典)" align="center" prop="auditStatus" />
|
||||
<el-table-column label="审核人" align="center" prop="auditName" />
|
||||
<el-table-column label="审核结果" align="center" prop="auditResult" />
|
||||
<el-table-column label="审核原由" align="center" prop="auditReason" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<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="['dangan:quanwen:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['dangan:quanwen: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="全文识别内容" prop="allInfo">
|
||||
<el-input v-model="form.allInfo" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="任务id" prop="taskId">
|
||||
<el-input v-model="form.taskId" placeholder="请输入任务id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="目录id" prop="muId">
|
||||
<el-input v-model="form.muId" placeholder="请输入目录id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="档案目录路径" prop="muPath">
|
||||
<el-input v-model="form.muPath" placeholder="请输入档案目录路径" />
|
||||
</el-form-item>
|
||||
<el-form-item label="识别图片id" prop="picIds">
|
||||
<el-input v-model="form.picIds" placeholder="请输入识别图片id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="识别图片" prop="pictures">
|
||||
<el-input v-model="form.pictures" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="相关图片id" prop="allPicIds">
|
||||
<el-input v-model="form.allPicIds" placeholder="请输入相关图片id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="相关图片" prop="allPics">
|
||||
<el-input v-model="form.allPics" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否纠错(字典0否1是)" prop="errorCorrect">
|
||||
<el-input v-model="form.errorCorrect" placeholder="请输入是否纠错(字典0否1是)" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="auditName">
|
||||
<el-input v-model="form.auditName" placeholder="请输入审核人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核结果" prop="auditResult">
|
||||
<el-input v-model="form.auditResult" placeholder="请输入审核结果" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核原由" prop="auditReason">
|
||||
<el-input v-model="form.auditReason" placeholder="请输入审核原由" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</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 { listQuanwen, getQuanwen, delQuanwen, addQuanwen, updateQuanwen } from "@/api/dangan/quanwen";
|
||||
|
||||
export default {
|
||||
name: "Quanwen",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 全文识别表格数据
|
||||
quanwenList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
allInfo: null,
|
||||
taskId: null,
|
||||
ywType: null,
|
||||
muId: null,
|
||||
muPath: null,
|
||||
picIds: null,
|
||||
pictures: null,
|
||||
allPicIds: null,
|
||||
allPics: null,
|
||||
errorCorrect: null,
|
||||
auditStatus: null,
|
||||
auditName: null,
|
||||
auditResult: null,
|
||||
auditReason: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
ywType: [
|
||||
{ required: true, message: "业务类型(字典)不能为空", trigger: "change" }
|
||||
],
|
||||
muId: [
|
||||
{ required: true, message: "目录id不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询全文识别列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listQuanwen(this.queryParams).then(response => {
|
||||
this.quanwenList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
allInfo: null,
|
||||
taskId: null,
|
||||
ywType: null,
|
||||
muId: null,
|
||||
muPath: null,
|
||||
picIds: null,
|
||||
pictures: null,
|
||||
allPicIds: null,
|
||||
allPics: null,
|
||||
errorCorrect: null,
|
||||
auditStatus: null,
|
||||
auditName: null,
|
||||
auditResult: null,
|
||||
auditReason: null,
|
||||
remark: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: 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
|
||||
getQuanwen(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) {
|
||||
updateQuanwen(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addQuanwen(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 delQuanwen(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('dangan/quanwen/export', {
|
||||
...this.queryParams
|
||||
}, `quanwen_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Loading…
Reference in new issue