Commit 1345952f authored by suhuiguang's avatar suhuiguang

feat(jg): 压力管道后续业务

1.启用停用检验报告格式化
parent 1f98e347
package com.yeejoin.amos.boot.module.jg.api.enums;
import lombok.Getter;
import java.util.Arrays;
import java.util.Optional;
......@@ -8,6 +10,7 @@ import java.util.Optional;
*
* @author Administrator
*/
@Getter
public enum BusinessTypeEnum {
/**
......@@ -96,11 +99,4 @@ public enum BusinessTypeEnum {
.findFirst();
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
}
......@@ -1007,6 +1007,8 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
}
public IPage<Map<String, Object>> findPipeLinePage(Page<Map<String, Object>> page, String projectContraptionId, String applyType) {
return this.getBaseMapper().selectPipeLinePage(page, projectContraptionId, applyType);
IPage<Map<String, Object>> re = this.getBaseMapper().selectPipeLinePage(page, projectContraptionId, applyType);
re.getRecords().forEach(item -> item.put("inspectReport", Optional.ofNullable(item.get("inspectReport")).map(r->JSON.parse(r.toString())).orElse(null)));
return re;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment