| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ltkj.common.annotation.RepeatSubmit; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.common.core.domain.entity.SysDept; |
| | | import com.ltkj.common.core.domain.entity.SysUser; |
| | | import com.ltkj.common.core.redis.RedisCache; |
| | | import com.ltkj.common.enums.DataSourceType; |
| | |
| | | } catch (NumberFormatException ignored) { |
| | | } |
| | | } else { |
| | | tjOrderDetail.setYcbz(""); |
| | | if (tjOrderDetail.getProResult() != null && tjOrderDetail.getProResult().contains("阴")) |
| | | tjOrderDetail.setYcbz(""); |
| | | |
| | | if (tjOrderDetail.getProResult() != null && tjOrderDetail.getProResult().contains("阳")) |
| | | tjOrderDetail.setYcbz("↑"); |
| | | tjOrderDetail.setProResult(tjOrderDetail.getProResult()); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @GetMapping("/zongjianyishengHuiFuyichangxiangmu") |
| | | @ApiOperation(value = "总检恢复异常项目接口") |
| | | public AjaxResult zongjianyishengHuiFuyichangxiangmu(@RequestParam String tjNum) { |
| | | |
| | | List<TjOrderYcxm> list = ycxmService.zongjianyishengHuiFuyichangxiangmu(tjNum); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("/csymxmxzqtyybcjk") |
| | | @ApiOperation(value = "初审页面项目选择其他原因保存接口") |
| | | @Transactional |
| | | public AjaxResult csymxmxzqtyybcjk(@RequestParam @ApiParam("体检号") String tjNum,@RequestParam @ApiParam("项目ID") String proId, |
| | | @RequestParam @ApiParam("原因") String yy) { |
| | | |
| | | try { |
| | | String czydm = SecurityUtils.getUsername(); |
| | | String czy = SecurityUtils.getLoginUser().getUser().getNickName(); |
| | | TjProject tjProject = projectService.getById(proId); |
| | | if(null != tjProject){ |
| | | SysDept dept = deptService.getById(tjProject.getDeptId()); |
| | | |
| | | LambdaQueryWrapper<TjOrderRemark> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjOrderRemark::getTjNumber, tjNum); |
| | | wq.eq(TjOrderRemark::getProId, proId); |
| | | TjOrderRemark remark = orderRemarkService.getOne(wq); |
| | | remark.setType(1); |
| | | if (orderRemarkService.updateById(remark)) { |
| | | orderRemarkService.csymxmxzqtyybcjk(tjNum,proId,yy,dept.getOrgType(),czy,czydm); |
| | | return AjaxResult.success(); |
| | | } |
| | | } |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage()); |
| | | throw new RuntimeException(ex); |
| | | } |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | } |