人员出入管理修改
This commit is contained in:
parent
1d5ac3f0cb
commit
f8566dadb2
|
|
@ -41,4 +41,7 @@ public class AccessMgeDto {
|
||||||
|
|
||||||
@ApiModelProperty(value = "检测名称")
|
@ApiModelProperty(value = "检测名称")
|
||||||
private String modeName;
|
private String modeName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "文件id")
|
||||||
|
private String fileIds;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,12 @@ public class AccessMgeController extends BaseController {
|
||||||
return service.getPerStatisticsPhoto(dto);
|
return service.getPerStatisticsPhoto(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "今日、当月人员出入场统计图片")
|
||||||
|
@GetMapping("getPhotosById")
|
||||||
|
public AjaxResult getPhotosById(AccessMgeDto dto) {
|
||||||
|
return service.getPhotosById(dto);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "今日、当月人员出入场统计列表")
|
@ApiOperation(value = "今日、当月人员出入场统计列表")
|
||||||
@GetMapping("getPerStatisticsList")
|
@GetMapping("getPerStatisticsList")
|
||||||
@Log(title = "出入管理", menu = "出入管理->今日、当月人员出入场统计列表", grade = OperationType.QUERY_BUSINESS, details = "查询今日、当月人员出入场统计列表", type = "业务日志")
|
@Log(title = "出入管理", menu = "出入管理->今日、当月人员出入场统计列表", grade = OperationType.QUERY_BUSINESS, details = "查询今日、当月人员出入场统计列表", type = "业务日志")
|
||||||
|
|
|
||||||
|
|
@ -53,4 +53,6 @@ public interface AccessMgeService {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<AccessMgeVo> getPerStatisticsList(AccessMgeDto dto);
|
List<AccessMgeVo> getPerStatisticsList(AccessMgeDto dto);
|
||||||
|
|
||||||
|
AjaxResult getPhotosById(AccessMgeDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,7 @@ public class AccessMgeServiceImpl implements AccessMgeService {
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
AccessMgeVo vo = list.get(i);
|
AccessMgeVo vo = list.get(i);
|
||||||
if (StringUtils.isNotEmpty(vo.getVal())) {
|
if (StringUtils.isNotEmpty(vo.getVal())) {
|
||||||
|
if (i <= 9) {
|
||||||
Result<SysFile> result = remoteFileService.getImgBase64(vo.getVal(), SecurityConstants.INNER);
|
Result<SysFile> result = remoteFileService.getImgBase64(vo.getVal(), SecurityConstants.INNER);
|
||||||
if (result != null && result.getCode() == HttpStatus.SUCCESS && result.getData() != null) {
|
if (result != null && result.getCode() == HttpStatus.SUCCESS && result.getData() != null) {
|
||||||
String jsonString = JSON.toJSONString(result.getData());
|
String jsonString = JSON.toJSONString(result.getData());
|
||||||
|
|
@ -105,6 +106,7 @@ public class AccessMgeServiceImpl implements AccessMgeService {
|
||||||
String base64 = item.getString("url");
|
String base64 = item.getString("url");
|
||||||
vo.setBase64(base64);
|
vo.setBase64(base64);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
vo.setPersonName(handleData(vo.getSourceData(), "personName"));
|
vo.setPersonName(handleData(vo.getSourceData(), "personName"));
|
||||||
}
|
}
|
||||||
if (i == 0 || i == 1) {
|
if (i == 0 || i == 1) {
|
||||||
|
|
@ -143,8 +145,28 @@ public class AccessMgeServiceImpl implements AccessMgeService {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult getPhotosById(AccessMgeDto dto) {
|
||||||
|
List<Map<String, Object>> list = new ArrayList<>();
|
||||||
|
String[] fileIdArr = dto.getFileIds().split(",");
|
||||||
|
for (String fileId : fileIdArr) {
|
||||||
|
Result<SysFile> result = remoteFileService.getImgBase64(fileId, SecurityConstants.INNER);
|
||||||
|
if (result != null && result.getCode() == HttpStatus.SUCCESS && result.getData() != null) {
|
||||||
|
String jsonString = JSON.toJSONString(result.getData());
|
||||||
|
JSONObject item = JSON.parseObject(jsonString);
|
||||||
|
String base64 = item.getString("url");
|
||||||
|
Map<String, Object> mapData = new HashMap<>();
|
||||||
|
mapData.put("fileId",fileId);
|
||||||
|
mapData.put("base64",base64);
|
||||||
|
list.add(mapData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 人员/车辆 出入场记录
|
* 人员/车辆 出入场记录
|
||||||
|
*
|
||||||
* @return List<AccessMgeVo>
|
* @return List<AccessMgeVo>
|
||||||
* @description
|
* @description
|
||||||
* @author cwchen
|
* @author cwchen
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue