|
@ -61,6 +61,8 @@ import com.epmet.service.ProjectService; |
|
|
import com.epmet.service.ProjectStaffService; |
|
|
import com.epmet.service.ProjectStaffService; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
@ -80,6 +82,7 @@ import java.util.stream.Collectors; |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao, ProjectProcessEntity> implements ProjectProcessService { |
|
|
public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao, ProjectProcessEntity> implements ProjectProcessService { |
|
|
|
|
|
|
|
|
|
|
|
protected static final Logger logger = LoggerFactory.getLogger(ProjectProcessServiceImpl.class); |
|
|
@Autowired |
|
|
@Autowired |
|
|
private ProjectProcessRedis projectProcessRedis; |
|
|
private ProjectProcessRedis projectProcessRedis; |
|
|
@Autowired |
|
|
@Autowired |
|
@ -354,7 +357,8 @@ public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao |
|
|
|
|
|
|
|
|
//5:调用epmet-message服务,给项目流转过程中的工作人员发送订阅的微信消息
|
|
|
//5:调用epmet-message服务,给项目流转过程中的工作人员发送订阅的微信消息
|
|
|
if (!transferWxmpMessage(formDTO).success()) { |
|
|
if (!transferWxmpMessage(formDTO).success()) { |
|
|
throw new RenException(ProjectConstant.SAVE_WXMP_MSG_EXCEPTION); |
|
|
logger.error("项目流转,推送微信订阅消息失败"); |
|
|
|
|
|
//throw new RenException(ProjectConstant.SAVE_WXMP_MSG_EXCEPTION);
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -416,6 +420,7 @@ public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao |
|
|
map.put(staff.getStaffId(),staff.getStaffId()); |
|
|
map.put(staff.getStaffId(),staff.getStaffId()); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
logger.info("项目流转,推送微信订阅消息"); |
|
|
return epmetMessageOpenFeignClient.sendWxSubscribeMessage(msgList); |
|
|
return epmetMessageOpenFeignClient.sendWxSubscribeMessage(msgList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|