|
|
|
@ -461,6 +461,7 @@ public class EntrustController extends BladeController { |
|
|
|
@GetMapping("/getEntrust") |
|
|
|
@GetMapping("/getEntrust") |
|
|
|
public R<Map<String, Object>> getEntrust(String id, String roleId, String deptId, String userId) { |
|
|
|
public R<Map<String, Object>> getEntrust(String id, String roleId, String deptId, String userId) { |
|
|
|
HashMap<String, Object> map = new HashMap<>(); |
|
|
|
HashMap<String, Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
// TODO 查看详情需要改动
|
|
|
|
//科室主任
|
|
|
|
//科室主任
|
|
|
|
if ("1123598816738675203".equals(roleId)) { |
|
|
|
if ("1123598816738675203".equals(roleId)) { |
|
|
|
//委托单
|
|
|
|
//委托单
|
|
|
|
@ -1149,6 +1150,7 @@ public class EntrustController extends BladeController { |
|
|
|
if (byId != null) { |
|
|
|
if (byId != null) { |
|
|
|
examine.setExamineItemName(byId.getName()); |
|
|
|
examine.setExamineItemName(byId.getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
examine.setInputMode(byId.getInputMode()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (examine.getExamineWayId() != null) { |
|
|
|
if (examine.getExamineWayId() != null) { |
|
|
|
@ -1172,8 +1174,7 @@ public class EntrustController extends BladeController { |
|
|
|
QueryWrapper<ExamineResult> resultQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<ExamineResult> resultQueryWrapper = new QueryWrapper<>(); |
|
|
|
resultQueryWrapper.eq("examine_id", examine.getId()); |
|
|
|
resultQueryWrapper.eq("examine_id", examine.getId()); |
|
|
|
// resultQueryWrapper.eq("status", 1);
|
|
|
|
// resultQueryWrapper.eq("status", 1);
|
|
|
|
List<ExamineResult> examineResults = examineResultService.list(resultQueryWrapper); |
|
|
|
ExamineResult examineResult = examineResultService.getOne(resultQueryWrapper); |
|
|
|
for (ExamineResult examineResult : examineResults) { |
|
|
|
|
|
|
|
if (examineResult != null) { |
|
|
|
if (examineResult != null) { |
|
|
|
Long examineBasisId = examine.getExamineBasisId(); |
|
|
|
Long examineBasisId = examine.getExamineBasisId(); |
|
|
|
if (examineBasisId != null) { |
|
|
|
if (examineBasisId != null) { |
|
|
|
@ -1199,8 +1200,16 @@ public class EntrustController extends BladeController { |
|
|
|
examineResult.setInstrumentNo(instrument.getCode()); |
|
|
|
examineResult.setInstrumentNo(instrument.getCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
examine.setExamineResult(examineResult); |
|
|
|
List<String> path = new ArrayList<>(); |
|
|
|
|
|
|
|
String picturePath = examineResult.getPicturePath(); |
|
|
|
|
|
|
|
if (picturePath != null && !"".equals(picturePath)) { |
|
|
|
|
|
|
|
String[] split = picturePath.split(","); |
|
|
|
|
|
|
|
for (String s : split) { |
|
|
|
|
|
|
|
path.add(s); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
examineResult.setPath(path); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
examine.setExamineResult(examineResult); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return R.data(examine); |
|
|
|
return R.data(examine); |
|
|
|
@ -1293,12 +1302,12 @@ public class EntrustController extends BladeController { |
|
|
|
map.put("examineList", examineList); |
|
|
|
map.put("examineList", examineList); |
|
|
|
|
|
|
|
|
|
|
|
//样品信息
|
|
|
|
//样品信息
|
|
|
|
QueryWrapper<Simple> wrapper = new QueryWrapper<>(); |
|
|
|
// QueryWrapper<Simple> wrapper = new QueryWrapper<>();
|
|
|
|
wrapper.eq("entrust_id", id); |
|
|
|
// wrapper.eq("entrust_id", id);
|
|
|
|
wrapper.eq("is_distribution", 0); |
|
|
|
// wrapper.eq("is_distribution", 0);
|
|
|
|
wrapper.eq("status", 1); |
|
|
|
// wrapper.eq("status", 1);
|
|
|
|
List<Simple> simpleList = simpleService.list(wrapper); |
|
|
|
// List<Simple> simpleList = simpleService.list(wrapper);
|
|
|
|
map.put("simpleList", simpleList); |
|
|
|
// map.put("simpleList", simpleList);
|
|
|
|
return map; |
|
|
|
return map; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|