|
|
|
@ -7,11 +7,13 @@ import cn.hutool.core.util.IdUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.poi.excel.BigExcelWriter; |
|
|
|
import com.research.common.constant.WeiXinConstants; |
|
|
|
import com.research.common.core.domain.entity.SysRole; |
|
|
|
import com.research.common.core.domain.model.LoginUser; |
|
|
|
import com.research.common.exception.ServiceException; |
|
|
|
import com.research.common.exception.base.BaseException; |
|
|
|
import com.research.common.utils.SecurityUtils; |
|
|
|
import com.research.common.utils.SendGzhMessageUtil; |
|
|
|
import com.research.system.domain.dto.TaskDto; |
|
|
|
import com.research.system.domain.po.*; |
|
|
|
import com.research.system.domain.vo.ClientPrjProjInfoVo; |
|
|
|
@ -572,6 +574,27 @@ public class TaskServiceImpl implements ITaskService { |
|
|
|
updateMember.setUpdateTime(new Date()); |
|
|
|
taskMemberMapper.updateByPrimaryKeySelective(updateMember); |
|
|
|
} |
|
|
|
|
|
|
|
// try {
|
|
|
|
// //根据接收者的userId获取对应的公众号openId
|
|
|
|
// reviewerList.forEach(userId -> {
|
|
|
|
// String openId = sysUserService.getGzhOpenIdByUnionId(tasTaskMember.get);
|
|
|
|
// if(ObjectUtil.isNotNull(openId)){
|
|
|
|
// //发送公众号通知。需要信息:用户名称、联系电话、申请时间、申请岗位
|
|
|
|
// SendGzhMessageUtil.sendGzhMessage(
|
|
|
|
// WeiXinConstants.GzhMessageType.USER_AUDIT,
|
|
|
|
// openId,
|
|
|
|
// Arrays.asList(ktsKtGroupMemberAduit.getMemberName(),
|
|
|
|
// ktsKtGroupMemberAduit.getMemberPhone(),
|
|
|
|
// DateUtil.format(new Date(), "yyyy-MM-dd"),
|
|
|
|
// ktsKtGroupMemberAduit.getType().equals("1") ? "单位负责人" : "参与人员")
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// }catch (Exception e){
|
|
|
|
// log.error("发送公众号通知失败", e);
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|