|
|
|
@ -71,24 +71,43 @@ public class TRecordController extends BaseController
|
|
|
|
|
// startPage();
|
|
|
|
|
List<TRecordResp> list = tRecordService.selectTRecordListWithoutResult(tRecord);
|
|
|
|
|
if(CollectionUtils.isNotEmpty(list)){
|
|
|
|
|
list.stream().forEach(tRecordResp -> {
|
|
|
|
|
// list.stream().forEach(tRecordResp -> {
|
|
|
|
|
// StringBuilder updateResult = new StringBuilder();
|
|
|
|
|
// if(StringUtils.isNotEmpty(tRecordResp.getUpdateResult())
|
|
|
|
|
// && null != JSON.parseObject(tRecordResp.getUpdateResult())){
|
|
|
|
|
// typeAppend(tRecordResp.getUpdateResult(),updateResult);
|
|
|
|
|
// }
|
|
|
|
|
// if(updateResult.length() != 0){
|
|
|
|
|
// tRecordResp.setUpdateResult(updateResult.toString());
|
|
|
|
|
// }
|
|
|
|
|
// StringBuilder aiResult = new StringBuilder();
|
|
|
|
|
// if(StringUtils.isNotEmpty(tRecordResp.getAiResult())
|
|
|
|
|
// && null != JSON.parseObject(tRecordResp.getAiResult())){
|
|
|
|
|
// typeAppend(tRecordResp.getAiResult(),aiResult);
|
|
|
|
|
// }
|
|
|
|
|
// if(aiResult.length() != 0){
|
|
|
|
|
// tRecordResp.setAiResult(aiResult.toString());
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
for(int i=0;i<list.size();i++){
|
|
|
|
|
list.get(i).setId(Long.valueOf(i+1));
|
|
|
|
|
StringBuilder updateResult = new StringBuilder();
|
|
|
|
|
if(StringUtils.isNotEmpty(tRecordResp.getUpdateResult())
|
|
|
|
|
&& null != JSON.parseObject(tRecordResp.getUpdateResult())){
|
|
|
|
|
typeAppend(tRecordResp.getUpdateResult(),updateResult);
|
|
|
|
|
if(StringUtils.isNotEmpty(list.get(i).getUpdateResult())
|
|
|
|
|
&& null != JSON.parseObject(list.get(i).getUpdateResult())){
|
|
|
|
|
typeAppend(list.get(i).getUpdateResult(),updateResult);
|
|
|
|
|
}
|
|
|
|
|
if(updateResult.length() != 0){
|
|
|
|
|
tRecordResp.setUpdateResult(updateResult.toString());
|
|
|
|
|
list.get(i).setUpdateResult(updateResult.toString());
|
|
|
|
|
}
|
|
|
|
|
StringBuilder aiResult = new StringBuilder();
|
|
|
|
|
if(StringUtils.isNotEmpty(tRecordResp.getAiResult())
|
|
|
|
|
&& null != JSON.parseObject(tRecordResp.getAiResult())){
|
|
|
|
|
typeAppend(tRecordResp.getAiResult(),aiResult);
|
|
|
|
|
if(StringUtils.isNotEmpty(list.get(i).getAiResult())
|
|
|
|
|
&& null != JSON.parseObject(list.get(i).getAiResult())){
|
|
|
|
|
typeAppend(list.get(i).getAiResult(),aiResult);
|
|
|
|
|
}
|
|
|
|
|
if(aiResult.length() != 0){
|
|
|
|
|
tRecordResp.setAiResult(aiResult.toString());
|
|
|
|
|
list.get(i).setAiResult(aiResult.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
ExcelUtil<TRecordResp> util = new ExcelUtil<>(TRecordResp.class);
|
|
|
|
|
util.exportExcel(response, list, "诊断记录信息数据");
|
|
|
|
|