|
|
@@ -5,6 +5,8 @@ import java.io.IOException;
|
|
|
import java.util.Map;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import com.zd.common.core.utils.FileConfigUtils;
|
|
|
+import com.zd.common.core.utils.StringUtils;
|
|
|
import com.zd.model.domain.ResultData;
|
|
|
import com.zd.model.domain.per.PerFun;
|
|
|
import com.zd.model.domain.per.PerPrefix;
|
|
|
@@ -34,6 +36,8 @@ import com.zd.model.page.TableDataInfo;
|
|
|
public class LabSubjectAccessRecordController extends BaseController {
|
|
|
@Autowired
|
|
|
private ILabSubjectAccessRecordService labSubjectAccessRecordService;
|
|
|
+ @Autowired
|
|
|
+ private FileConfigUtils fileConfigUtils;
|
|
|
|
|
|
/**
|
|
|
* 查询实验室进出记录列表
|
|
|
@@ -153,6 +157,13 @@ public class LabSubjectAccessRecordController extends BaseController {
|
|
|
/*************************************************/
|
|
|
@RequestMapping("/selectSubjectSignList")
|
|
|
public ResultData selectSubjectSignList(Long subjectId) {
|
|
|
- return ResultData.success(labSubjectAccessRecordService.selectSubjectSignList(subjectId));
|
|
|
+ List<Map<String,Object>> mapSignList=labSubjectAccessRecordService.selectSubjectSignList(subjectId);
|
|
|
+ for(Map<String,Object> map:mapSignList){
|
|
|
+ if(StringUtils.isNotNull(map.get("avatar"))){
|
|
|
+ String avatar=fileConfigUtils.getFileDomainApp() + map.get("avatar");
|
|
|
+ map.put("avatar",avatar);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return ResultData.success(mapSignList);
|
|
|
}
|
|
|
}
|