| | |
| | | public AjaxResult edit(@RequestBody ServiceEthicalreviewinitiate serviceEthicalreviewinitiate) { |
| | | boolean result=serviceEthicalreviewinitiateService.updateById(serviceEthicalreviewinitiate); |
| | | if (result) { |
| | | String ids=""; |
| | | for(ServiceEthicalreviewopinions row: serviceEthicalreviewinitiate.getEthicalreviewopinionsList()){ |
| | | if(ObjectUtils.isNotEmpty(row.getId())) { |
| | | if (ids.length() < 1) |
| | | ids += row.getId(); |
| | | else |
| | | ids += "," + row.getId(); |
| | | } |
| | | } |
| | | |
| | | QueryWrapper<ServiceEthicalreviewopinions> ethicalreviewopinionsWrapper=new QueryWrapper<>(); |
| | | ethicalreviewopinionsWrapper.eq("nitiate_id",serviceEthicalreviewinitiate.getId()); |
| | | if (ids.length() > 0) { |
| | | ethicalreviewopinionsWrapper.notIn("id", ids.split(",")); |
| | | } |
| | | serviceEthicalreviewopinionsService.remove(ethicalreviewopinionsWrapper); |
| | | for(ServiceEthicalreviewopinions row: serviceEthicalreviewinitiate.getEthicalreviewopinionsList()){ |
| | | if(ObjectUtils.isNotEmpty(row.getId())){ |
| | | serviceEthicalreviewopinionsService.updateById(row); |
| | | }else { |
| | | serviceEthicalreviewopinionsService.save(row); |
| | | } |
| | | } |
| | | return AjaxResult.success(); |
| | | } else |
| | |
| | | pathMapping: / |
| | | |
| | | link: |
| | | report_url: http://localhost:8095/pages/case/transferinfo |
| | | expert_url: http://localhost:8095/pages/ethicalReview/ethicalInfo |
| | | report_url: https://opo.qduh.cn:8091/pages/case/transferinfo |
| | | expert_url: https://opo.qduh.cn:8091/pages/ethicalReview/ethicalInfo |
| | |
| | | "\"Key\":\""+key+"\"," + |
| | | "\"Tel\":\""+tel+"\",\"MessageContent\":\""+messageContent+"\"}"; |
| | | String result=""; |
| | | result= HttpUtils.sendPost(url, Base64.getEncoder().encodeToString(content.getBytes()) ); |
| | | byte[] bytesToEncode = content.getBytes(java.nio.charset.StandardCharsets.UTF_8); |
| | | result= HttpUtils.sendPost(url, Base64.getEncoder().encodeToString(bytesToEncode) ); |
| | | |
| | | return result; |
| | | } |
| | |
| | | // 过滤请求 |
| | | .authorizeRequests() |
| | | // 对于登录login 注册register 验证码captchaImage 允许匿名访问 |
| | | .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken","/getCode").anonymous() |
| | | .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken","/GiLink/getCode").anonymous() |
| | | .antMatchers( |
| | | HttpMethod.GET, |
| | | "/", |
| | |
| | | import com.ruoyi.project.mapper.GiLinkMapper; |
| | | import com.ruoyi.project.service.IGiLinkService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | import java.util.Random; |
| | | |
| | | @Service |
| | | @Slf4j |
| | | public class GiLinkService extends ServiceImpl<GiLinkMapper, GiLink> implements IGiLinkService { |
| | | @Autowired |
| | | GiLinkMapper mapper; |
| | |
| | | String content = "案例上报通知:【青岛大学附属医院】" + toHospital |
| | | + "上报潜在捐献案例,请登录OPO系统查看详细信息,及时进行对接。登录链接:" + reportUrl + " 。"; |
| | | SmsUtils sms=new SmsUtils(); |
| | | log.info("上报发送短信:"+content); |
| | | res=sms.send(user.getPhonenumber(),content); |
| | | } |
| | | return res; |
| | |
| | | String content = "伦理专家审查通知:【青岛大学附属医院】尊敬的专家您好!您有紧急人体器官移植伦理审查申请待处理," + |
| | | "请务必于1小时内登录医院OPO系统进行审批。登录链接: " + expertUrl + "。谢谢 。"; |
| | | SmsUtils sms=new SmsUtils(); |
| | | log.info("专家发送短信:"+content); |
| | | res=sms.send(user.getPhonenumber(),content); |
| | | } |
| | | return res; |