release-v1.0 #1
@ -142,7 +142,7 @@ public class ToolApplyController extends BaseController
|
|||||||
toolApplyService.updateToolApply(updateStatus);
|
toolApplyService.updateToolApply(updateStatus);
|
||||||
}
|
}
|
||||||
//办结
|
//办结
|
||||||
if(RecordStatusEnum.DONE.getCode().equals(toolApply)){
|
if(RecordStatusEnum.DONE.getCode().equals(toolApply.getRecordStatus())){
|
||||||
//给消息中心发送消息
|
//给消息中心发送消息
|
||||||
toolApplyService.sendTzMessage(toolApply);
|
toolApplyService.sendTzMessage(toolApply);
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ public class ToolController extends BaseController
|
|||||||
//前端传传参开启下载权限验证
|
//前端传传参开启下载权限验证
|
||||||
if (BooleanUtil.isTrue(tool.getDownloadCheck())) {
|
if (BooleanUtil.isTrue(tool.getDownloadCheck())) {
|
||||||
String userId = SecurityUtils.getUserId().toString();
|
String userId = SecurityUtils.getUserId().toString();
|
||||||
for (Tool vo:list) {
|
for (Tool vo : list) {
|
||||||
//创建人、下载权限、系统管理员
|
//创建人、下载权限、系统管理员
|
||||||
//1.已经审核通过、并且有下载权限
|
//1.已经审核通过、并且有下载权限
|
||||||
vo.setDownloadStatus(
|
vo.setDownloadStatus(
|
||||||
@ -80,6 +80,12 @@ public class ToolController extends BaseController
|
|||||||
SecurityUtils.hasPermi(Constants.DOWNLOAD_TOOL_PERMISSION) ||
|
SecurityUtils.hasPermi(Constants.DOWNLOAD_TOOL_PERMISSION) ||
|
||||||
( RecordStatusEnum.DONE.getCode().equals(vo.getRecordStatus())&&
|
( RecordStatusEnum.DONE.getCode().equals(vo.getRecordStatus())&&
|
||||||
iToolApplyService.checkToolApply(vo.getToolId(),userId)));
|
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);
|
return getDataTable(list);
|
||||||
|
@ -97,6 +97,8 @@ public class Tool extends BaseEntity
|
|||||||
|
|
||||||
private Boolean downloadStatus;
|
private Boolean downloadStatus;
|
||||||
|
|
||||||
|
private Boolean isHasApplyUse;
|
||||||
|
|
||||||
private List<String> excludeFields;
|
private List<String> excludeFields;
|
||||||
|
|
||||||
private List<Document> documentList;
|
private List<Document> documentList;
|
||||||
|
@ -66,6 +66,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="userName != null and userName != ''">
|
<if test="userName != null and userName != ''">
|
||||||
AND u.user_name like concat('%', #{userName}, '%')
|
AND u.user_name like concat('%', #{userName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="nickName != null and nickName != ''">
|
||||||
|
AND u.nick_name like concat('%', #{nickName}, '%')
|
||||||
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND u.status = #{status}
|
AND u.status = #{status}
|
||||||
</if>
|
</if>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user