1、修复禅道bug

This commit is contained in:
pan 2024-09-08 23:10:11 +08:00
parent 1523a4db4f
commit d3ec27eb1b
10 changed files with 46 additions and 17 deletions

View File

@ -33,13 +33,14 @@ public class Document extends BaseEntity {
private String docName; private String docName;
/** 文档类别 */ /** 文档类别 */
@Excel(name = "类别", dictType="doc_class") @Excel(name = "文档类别", dictType="doc_class")
private String docType; private String docType;
/** 文档负责人 */ /** 文档负责人 */
private String docPrincipals; private String docPrincipals;
/** 文档负责人名称 */ /** 文档负责人名称 */
@Excel(name = "负责人")
private String docPrincipalsName; private String docPrincipalsName;
/** 归属单位 **/ /** 归属单位 **/
@ -50,17 +51,16 @@ public class Document extends BaseEntity {
private String docRespDept; private String docRespDept;
/** 文档来源 */ /** 文档来源 */
@Excel(name = "来源", dictType="doc_source") @Excel(name = "文档来源", dictType="doc_source")
private String docSource; private String docSource;
/** /**
* 工具名称 * 工具名称
*/ */
@Excel(name = "工具名称")
private String toolName; private String toolName;
/** 文档状态 */ /** 文档状态 */
@Excel(name = "上传状态", dictType="doc_upload_status") @Excel(name = "文档状态", dictType="doc_upload_status")
private String docStatus; private String docStatus;
/** 文档地址 */ /** 文档地址 */

View File

@ -1,10 +1,12 @@
package com.rzdata.web.domain; package com.rzdata.web.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzdata.common.annotation.Excel; import com.rzdata.common.annotation.Excel;
import com.rzdata.common.core.domain.BaseEntity; import com.rzdata.common.core.domain.BaseEntity;
import com.rzdata.web.domain.bo.BpmClientInputModelBo; import com.rzdata.web.domain.bo.BpmClientInputModelBo;
import lombok.Data; import lombok.Data;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -39,23 +41,23 @@ public class Tool extends BaseEntity
private String toolSourceName; private String toolSourceName;
/** 用途 */ /** 用途 */
@Excel(name = "工具用途",sort=7) //@Excel(name = "工具用途",sort=7)
private String toolUse; private String toolUse;
/** 测试情况 */ /** 测试情况 */
@Excel(name = "测评情况",sort=8) //@Excel(name = "测评情况",sort=8)
private String testSituation; private String testSituation;
/** 功能描述 */ /** 功能描述 */
@Excel(name = "功能描述",sort=9) //@Excel(name = "功能描述",sort=9)
private String functionDesc; private String functionDesc;
/** 适用条件 */ /** 适用条件 */
@Excel(name = "适用条件",sort=10) //@Excel(name = "适用条件",sort=10)
private String applyCondition; private String applyCondition;
/** 操作说明 */ /** 操作说明 */
@Excel(name = "操作说明",sort=11) //@Excel(name = "操作说明",sort=11)
private String operateExplain; private String operateExplain;
/** 负责人 */ /** 负责人 */
@ -76,7 +78,7 @@ public class Tool extends BaseEntity
private String status; private String status;
/** 备注 */ /** 备注 */
@Excel(name = "备注",sort=12) //@Excel(name = "备注",sort=12)
private String remark; private String remark;
/** 关联工具 */ /** 关联工具 */
@ -85,8 +87,14 @@ public class Tool extends BaseEntity
private BpmClientInputModelBo bpmClientInputModel; private BpmClientInputModelBo bpmClientInputModel;
/** done办结doing进行中**/ /** done办结doing进行中**/
@Excel(name = "流程状态",dictType="flow_status",sort=7)
private String recordStatus; private String recordStatus;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "创建时间", dateFormat="yyyy-MM-dd")
private Date createTime;
private Boolean editStatus; private Boolean editStatus;
private String procInstId; private String procInstId;
@ -115,4 +123,5 @@ public class Tool extends BaseEntity
private List<String> toolIdList; private List<String> toolIdList;
/** 需要过滤的主键 **/ /** 需要过滤的主键 **/
private List<String> filterToolIds; private List<String> filterToolIds;
private String recordStatusName;
} }

View File

@ -1,5 +1,6 @@
package com.rzdata.web.service; package com.rzdata.web.service;
import com.rzdata.common.core.domain.ToolTreeSelect;
import com.rzdata.common.core.domain.TreeSelect; import com.rzdata.common.core.domain.TreeSelect;
import com.rzdata.common.core.domain.DocumentCategory; import com.rzdata.common.core.domain.DocumentCategory;
@ -67,5 +68,5 @@ public interface IDocumentCategoryService
* @param documentCategory * @param documentCategory
* @return * @return
*/ */
List<TreeSelect> selectDocumentTreeList(DocumentCategory documentCategory); List<ToolTreeSelect> selectDocumentTreeList(DocumentCategory documentCategory);
} }

View File

@ -1,6 +1,7 @@
package com.rzdata.web.service.impl; package com.rzdata.web.service.impl;
import cn.hutool.core.lang.Snowflake; import cn.hutool.core.lang.Snowflake;
import com.rzdata.common.core.domain.ToolTreeSelect;
import com.rzdata.common.core.domain.TreeSelect; import com.rzdata.common.core.domain.TreeSelect;
import com.rzdata.common.utils.DateUtils; import com.rzdata.common.utils.DateUtils;
import com.rzdata.common.utils.SecurityUtils; import com.rzdata.common.utils.SecurityUtils;
@ -109,15 +110,15 @@ public class DocumentCategoryServiceImpl implements IDocumentCategoryService
} }
@Override @Override
public List<TreeSelect> selectDocumentTreeList(DocumentCategory documentCategory) { public List<ToolTreeSelect> selectDocumentTreeList(DocumentCategory documentCategory) {
List<DocumentCategory> documentCategoryList = documentCategoryMapper.selectDocumentCategoryList(documentCategory); List<DocumentCategory> documentCategoryList = documentCategoryMapper.selectDocumentCategoryList(documentCategory);
return buildDeptTreeSelect(documentCategoryList); return buildDeptTreeSelect(documentCategoryList);
} }
public List<TreeSelect> buildDeptTreeSelect(List<DocumentCategory> documentCategory) public List<ToolTreeSelect> buildDeptTreeSelect(List<DocumentCategory> documentCategory)
{ {
List<DocumentCategory> docCategoryTree = buildDeptTree(documentCategory); List<DocumentCategory> docCategoryTree = buildDeptTree(documentCategory);
return docCategoryTree.stream().map(TreeSelect::new).collect(Collectors.toList()); return docCategoryTree.stream().map(ToolTreeSelect::new).collect(Collectors.toList());
} }
public List<DocumentCategory> buildDeptTree(List<DocumentCategory> documentCategoryList) public List<DocumentCategory> buildDeptTree(List<DocumentCategory> documentCategoryList)

View File

@ -448,6 +448,7 @@ public class DocumentServiceImpl implements IDocumentService
break; break;
} }
} }
if( StrUtil.isNotBlank(item.getDocRespDept())){ if( StrUtil.isNotBlank(item.getDocRespDept())){
item.setDocRespDeptName(sysDeptService.getDeptName(item.getDocRespDept())); item.setDocRespDeptName(sysDeptService.getDeptName(item.getDocRespDept()));
} }

View File

@ -418,6 +418,7 @@ public class ToolServiceImpl implements IToolService
List<SysDictData> toolSource = sysDictTypeService.selectDictDataByType("tool_source"); List<SysDictData> toolSource = sysDictTypeService.selectDictDataByType("tool_source");
List<SysDictData> toolTypeList = sysDictTypeService.selectDictDataByType("tool_type"); List<SysDictData> toolTypeList = sysDictTypeService.selectDictDataByType("tool_type");
List<SysDictData> toolStatus = sysDictTypeService.selectDictDataByType("tool_status"); List<SysDictData> toolStatus = sysDictTypeService.selectDictDataByType("tool_status");
List<SysDictData> flowStatusList = sysDictTypeService.selectDictDataByType("flow_status");
for (Tool item : tools) { for (Tool item : tools) {
for (SysDictData sysDictData : toolSource) { for (SysDictData sysDictData : toolSource) {
@ -440,6 +441,12 @@ public class ToolServiceImpl implements IToolService
break; break;
} }
} }
for (SysDictData sysDictData : flowStatusList) {
if(sysDictData.getDictValue().equals(item.getRecordStatus())){
item.setRecordStatusName(sysDictData.getDictLabel());
break;
}
}
if( StrUtil.isNotBlank(tool.getToolRespDept())){ if( StrUtil.isNotBlank(tool.getToolRespDept())){
item.setToolRespDeptName(sysDeptService.getDeptName(tool.getToolRespDept())); item.setToolRespDeptName(sysDeptService.getDeptName(tool.getToolRespDept()));
} }

View File

@ -36,4 +36,13 @@ public class ToolTreeSelect implements Serializable
{ {
} }
public ToolTreeSelect(DocumentCategory docCategory)
{
this.id = docCategory.getId();
this.label = docCategory.getCategoryName();
this.types = docCategory.getTypes();
this.children = docCategory.getChildren().stream().map(ToolTreeSelect::new).collect(Collectors.toList());
}
} }

View File

@ -20,7 +20,7 @@ public class TreeSelect implements Serializable
/** 节点ID */ /** 节点ID */
private Long id; private Long id;
private String categoryId;
/** 节点名称 */ /** 节点名称 */
private String label; private String label;
@ -54,6 +54,7 @@ public class TreeSelect implements Serializable
public TreeSelect(DocumentCategory docCategory) public TreeSelect(DocumentCategory docCategory)
{ {
this.id = Long.valueOf(docCategory.getId()); this.id = Long.valueOf(docCategory.getId());
this.categoryId = docCategory.getId();
this.label = docCategory.getCategoryName(); this.label = docCategory.getCategoryName();
this.types = docCategory.getTypes(); this.types = docCategory.getTypes();
this.children = docCategory.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); this.children = docCategory.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());

View File

@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult"> <select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
<include refid="selectDeptVo"/> <include refid="selectDeptVo"/>
where d.del_flag = '0' where d.del_flag = '0' and d.status = '0'
<if test="deptId != null and deptId != 0"> <if test="deptId != null and deptId != 0">
AND dept_id = #{deptId} AND dept_id = #{deptId}
</if> </if>

View File

@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d') and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if> </if>
<!-- 锁定某些字段类型 --> <!-- 锁定某些字段类型 -->
AND dict_type in ('tool_type','msg_status','tool_source','tool_status','doc_class','doc_source','doc_upload_status','flow_status') AND dict_type in ('tool_type','msg_status','tool_source','tool_status','doc_class','doc_source','doc_upload_status')
</where> </where>
</select> </select>