| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.ruoyi.common.annotation.DataSource; |
| | | import com.ruoyi.common.config.LegacySystemConfig; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.enums.DataSourceType; |
| | | import com.ruoyi.system.domain.ImageData; |
| | | import com.ruoyi.system.domain.SysTaskAttachment; |
| | | import com.ruoyi.system.domain.SysTaskEmergency; |
| | |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.io.File; |
| | |
| | | private RuoYiConfig ruoYiConfig; |
| | | |
| | | |
| | | /** |
| | | *检查附件是否已经上传 |
| | | * @param taskId |
| | | * @param type 1 知情同意书 |
| | | * 2 病人资料 |
| | | * 3 操作记录 |
| | | * 4 出车前 |
| | | * 5 出车后 |
| | | * 6 系安全带 |
| | | * @return Boolean |
| | | */ |
| | | @Override |
| | | public Boolean checkAttachment(Long taskId, String type){ |
| | | return taskAttachmentMapper.selectSysTaskAttachmentByTaskId(taskId).stream().anyMatch(attachment -> attachment.getAttachmentCategory().equals(type)); |
| | | } |
| | | |
| | | /** |
| | | * 同步单个附件到ImageData |