|
@@ -555,11 +555,19 @@ public class LabSubjectServiceImpl implements ILabSubjectService {
|
|
|
@Override
|
|
@Override
|
|
|
public Map<String,Object> selectLabSubjectInfoId(Long id) {
|
|
public Map<String,Object> selectLabSubjectInfoId(Long id) {
|
|
|
Map<String,Object> labMap=labSubjectMapper.selectXxpLabSubjectById(id);
|
|
Map<String,Object> labMap=labSubjectMapper.selectXxpLabSubjectById(id);
|
|
|
|
|
+ labMap.put("subjectName","");
|
|
|
|
|
+ Object floorObj=labMap.get("floorName");
|
|
|
|
|
+ Object room=labMap.get("room");
|
|
|
|
|
+ if(null!=floorObj && null!=room){
|
|
|
|
|
+ labMap.put("subjectName",floorObj+"-"+room);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(null==floorObj && null!=room){
|
|
|
|
|
+ labMap.put("subjectName",room);
|
|
|
|
|
+ }
|
|
|
LabSubject labSubject=new LabSubject();
|
|
LabSubject labSubject=new LabSubject();
|
|
|
labSubject.setQrCodeUrl(labMap.get("id") + "-" + Optional.ofNullable(labMap.get("room")).orElse(""));
|
|
labSubject.setQrCodeUrl(labMap.get("id") + "-" + Optional.ofNullable(labMap.get("room")).orElse(""));
|
|
|
labMap.put("qrCode",labSubject.getQrCodeUrl());
|
|
labMap.put("qrCode",labSubject.getQrCodeUrl());
|
|
|
//进入检查
|
|
//进入检查
|
|
|
- //设置
|
|
|
|
|
String checkIn=String.valueOf(labMap.get("check_in"));
|
|
String checkIn=String.valueOf(labMap.get("check_in"));
|
|
|
String inspectCheckIn=String.valueOf(labMap.get("inspect_check_in"));
|
|
String inspectCheckIn=String.valueOf(labMap.get("inspect_check_in"));
|
|
|
if (StrUtil.isNotBlank(checkIn)) {
|
|
if (StrUtil.isNotBlank(checkIn)) {
|