| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.extra.pinyin.PinyinUtil; |
| | | import cn.hutool.json.JSONArray; |
| | | import cn.hutool.json.JSONObject; |
| | | import cn.hutool.json.JSONUtil; |
| | |
| | | List<TjRules> rulesList = tjRulesService.getTjRulesListByTjNumAndProId(tjNumber, tjOrderDetail.getProId()); |
| | | tjOrderDetail.setRulesList(rulesList); |
| | | tjOrderDetail.setProject(project); |
| | | tjOrderDetail.setResultType(project.getResultType()); |
| | | if (null != remark.getDoctorName()) { |
| | | SysUser byId = userService.getById(remark.getDoctorName()); |
| | | if (byId != null) { |
| | |
| | | return success(depts); |
| | | } |
| | | |
| | | @GetMapping("/getxmjgz") |
| | | @ApiOperation(value = "医生检查处获取项目规则值") |
| | | public AjaxResult getxmjgz(@RequestParam String proId) { |
| | | LambdaQueryWrapper<TjRules> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjRules::getProId, proId); |
| | | List<TjRules> list = tjRulesService.list(wq); |
| | | if(null !=list && !list.isEmpty()){ |
| | | for (TjRules tjRules : list) { |
| | | if(null !=tjRules){ |
| | | tjRules.setJm(PinyinUtil.getFirstLetter(tjRules.getRuleStr(),"")); |
| | | } |
| | | } |
| | | } |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | } |