| | |
| | | import com.ruoyi.project.service.IServiceReimbursementSharedService; |
| | | import com.ruoyi.project.service.IServiceReimbursementdetailSharedService; |
| | | import com.ruoyi.project.service.IServiceReimbursementpayeeSharedService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | |
| | | * @author ruoyi |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ServiceReimbursementServiceImpl extends ServiceImpl<ServiceReimbursementMapper, ServiceReimbursement> implements IServiceReimbursementService { |
| | | |
| | |
| | | @Override |
| | | public List<ServiceReimbursement> queryList(ServiceReimbursement serviceReimbursement) { |
| | | LambdaQueryWrapper<ServiceReimbursement> wrappers = Wrappers.lambdaQuery(); |
| | | if (ObjectUtils.isNotEmpty(serviceReimbursement.getId())) { |
| | | wrappers.eq(ServiceReimbursement::getId, serviceReimbursement.getId()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursement.getCreateBy())) { |
| | | wrappers.eq(ServiceReimbursement::getCreateBy, serviceReimbursement.getCreateBy()); |
| | | } |
| | |
| | | //下面需求调用文件的接口,调用成功返回后,得到filename和fileid 用这二个值去更新数据 |
| | | |
| | | String filePath = RuoYiConfig.getUploadPath(); |
| | | String strMutfileUrl = remShare.getFileurl();//可能存在多个地址,以,分开 |
| | | |
| | | // String strMutfileUrl = remShare.getFileurl();//可能存在多个地址,以,分开 |
| | | String strMutfileUrl = remShare.getAnnexfiles(); |
| | | String strFUrl = "http://129.88.242.39:8899/seeyon/rest/attachment?token=" + strRes; |
| | | //String strFUrl = "http://slb.hospitalstar.com:8899/seeyon/rest/attachment?token="+strRes; |
| | | //strFUrl = String.format(strFUrl, strRes); |
| | |
| | | remShare.setId(nId); |
| | | remShare.setFilename(filename); |
| | | remShare.setFileid(fileid); |
| | | log.info("remShare的数据为 : {}:", remShare.toString()); |
| | | boolean bRet = sharedService.updateById(remShare); |
| | | if (!bRet) return -1; |
| | | |