Merge remote-tracking branch 'origin/dev_2nd_period_test' into dev_2nd_period_test
This commit is contained in:
+25
-18
@@ -19,10 +19,7 @@ import org.quartz.JobExecutionException;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Calendar;
|
import java.util.*;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.GregorianCalendar;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -104,13 +101,18 @@ public class LawsTechnologyEvaluationRemindJob implements Job {
|
|||||||
}).map(LawsTechnologyEvaluationFlowDetailEO::getActiProcInstId).distinct().collect(Collectors.joining(","));
|
}).map(LawsTechnologyEvaluationFlowDetailEO::getActiProcInstId).distinct().collect(Collectors.joining(","));
|
||||||
|
|
||||||
if(StringUtils.isNotEmpty(actiProcInstIds)){
|
if(StringUtils.isNotEmpty(actiProcInstIds)){
|
||||||
List<String> userIdList = this.workFlowFeignClient.getTaskAssigneeListByPrcIds(actiProcInstIds);
|
//List<String> userIdList = this.workFlowFeignClient.getTaskAssigneeListByPrcIds(actiProcInstIds);
|
||||||
if(CollectionUtils.isNotEmpty(userIdList)){
|
for (String actiProcInstId : actiProcInstIds.split(",")) {
|
||||||
JSONObject sendJsonObject = new JSONObject();
|
Map<String, String> map = this.workFlowFeignClient.getTaskInfo(actiProcInstId);
|
||||||
sendJsonObject.put("msgType", MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_THREE_DAYS_BEFORE_MSG.getValue());
|
if (!map.isEmpty()) {
|
||||||
sendJsonObject.put("lawsTechnologyEvaluationId",lawsTechnologyEvaluationEO.getId());
|
JSONObject sendJsonObject = new JSONObject();
|
||||||
sendJsonObject.put("userIdList",userIdList);
|
sendJsonObject.put("msgType", MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_THREE_DAYS_BEFORE_MSG.getValue());
|
||||||
this.lawsTechnologyEvaluationEOService.workFlowSendMsg(sendJsonObject);
|
sendJsonObject.put("lawsTechnologyEvaluationId",lawsTechnologyEvaluationEO.getId());
|
||||||
|
sendJsonObject.put("userId",map.get("userId"));
|
||||||
|
sendJsonObject.put("taskId",map.get("taskId"));
|
||||||
|
sendJsonObject.put("taskDefKey",map.get("taskDefKey"));
|
||||||
|
this.lawsTechnologyEvaluationEOService.workFlowSendMsg(sendJsonObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (endTime.equals(now)){
|
} else if (endTime.equals(now)){
|
||||||
@@ -124,13 +126,18 @@ public class LawsTechnologyEvaluationRemindJob implements Job {
|
|||||||
}).map(LawsTechnologyEvaluationFlowDetailEO::getActiProcInstId).distinct().collect(Collectors.joining(","));
|
}).map(LawsTechnologyEvaluationFlowDetailEO::getActiProcInstId).distinct().collect(Collectors.joining(","));
|
||||||
|
|
||||||
if(StringUtils.isNotEmpty(actiProcInstIds)){
|
if(StringUtils.isNotEmpty(actiProcInstIds)){
|
||||||
List<String> userIdList = this.workFlowFeignClient.getTaskAssigneeListByPrcIds(actiProcInstIds);
|
//List<String> userIdList = this.workFlowFeignClient.getTaskAssigneeListByPrcIds(actiProcInstIds);
|
||||||
if(CollectionUtils.isNotEmpty(userIdList)){
|
for (String actiProcInstId : actiProcInstIds.split(",")) {
|
||||||
JSONObject sendJsonObject = new JSONObject();
|
Map<String, String> map = this.workFlowFeignClient.getTaskInfo(actiProcInstId);
|
||||||
sendJsonObject.put("msgType", MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_TODAY_MSG.getValue());
|
if (!map.isEmpty()) {
|
||||||
sendJsonObject.put("lawsTechnologyEvaluationId",lawsTechnologyEvaluationEO.getId());
|
JSONObject sendJsonObject = new JSONObject();
|
||||||
sendJsonObject.put("userIdList",userIdList);
|
sendJsonObject.put("msgType", MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_TODAY_MSG.getValue());
|
||||||
this.lawsTechnologyEvaluationEOService.workFlowSendMsg(sendJsonObject);
|
sendJsonObject.put("lawsTechnologyEvaluationId",lawsTechnologyEvaluationEO.getId());
|
||||||
|
sendJsonObject.put("userId",map.get("userId"));
|
||||||
|
sendJsonObject.put("taskId",map.get("taskId"));
|
||||||
|
sendJsonObject.put("taskDefKey",map.get("taskDefKey"));
|
||||||
|
this.lawsTechnologyEvaluationEOService.workFlowSendMsg(sendJsonObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -14,6 +14,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
*/
|
*/
|
||||||
public interface LawsTechnologyEvaluationFlowDetailEOMapper extends BaseMapper<LawsTechnologyEvaluationFlowDetailEO> {
|
public interface LawsTechnologyEvaluationFlowDetailEOMapper extends BaseMapper<LawsTechnologyEvaluationFlowDetailEO> {
|
||||||
|
|
||||||
LawsTechnologyEvaluationFlowDetailEO queryByEvaluationId(@Param("lawsTechnologyEvaluationId") String lawsTechnologyEvaluationId);
|
LawsTechnologyEvaluationFlowDetailEO queryByEvaluationId(@Param("lawsTechnologyEvaluationId") String lawsTechnologyEvaluationId,
|
||||||
|
@Param("evaluator") String evaluator);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<select id="queryByEvaluationId" resultMap="LawsTechnologyEvaluationFlowDetailEOResultMap">
|
<select id="queryByEvaluationId" resultMap="LawsTechnologyEvaluationFlowDetailEOResultMap">
|
||||||
|
|
||||||
select * from laws_technology_evaluation_flow_detail where laws_technology_evaluation_id = #{lawsTechnologyEvaluationId}
|
select * from laws_technology_evaluation_flow_detail where laws_technology_evaluation_id = #{lawsTechnologyEvaluationId} and evaluator_id = #{evaluator}
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
+160
-31
@@ -623,17 +623,18 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
//String serialNumber = jsonObject.getString("serialNumber"); //文档库编号
|
//String serialNumber = jsonObject.getString("serialNumber"); //文档库编号
|
||||||
|
|
||||||
List<String> userIdList = new ArrayList<>();
|
List<String> userIdList = new ArrayList<>();
|
||||||
|
String taskId = jsonObject.getString("taskId");
|
||||||
|
//飞书跳转链接
|
||||||
|
String hrefFeishu = "";
|
||||||
//String msgContentEN = "";
|
//String msgContentEN = "";
|
||||||
//String msgTitle = "";
|
//String msgTitle = "";
|
||||||
String initiator = "";
|
String initiator = "";
|
||||||
String lawsTechnologyEvaluationId = jsonObject.getString("lawsTechnologyEvaluationId");
|
String lawsTechnologyEvaluationId = jsonObject.getString("lawsTechnologyEvaluationId");
|
||||||
LawsTechnologyEvaluationEO lawsTechnologyEvaluationEO = queryById(lawsTechnologyEvaluationId);
|
LawsTechnologyEvaluationEO lawsTechnologyEvaluationEO = queryById(lawsTechnologyEvaluationId);
|
||||||
//LawsTechnologyEvaluationFlowDetailEO flowDetailEO = flowDetailEOMapper.queryByEvaluationId(lawsTechnologyEvaluationId);
|
|
||||||
//String number = flowDetailEO.getPrcNum();
|
//String number = flowDetailEO.getPrcNum();
|
||||||
//String name = flowDetailEO.getPrcName();
|
//String name = flowDetailEO.getPrcName();
|
||||||
String endTime = new SimpleDateFormat("yyyy-MM-dd").format(lawsTechnologyEvaluationEO.getEndTime());
|
String endTime = new SimpleDateFormat("yyyy-MM-dd").format(lawsTechnologyEvaluationEO.getEndTime());
|
||||||
|
|
||||||
//英文标题
|
//英文标题
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(lawsTechnologyEvaluationEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(lawsTechnologyEvaluationEO.getStandId());
|
||||||
|
|
||||||
@@ -643,7 +644,7 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
String enContentUpper = "";
|
String enContentUpper = "";
|
||||||
String enContentLower = "";
|
String enContentLower = "";
|
||||||
if(StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_START_MSG.getValue())){
|
if(StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_START_MSG.getValue())){
|
||||||
userIdList.add(jsonObject.getString("evaluationId"));
|
//userIdList.add(jsonObject.getString("evaluationId"));
|
||||||
//String endTime = jsonObject.getString("endTime"); //截止日期
|
//String endTime = jsonObject.getString("endTime"); //截止日期
|
||||||
//您收到GB 7258 的法规技术评估流程任务,请及时查看处理。
|
//您收到GB 7258 的法规技术评估流程任务,请及时查看处理。
|
||||||
//msgContentEN = "You recieved the Regulatory and technical assessment of "+serialNumber+" . The due date is "+endTime+". Please check and address it in a timely manner.";
|
//msgContentEN = "You recieved the Regulatory and technical assessment of "+serialNumber+" . The due date is "+endTime+". Please check and address it in a timely manner.";
|
||||||
@@ -663,28 +664,83 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
||||||
"\nInitiator: " + initiator +
|
"\nInitiator: " + initiator +
|
||||||
"\nDue Date: " + endTime;
|
"\nDue Date: " + endTime;
|
||||||
|
|
||||||
|
LawsTechnologyEvaluationFlowDetailEO flowDetailEO = flowDetailEOMapper.queryByEvaluationId(lawsTechnologyEvaluationId,jsonObject.getString("evaluators"));
|
||||||
|
if (ObjectUtils.isNotEmpty(flowDetailEO)) {
|
||||||
|
hrefFeishu = backUrl + "/evaluationProcess?taskDefinitionKey=pgrqr&taskIds="+ taskId +"&prcType=6&prcNum="+ flowDetailEO.getPrcNum() +"&prcId="+ flowDetailEO.getActiProcInstId() +"&router=%2FregulatoryAssessmentTasks&isDisabled=false";
|
||||||
|
|
||||||
|
String[] thirdId = new String[1];
|
||||||
|
SysUser sysUser = sysUserService.getById(jsonObject.getString("evaluators"));
|
||||||
|
if (ObjectUtils.isNotEmpty(sysUser)) {
|
||||||
|
thirdId[0] = sysUser.getThirdId();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
|
feishuMsgVo.setTitle(title);
|
||||||
|
feishuMsgVo.setCnContentUpper(cnContentUpper);
|
||||||
|
feishuMsgVo.setCnContentLower(cnContentLower);
|
||||||
|
feishuMsgVo.setEnContentUpper(enContentUpper);
|
||||||
|
feishuMsgVo.setEnContentLower(enContentLower);
|
||||||
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
|
feishuService.sendCard(thirdId, feishuMsgVo);
|
||||||
|
} catch (IOException e) {
|
||||||
|
log.error("飞书消息推送失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else if(StringUtils.equals(msgType,MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_ENALUATOR_SUBMIT_MSG.getValue())){
|
}else if(StringUtils.equals(msgType,MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_ENALUATOR_SUBMIT_MSG.getValue())){
|
||||||
String currentUserId = jsonObject.getString("currentUserId"); //当前操作用户id
|
String currentUserId = jsonObject.getString("currentUserId"); //当前操作用户id
|
||||||
SysUser currentUser = this.sysUserService.getBaseMapper().selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getId, currentUserId));
|
SysUser currentUser = this.sysUserService.getBaseMapper().selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getId, currentUserId));
|
||||||
|
|
||||||
userIdList.add(jsonObject.getString("initiatorUserId"));
|
//userIdList.add(jsonObject.getString("initiatorUserId"));
|
||||||
//XXX(人员账号)已提交GB 7258 的法规意见收集流程,请及时查看审核。
|
//XXX(人员账号)已提交GB 7258 的法规意见收集流程,请及时查看审核。
|
||||||
//msgContentEN = currentUser.getUsername() + " has submitted the collection process of Regulatory and technical assessment of "+serialNumber+", Please check and address it in time.";
|
//msgContentEN = currentUser.getUsername() + " has submitted the collection process of Regulatory and technical assessment of "+serialNumber+", Please check and address it in time.";
|
||||||
//msgTitle = "You have a Regulatory and technical assessment task to complete";
|
//msgTitle = "You have a Regulatory and technical assessment task to complete";
|
||||||
|
|
||||||
initiator = currentUser.getUsername();
|
initiator = currentUser.getUsername();
|
||||||
cnContentUpper = "您好,"+ currentUser.getUsername() +"已提交评估结果,请审核";
|
cnContentUpper = "您好,"+ initiator +"已提交评估结果,请审核";
|
||||||
cnContentLower = "编号:" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
cnContentLower = "编号:" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
||||||
"\n标题: " + lawsTechnologyEvaluationEO.getTitle() +
|
"\n标题: " + lawsTechnologyEvaluationEO.getTitle() +
|
||||||
"\n发起人: " + initiator +
|
"\n发起人: " + initiator +
|
||||||
"\n截止时间: " + endTime;
|
"\n截止时间: " + endTime;
|
||||||
enContentUpper = "Hello! "+ currentUser.getUsername() +" has submitted the assessment result. Please review it";
|
enContentUpper = "Hello! "+ initiator +" has submitted the assessment result. Please review it";
|
||||||
enContentLower = "Regulation No :" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
enContentLower = "Regulation No :" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
||||||
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
||||||
"\nInitiator: " + initiator +
|
"\nInitiator: " + initiator +
|
||||||
"\nDue Date: " + endTime;
|
"\nDue Date: " + endTime;
|
||||||
|
|
||||||
|
LawsTechnologyEvaluationFlowDetailEO flowDetailEO = flowDetailEOMapper.queryByEvaluationId(lawsTechnologyEvaluationId,jsonObject.getString("evaluators"));
|
||||||
|
if (ObjectUtils.isNotEmpty(flowDetailEO)) {
|
||||||
|
hrefFeishu = backUrl + "/evaluationProcess?taskDefinitionKey=fqrsc&taskIds="+ taskId +"&prcType=6&prcNum="+ flowDetailEO.getPrcNum() +"&prcId="+ flowDetailEO.getActiProcInstId() +"&router=%2FregulatoryAssessmentTasks&isDisabled=false";
|
||||||
|
|
||||||
|
String[] thirdId = new String[1];
|
||||||
|
SysUser sysUser = sysUserService.getById(jsonObject.getString("evaluators"));
|
||||||
|
if (ObjectUtils.isNotEmpty(sysUser)) {
|
||||||
|
thirdId[0] = sysUser.getThirdId();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
|
feishuMsgVo.setTitle(title);
|
||||||
|
feishuMsgVo.setCnContentUpper(cnContentUpper);
|
||||||
|
feishuMsgVo.setCnContentLower(cnContentLower);
|
||||||
|
feishuMsgVo.setEnContentUpper(enContentUpper);
|
||||||
|
feishuMsgVo.setEnContentLower(enContentLower);
|
||||||
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
|
feishuService.sendCard(thirdId, feishuMsgVo);
|
||||||
|
} catch (IOException e) {
|
||||||
|
log.error("飞书消息推送失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else if(StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_AUDIT_ACCEPTED_MSG.getValue())){
|
}else if(StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_AUDIT_ACCEPTED_MSG.getValue())){
|
||||||
userIdList.add(jsonObject.getString("evaluationId"));
|
//userIdList.add(jsonObject.getString("evaluationId"));
|
||||||
//您提交的GB 7258 的法规技术评估流程已通过。
|
//您提交的GB 7258 的法规技术评估流程已通过。
|
||||||
//msgContentEN = "The regulatory and technical assessment process for "+serialNumber+" you submitted has passed.";
|
//msgContentEN = "The regulatory and technical assessment process for "+serialNumber+" you submitted has passed.";
|
||||||
//msgTitle = "You have a Regulatory and technical assessment task completed";
|
//msgTitle = "You have a Regulatory and technical assessment task completed";
|
||||||
@@ -701,8 +757,33 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
||||||
"\nInitiator: " + initiator +
|
"\nInitiator: " + initiator +
|
||||||
"\nDue Date: " + endTime;
|
"\nDue Date: " + endTime;
|
||||||
|
LawsTechnologyEvaluationFlowDetailEO flowDetailEO = flowDetailEOMapper.queryByEvaluationId(lawsTechnologyEvaluationId,jsonObject.getString("evaluationId"));
|
||||||
|
if (ObjectUtils.isNotEmpty(flowDetailEO)) {
|
||||||
|
hrefFeishu = backUrl + "/evaluationProcess?taskDefinitionKey=fqrsc&taskIds="+ taskId +"&prcType=6&prcNum="+ flowDetailEO.getPrcNum() +"&prcId="+ flowDetailEO.getActiProcInstId() +"&router=%2FregulatoryAssessmentTasks&isDisabled=true";
|
||||||
|
|
||||||
|
String[] thirdId = new String[1];
|
||||||
|
SysUser sysUser = sysUserService.getById(jsonObject.getString("evaluationId"));
|
||||||
|
if (ObjectUtils.isNotEmpty(sysUser)) {
|
||||||
|
thirdId[0] = sysUser.getThirdId();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
|
feishuMsgVo.setTitle(title);
|
||||||
|
feishuMsgVo.setCnContentUpper(cnContentUpper);
|
||||||
|
feishuMsgVo.setCnContentLower(cnContentLower);
|
||||||
|
feishuMsgVo.setEnContentUpper(enContentUpper);
|
||||||
|
feishuMsgVo.setEnContentLower(enContentLower);
|
||||||
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
|
feishuService.sendCard(thirdId, feishuMsgVo);
|
||||||
|
} catch (IOException e) {
|
||||||
|
log.error("飞书消息推送失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}else if(StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_AUDIT_REJECTED_MSG.getValue())){
|
}else if(StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_AUDIT_REJECTED_MSG.getValue())){
|
||||||
userIdList.add(jsonObject.getString("evaluationId"));
|
//userIdList.add(jsonObject.getString("evaluationId"));
|
||||||
//您提交的GB 7258 的法规技术评估流程已被退回,请及时查看处理。
|
//您提交的GB 7258 的法规技术评估流程已被退回,请及时查看处理。
|
||||||
//msgContentEN = "The regulatory and technical assessment process of "+serialNumber+" you submitted has been returned, Please check and address it in time.";
|
//msgContentEN = "The regulatory and technical assessment process of "+serialNumber+" you submitted has been returned, Please check and address it in time.";
|
||||||
//msgTitle = "You have a Regulatory and technical assessment task to complete";
|
//msgTitle = "You have a Regulatory and technical assessment task to complete";
|
||||||
@@ -719,6 +800,30 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
||||||
"\nInitiator: " + initiator +
|
"\nInitiator: " + initiator +
|
||||||
"\nDue Date: " + endTime;
|
"\nDue Date: " + endTime;
|
||||||
|
|
||||||
|
LawsTechnologyEvaluationFlowDetailEO flowDetailEO = flowDetailEOMapper.queryByEvaluationId(lawsTechnologyEvaluationId,jsonObject.getString("evaluators"));
|
||||||
|
if (ObjectUtils.isNotEmpty(flowDetailEO)) {
|
||||||
|
hrefFeishu = backUrl + "/evaluationProcess?taskDefinitionKey=pgrqr&taskIds="+ taskId +"&prcType=6&prcNum="+ flowDetailEO.getPrcNum() +"&prcId="+ flowDetailEO.getActiProcInstId() +"&router=%2FregulatoryAssessmentTasks&isDisabled=false";
|
||||||
|
String[] thirdId = new String[1];
|
||||||
|
SysUser sysUser = sysUserService.getById(jsonObject.getString("evaluators"));
|
||||||
|
if (ObjectUtils.isNotEmpty(sysUser)) {
|
||||||
|
thirdId[0] = sysUser.getThirdId();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
|
feishuMsgVo.setTitle(title);
|
||||||
|
feishuMsgVo.setCnContentUpper(cnContentUpper);
|
||||||
|
feishuMsgVo.setCnContentLower(cnContentLower);
|
||||||
|
feishuMsgVo.setEnContentUpper(enContentUpper);
|
||||||
|
feishuMsgVo.setEnContentLower(enContentLower);
|
||||||
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
|
feishuService.sendCard(thirdId, feishuMsgVo);
|
||||||
|
} catch (IOException e) {
|
||||||
|
log.error("飞书消息推送失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else if (StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_THREE_DAYS_BEFORE_MSG.getValue())) {
|
} else if (StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_THREE_DAYS_BEFORE_MSG.getValue())) {
|
||||||
cnContentUpper = "您好,该任务将于3天后到期,请及时查看处理,谢谢!";
|
cnContentUpper = "您好,该任务将于3天后到期,请及时查看处理,谢谢!";
|
||||||
cnContentLower = "编号:" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
cnContentLower = "编号:" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
||||||
@@ -728,7 +833,29 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
enContentLower = "Regulation No :" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
enContentLower = "Regulation No :" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
||||||
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
||||||
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
|
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
|
||||||
userIdList = (List<String>) jsonObject.get("userIdList");
|
|
||||||
|
LawsTechnologyEvaluationFlowDetailEO flowDetailEO = flowDetailEOMapper.queryByEvaluationId(lawsTechnologyEvaluationId,jsonObject.getString("userId"));
|
||||||
|
if (ObjectUtils.isNotEmpty(flowDetailEO)) {
|
||||||
|
hrefFeishu = backUrl + "/evaluationProcess?taskDefinitionKey="+ jsonObject.getString("taskDefKey") +"&taskIds="+ taskId +"&prcType=6&prcNum="+ flowDetailEO.getPrcNum() +"&prcId="+ flowDetailEO.getActiProcInstId() +"&router=%2FregulatoryAssessmentTasks&isDisabled=false";
|
||||||
|
String[] thirdId = new String[1];
|
||||||
|
SysUser sysUser = sysUserService.getById(jsonObject.getString("userId"));
|
||||||
|
if (ObjectUtils.isNotEmpty(sysUser)) {
|
||||||
|
thirdId[0] = sysUser.getThirdId();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
|
feishuMsgVo.setTitle(title);
|
||||||
|
feishuMsgVo.setCnContentUpper(cnContentUpper);
|
||||||
|
feishuMsgVo.setCnContentLower(cnContentLower);
|
||||||
|
feishuMsgVo.setEnContentUpper(enContentUpper);
|
||||||
|
feishuMsgVo.setEnContentLower(enContentLower);
|
||||||
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
|
feishuService.sendCard(thirdId, feishuMsgVo);
|
||||||
|
} catch (IOException e) {
|
||||||
|
log.error("飞书消息推送失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else if (StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_TODAY_MSG.getValue())) {
|
} else if (StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_TODAY_MSG.getValue())) {
|
||||||
cnContentUpper = "您好,该任务将于今天到期,请尽快查看处理,谢谢!";
|
cnContentUpper = "您好,该任务将于今天到期,请尽快查看处理,谢谢!";
|
||||||
@@ -739,7 +866,29 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
enContentLower = "Regulation No :" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
enContentLower = "Regulation No :" + lawsTechnologyEvaluationEO.getSerialNumber() +
|
||||||
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
"\nTitle: " + bussDocumentLibraryEO.getTitleEn() +
|
||||||
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
|
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
|
||||||
userIdList = (List<String>) jsonObject.get("userIdList");
|
|
||||||
|
LawsTechnologyEvaluationFlowDetailEO flowDetailEO = flowDetailEOMapper.queryByEvaluationId(lawsTechnologyEvaluationId,jsonObject.getString("userId"));
|
||||||
|
if (ObjectUtils.isNotEmpty(flowDetailEO)) {
|
||||||
|
hrefFeishu = backUrl + "/evaluationProcess?taskDefinitionKey="+ jsonObject.getString("taskDefKey") +"&taskIds="+ taskId +"&prcType=6&prcNum="+ flowDetailEO.getPrcNum() +"&prcId="+ flowDetailEO.getActiProcInstId() +"&router=%2FregulatoryAssessmentTasks&isDisabled=false";
|
||||||
|
String[] thirdId = new String[1];
|
||||||
|
SysUser sysUser = sysUserService.getById(jsonObject.getString("userId"));
|
||||||
|
if (ObjectUtils.isNotEmpty(sysUser)) {
|
||||||
|
thirdId[0] = sysUser.getThirdId();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
|
feishuMsgVo.setTitle(title);
|
||||||
|
feishuMsgVo.setCnContentUpper(cnContentUpper);
|
||||||
|
feishuMsgVo.setCnContentLower(cnContentLower);
|
||||||
|
feishuMsgVo.setEnContentUpper(enContentUpper);
|
||||||
|
feishuMsgVo.setEnContentLower(enContentLower);
|
||||||
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
|
feishuService.sendCard(thirdId, feishuMsgVo);
|
||||||
|
} catch (IOException e) {
|
||||||
|
log.error("飞书消息推送失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} /*else if (StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_MSG.getValue())) {
|
} /*else if (StringUtils.equals(msgType, MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_MSG.getValue())) {
|
||||||
userIdList = (List<String>) jsonObject.get("userIdList");
|
userIdList = (List<String>) jsonObject.get("userIdList");
|
||||||
@@ -750,26 +899,6 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
initiator = MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
|
initiator = MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
|
||||||
} */
|
} */
|
||||||
|
|
||||||
List<String> thirdIdList = new ArrayList<>();
|
|
||||||
List<SysUser> sysUsers = sysUserService.listByIds(userIdList);
|
|
||||||
if (ObjectUtils.isNotEmpty(sysUsers)) {
|
|
||||||
thirdIdList = sysUsers.stream().map(SysUser::getThirdId).collect(Collectors.toList());
|
|
||||||
}
|
|
||||||
//飞书跳转链接
|
|
||||||
String hrefFeishu = backUrl + JumpLinkEnum.FGPG_TODO_CENTER_LINK.getLink();
|
|
||||||
try {
|
|
||||||
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
|
||||||
feishuMsgVo.setTitle(title);
|
|
||||||
feishuMsgVo.setCnContentUpper(cnContentUpper);
|
|
||||||
feishuMsgVo.setCnContentLower(cnContentLower);
|
|
||||||
feishuMsgVo.setEnContentUpper(enContentUpper);
|
|
||||||
feishuMsgVo.setEnContentLower(enContentLower);
|
|
||||||
feishuMsgVo.setUrl(hrefFeishu);
|
|
||||||
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
|
||||||
feishuService.sendCard(thirdIdList.toArray(new String[thirdIdList.size()]), feishuMsgVo);
|
|
||||||
} catch (IOException e) {
|
|
||||||
log.error("飞书消息推送失败");
|
|
||||||
}
|
|
||||||
//系统内部跳转链接
|
//系统内部跳转链接
|
||||||
//String href = "<a href='" + JumpLinkEnum.TASK_AFFIRM_LINK.getLink() + "'>" + " View details" + "</a>";
|
//String href = "<a href='" + JumpLinkEnum.TASK_AFFIRM_LINK.getLink() + "'>" + " View details" + "</a>";
|
||||||
//String contentInfo = msgContentEN + " " + href;
|
//String contentInfo = msgContentEN + " " + href;
|
||||||
|
|||||||
+1
-1
@@ -91,7 +91,7 @@ public class ProblemKnowledgeBaseCommentEOServiceImpl extends ServiceImpl<Proble
|
|||||||
SysUser sysUser = sysUserService.getUserByName(createBy);
|
SysUser sysUser = sysUserService.getUserByName(createBy);
|
||||||
String contentCNNo = "您发布的问题知识库信息"+problemKnowledgeBaseEO.getTitle()+"有新评论,请注意查看.";
|
String contentCNNo = "您发布的问题知识库信息"+problemKnowledgeBaseEO.getTitle()+"有新评论,请注意查看.";
|
||||||
String contentENNo = "In the Q&A knowledge "+problemKnowledgeBaseEO.getTitle()+" you created, a new comment has been added. Please be reminded to check it out.";
|
String contentENNo = "In the Q&A knowledge "+problemKnowledgeBaseEO.getTitle()+" you created, a new comment has been added. Please be reminded to check it out.";
|
||||||
String url = backUrl +"/problemknowledgeBase";
|
String url = backUrl +"/problemknowledgeBase?id="+problemKnowledgeBaseEO.getId();
|
||||||
|
|
||||||
String href = "<a href='"+url + "'"+ " target='_blank'>"+ problemKnowledgeBaseEO.getTitle() + "</a>";
|
String href = "<a href='"+url + "'"+ " target='_blank'>"+ problemKnowledgeBaseEO.getTitle() + "</a>";
|
||||||
String contentINfoCNNo = "您发布的问题知识库信息"+href+"有新评论,请注意查看.";
|
String contentINfoCNNo = "您发布的问题知识库信息"+href+"有新评论,请注意查看.";
|
||||||
|
|||||||
+5
@@ -198,4 +198,9 @@ public interface WorkFlowFeignClient {
|
|||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/bat-wkflow/datas/bus-process-new/dispostHistoryBusProcessNewData",method = RequestMethod.GET)
|
@RequestMapping(value = "/bat-wkflow/datas/bus-process-new/dispostHistoryBusProcessNewData",method = RequestMethod.GET)
|
||||||
Result dispostHistoryBusProcessNewData();
|
Result dispostHistoryBusProcessNewData();
|
||||||
|
|
||||||
|
@RequestMapping(value = "/bat-wkflow/task/getTaskInfo",method = RequestMethod.GET)
|
||||||
|
Map<String, String> getTaskInfo(@RequestParam("actiProcInstId") String actiProcInstId);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-12
@@ -100,7 +100,7 @@
|
|||||||
{{item.targetMarket_dicText}}
|
{{item.targetMarket_dicText}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content-box-button-text" v-if="item.showPermissions_dicText">
|
<div class="content-box-button-text" v-if="item.showPermissions_dicText">
|
||||||
<a-icon type="eye" />
|
<a-icon type="eye"/>
|
||||||
{{item.showPermissions_dicText}}
|
{{item.showPermissions_dicText}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content-box-button-text">
|
<div class="content-box-button-text">
|
||||||
@@ -217,22 +217,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let serial_number = localStorage.getItem('serial_number')
|
let serial_number = this.$route.query.serial_number
|
||||||
if (serial_number) {
|
if (serial_number) {
|
||||||
this.searchStr = serial_number
|
this.searchStr = serial_number
|
||||||
localStorage.removeItem('serial_number')
|
|
||||||
}
|
}
|
||||||
this.isTrue = true
|
this.isTrue = true
|
||||||
let BaseQuery = localStorage.getItem('problemknowledgeBase')
|
let BaseQuery = this.$route.query.id
|
||||||
if (BaseQuery) {
|
if (BaseQuery) {
|
||||||
let content = JSON.parse(BaseQuery)
|
this.isTrue = false
|
||||||
if (content.id) {
|
this.$nextTick(() => {
|
||||||
this.isTrue = false
|
this.$refs.problemKnowledgeBaseListViewRef.getData({ id: BaseQuery })
|
||||||
this.$nextTick(() => {
|
})
|
||||||
this.$refs.problemKnowledgeBaseListViewRef.getData(JSON.parse(JSON.stringify(content)))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
localStorage.removeItem('problemknowledgeBase')
|
|
||||||
}
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
|
|||||||
@@ -29,7 +29,14 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
callback(key) {
|
callback(key) {
|
||||||
|
if (key == 'Country Card') {
|
||||||
|
if (this.$route.query.serial_number || this.$route.query.id) {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/problemknowledgeBase'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.tabModel = key
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,11 +26,11 @@
|
|||||||
<a-icon type="codepen"/>
|
<a-icon type="codepen"/>
|
||||||
{{$t('DocumentSplitting')}}
|
{{$t('DocumentSplitting')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- <div @click="DocumentTranslationClick" v-has="'bussLog:translation'" class="operator-text-text"-->
|
<!-- <div @click="DocumentTranslationClick" v-has="'bussLog:translation'" class="operator-text-text"-->
|
||||||
<!-- :title="$t('DocumentTranslation')">-->
|
<!-- :title="$t('DocumentTranslation')">-->
|
||||||
<!-- <a-icon type="file-pdf"/>-->
|
<!-- <a-icon type="file-pdf"/>-->
|
||||||
<!-- {{$t('DocumentTranslation')}}-->
|
<!-- {{$t('DocumentTranslation')}}-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<div @click="DocumentComparisonClick" v-has="'bussLog:comparison'" class="operator-text-text"
|
<div @click="DocumentComparisonClick" v-has="'bussLog:comparison'" class="operator-text-text"
|
||||||
:title="$t('DocumentComparison')">
|
:title="$t('DocumentComparison')">
|
||||||
<a-icon type="wallet"/>
|
<a-icon type="wallet"/>
|
||||||
@@ -405,9 +405,12 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
localStorage.setItem('serial_number',serial_number)
|
// localStorage.setItem('serial_number',serial_number)
|
||||||
let newUrl = this.$router.resolve({
|
let newUrl = this.$router.resolve({
|
||||||
path: '/problemknowledgeBase',
|
path: '/problemknowledgeBase',
|
||||||
|
query: {
|
||||||
|
serial_number: serial_number
|
||||||
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
@@ -466,7 +469,7 @@
|
|||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
}else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
|
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkedClick(item) {
|
checkedClick(item) {
|
||||||
localStorage.setItem('problemknowledgeBase',JSON.stringify(item))
|
// localStorage.setItem('problemknowledgeBase',JSON.stringify(item))
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/problemknowledgeBase',
|
path: '/problemknowledgeBase',
|
||||||
query: {
|
query: {
|
||||||
|
|||||||
@@ -357,7 +357,7 @@
|
|||||||
this.areaVisible = true
|
this.areaVisible = true
|
||||||
this.areaTitle = this.$t('editDetailList')
|
this.areaTitle = this.$t('editDetailList')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$refs.templateRef.editData(edit)
|
this.$refs.templateRef.editData(edit,1)
|
||||||
}, 50)
|
}, 50)
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter='24'>
|
<a-row :gutter='24' v-if='!this.num'>
|
||||||
<a-col :span='9'>
|
<a-col :span='9'>
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
@@ -143,6 +143,7 @@
|
|||||||
</a-spin>
|
</a-spin>
|
||||||
<a-table
|
<a-table
|
||||||
class='table-area'
|
class='table-area'
|
||||||
|
v-if='!this.num'
|
||||||
ref='table'
|
ref='table'
|
||||||
size='middle'
|
size='middle'
|
||||||
rowKey='id'
|
rowKey='id'
|
||||||
@@ -156,6 +157,7 @@
|
|||||||
</a-table>
|
</a-table>
|
||||||
<div class="page" style='display: flex;justify-content: flex-end; margin-bottom: 42px'>
|
<div class="page" style='display: flex;justify-content: flex-end; margin-bottom: 42px'>
|
||||||
<a-pagination
|
<a-pagination
|
||||||
|
v-if='!this.num'
|
||||||
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||||
show-quick-jumper
|
show-quick-jumper
|
||||||
show-size-changer
|
show-size-changer
|
||||||
@@ -235,6 +237,7 @@
|
|||||||
spinLoading: false,
|
spinLoading: false,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
|
num:'',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
row: {}
|
row: {}
|
||||||
@@ -321,8 +324,9 @@
|
|||||||
this.newVisible = true
|
this.newVisible = true
|
||||||
this.form = {}
|
this.form = {}
|
||||||
},
|
},
|
||||||
editData(edit) {
|
editData(edit,num) {
|
||||||
// 编辑一行的数据
|
// 编辑一行的数据
|
||||||
|
this.num = num
|
||||||
let query = JSON.parse(JSON.stringify(edit))
|
let query = JSON.parse(JSON.stringify(edit))
|
||||||
if (query.projectVersion) {
|
if (query.projectVersion) {
|
||||||
query.projectVersion = query.projectVersion.split(',')
|
query.projectVersion = query.projectVersion.split(',')
|
||||||
|
|||||||
Reference in New Issue
Block a user