This commit is contained in:
hanjian 2024-09-04 22:15:51 +08:00
parent aa5178ac92
commit c57babe9ce
4 changed files with 13 additions and 2 deletions

View File

@ -142,7 +142,7 @@ public class ToolApplyController extends BaseController
toolApplyService.updateToolApply(updateStatus);
}
//办结
if(RecordStatusEnum.DONE.getCode().equals(toolApply)){
if(RecordStatusEnum.DONE.getCode().equals(toolApply.getRecordStatus())){
//给消息中心发送消息
toolApplyService.sendTzMessage(toolApply);
}

View File

@ -71,7 +71,7 @@ public class ToolController extends BaseController
//前端传传参开启下载权限验证
if (BooleanUtil.isTrue(tool.getDownloadCheck())) {
String userId = SecurityUtils.getUserId().toString();
for (Tool vo:list) {
for (Tool vo : list) {
//创建人下载权限系统管理员
//1.已经审核通过并且有下载权限
vo.setDownloadStatus(
@ -80,6 +80,12 @@ public class ToolController extends BaseController
SecurityUtils.hasPermi(Constants.DOWNLOAD_TOOL_PERMISSION) ||
( RecordStatusEnum.DONE.getCode().equals(vo.getRecordStatus())&&
iToolApplyService.checkToolApply(vo.getToolId(),userId)));
ToolApply toolApply = new ToolApply();
toolApply.setToolId(vo.getToolId());
toolApply.setUserId(userId);
List<ToolApply> hasApplyUsToolApplyList = iToolApplyService.selectToolApplyList(toolApply);
vo.setIsHasApplyUse(hasApplyUsToolApplyList.size() > 0);
}
}
return getDataTable(list);

View File

@ -97,6 +97,8 @@ public class Tool extends BaseEntity
private Boolean downloadStatus;
private Boolean isHasApplyUse;
private List<String> excludeFields;
private List<Document> documentList;

View File

@ -66,6 +66,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="userName != null and userName != ''">
AND u.user_name like concat('%', #{userName}, '%')
</if>
<if test="nickName != null and nickName != ''">
AND u.nick_name like concat('%', #{nickName}, '%')
</if>
<if test="status != null and status != ''">
AND u.status = #{status}
</if>