2024年7月6日 修复问题
This commit is contained in:
parent
46da72f299
commit
373be9bd89
|
@ -184,6 +184,12 @@ public class BlStuAnswerController extends JeecgController<BlStuAnswer, IBlStuAn
|
|||
//400条 saveBatch消耗时间1592毫秒 循环插入消耗时间1947毫秒
|
||||
//1200条 saveBatch消耗时间3687毫秒 循环插入消耗时间5212毫秒
|
||||
log.info("消耗时间" + (System.currentTimeMillis() - start) + "毫秒");
|
||||
|
||||
//直接导出附件
|
||||
WordOperator wo = service.createWordTjfx(id);
|
||||
//保存到本地附件里
|
||||
|
||||
ExportWord.download_by_is();
|
||||
//update-end-author:taoyan date:20190528 for:批量插入数据
|
||||
return Result.ok("文件导入成功!数据行数:" + list.size());
|
||||
} catch (Exception e) {
|
||||
|
@ -200,7 +206,7 @@ public class BlStuAnswerController extends JeecgController<BlStuAnswer, IBlStuAn
|
|||
try {
|
||||
file.getInputStream().close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -669,6 +669,10 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
return WebDriverUtil.getImgByte400(json);
|
||||
}
|
||||
|
||||
public String getRadarChart100(Map<String, String> map){
|
||||
return getRadarChart(map, "100", "单位:%");
|
||||
}
|
||||
|
||||
|
||||
public String getRadarChart(Map<String, String> map) {
|
||||
return getRadarChart(map, "5", "单位:分");
|
||||
|
@ -703,7 +707,14 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
radar: {
|
||||
radius: '50%%',
|
||||
indicator: %s,
|
||||
axisName: { fontSize: 15, color: '#000', padding: 70, },
|
||||
axisName: {
|
||||
fontSize: 15, color: '#000', padding: 70,
|
||||
formatter: (v) => {
|
||||
let l = String(v).split('');let r = '';
|
||||
l.forEach((x,i) => { if((i+1) %% 12 == 0){ r += x + '\\n'; } else { r += x; } });
|
||||
return r;
|
||||
}
|
||||
},
|
||||
},
|
||||
series: [
|
||||
{
|
||||
|
@ -1170,7 +1181,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i2_6(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i2_6(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i2_6", imagePath);
|
||||
}
|
||||
}
|
||||
|
@ -1342,7 +1353,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i2_18(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i2_18(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i2_18", imagePath);
|
||||
}
|
||||
}
|
||||
|
@ -1413,7 +1424,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i2_23(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i2_23(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i2_23", imagePath);
|
||||
}
|
||||
}
|
||||
|
@ -1471,7 +1482,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i2_27(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i2_27(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i2_27", imagePath);
|
||||
}
|
||||
}
|
||||
|
@ -1565,7 +1576,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i2_34(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i2_34(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i2_34", imagePath);
|
||||
}
|
||||
}
|
||||
|
@ -1621,7 +1632,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i3_2(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i3_2(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i3_2", imagePath);
|
||||
}
|
||||
}
|
||||
|
@ -1892,7 +1903,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i4_9(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i4_9(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i4_9", imagePath);
|
||||
}
|
||||
}
|
||||
|
@ -1953,7 +1964,7 @@ public class BlStuAnswerServiceImpl extends ServiceImpl<BlStuAnswerMapper, BlStu
|
|||
public void i4_13(WordOperator wo, Map<String, Object> result, String id) {
|
||||
var list = baseMapper.i4_13(id);
|
||||
if(list != null && !list.isEmpty()){
|
||||
String imagePath = getRadarChart(list.get(0));
|
||||
String imagePath = getRadarChart100(list.get(0));
|
||||
result.put("i4_13", imagePath);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,6 +73,10 @@ public class ExportWord {
|
|||
return new WordOperator(is);
|
||||
}
|
||||
|
||||
// public static String getWordPathToLocalFile(String biz){
|
||||
//
|
||||
// }
|
||||
|
||||
/**
|
||||
* 下载生成的word文档
|
||||
* @param request 请求
|
||||
|
|
Loading…
Reference in New Issue