fix: 80448 企标制修订流程(其他起草人上传企标)--其他起草人收到待办与列表中数据条数一一对应
This commit is contained in:
+3
@@ -40,6 +40,9 @@ public class OtherDraftUserVO {
|
|||||||
@ApiModelProperty(value = "1:不能操作显示/2:可以上传并且将起草人改为‘我’/3:可以上传起草人字段维持不变")
|
@ApiModelProperty(value = "1:不能操作显示/2:可以上传并且将起草人改为‘我’/3:可以上传起草人字段维持不变")
|
||||||
private String operateType;
|
private String operateType;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "绑定的taskId")
|
||||||
|
private String taskId;
|
||||||
|
|
||||||
public String getISODeadlineTime() {
|
public String getISODeadlineTime() {
|
||||||
SimpleDateFormat isoFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
|
SimpleDateFormat isoFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
|
||||||
return isoFormat.format(this.deadline);
|
return isoFormat.format(this.deadline);
|
||||||
|
|||||||
+18
-5
@@ -305,17 +305,30 @@ public class EsRevisionServiceImpl extends ServiceImpl<EsRevisionMapper, Process
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("获取当前用户失败");
|
log.error("获取当前用户失败");
|
||||||
}
|
}
|
||||||
|
boolean findFlag = false;
|
||||||
|
otherDraftUserVOS.forEach(o -> {o.setOperateType(null);});
|
||||||
for (OtherDraftUserVO o : otherDraftUserVOS) {
|
for (OtherDraftUserVO o : otherDraftUserVOS) {
|
||||||
if (o.getUser().equals(curUserId)) {
|
if (findFlag) {
|
||||||
o.setOperateType(OperateTypeEnum.UPLOAD_AND_CHANGE_DRAFT_USER.getValue());
|
o.setOperateType(OperateTypeEnum.CANNOT_OPERATE.getValue());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (o.getUser().equals(userId)) {
|
if (o.getUser().equals(userId)) {
|
||||||
o.setOperateType(OperateTypeEnum.UPLOAD.getValue());
|
if (StrUtil.isBlank(o.getTaskId())) {
|
||||||
continue;
|
o.setOperateType(OperateTypeEnum.UPLOAD.getValue());
|
||||||
|
o.setTaskId(taskId);
|
||||||
|
findFlag = true;
|
||||||
|
} else {
|
||||||
|
if (!taskId.equals(o.getTaskId())) {
|
||||||
|
o.setOperateType(OperateTypeEnum.CANNOT_OPERATE.getValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
o.setOperateType(OperateTypeEnum.CANNOT_OPERATE.getValue());
|
||||||
}
|
}
|
||||||
o.setOperateType(OperateTypeEnum.CANNOT_OPERATE.getValue());
|
|
||||||
}
|
}
|
||||||
|
data.setOtherDraftUserVOS(otherDraftUserVOS);
|
||||||
|
data.setOtherDrafterUploadFileJson(otherDraftUserVOS);
|
||||||
|
updateById(data);
|
||||||
break;
|
break;
|
||||||
case CONTACT_USER_DISTRIBUTE:
|
case CONTACT_USER_DISTRIBUTE:
|
||||||
if (pass) {
|
if (pass) {
|
||||||
|
|||||||
Reference in New Issue
Block a user