1、数据查询导出
2、修改报工接口
This commit is contained in:
@@ -30,7 +30,7 @@ public class ExportOperate {
|
||||
log.error("保存分析项库文件失败");
|
||||
} else {
|
||||
String shellPath = scriptPath + File.separator + "exportExcel.py";
|
||||
exportFileName = System.currentTimeMillis() + "task.xlsx";
|
||||
exportFileName = TEMP_EXPORT_PATH + System.currentTimeMillis() + "task.xlsx";
|
||||
String cmd = "python " + shellPath + " " + taskJsonFileName + " " + exportFileName + " " + columnFileName;
|
||||
try {
|
||||
String resultString = SystemOperate.exeShellCmd(cmd);
|
||||
|
||||
@@ -81,13 +81,15 @@ public class SimulationWorkServiceImpl extends ServiceImpl<SimulationWorkMapper,
|
||||
if (actualWorkHour > maxWorkHour) {
|
||||
return SdmResponse.failed("您填写的工时:" + actualWorkHour + "已超出最大可填写的工时:" + maxWorkHour);
|
||||
}
|
||||
simulationWorkWrapper.set(SimulationWork::getActualProgress, req.getActualProgress())
|
||||
.set(SimulationWork::getWorkName, req.getWorkName()).update();
|
||||
simulationWorkWrapper.set(SimulationWork::getActualWorkHour, actualWorkHour);
|
||||
}
|
||||
updateFlag = simulationWorkWrapper
|
||||
.set(ObjectUtils.isNotEmpty(req.getActualWorkHour()), SimulationWork::getActualWorkHour, req.getActualWorkHour())
|
||||
.set(SimulationWork::getPlanWorkHour, req.getPlanWorkHour())
|
||||
.set(SimulationWork::getDescription, req.getDescription())
|
||||
.set(ObjectUtils.isNotEmpty(req.getPlanWorkHour()), SimulationWork::getPlanWorkHour, req.getPlanWorkHour())
|
||||
.set(ObjectUtils.isNotEmpty(req.getDescription()), SimulationWork::getDescription, req.getDescription())
|
||||
.set(ObjectUtils.isNotEmpty(req.getWorkName()), SimulationWork::getWorkName, req.getWorkName())
|
||||
.set(ObjectUtils.isNotEmpty(req.getActualProgress()), SimulationWork::getActualProgress, req.getActualProgress())
|
||||
.set(ObjectUtils.isNotEmpty(req.getShouldProgress()), SimulationWork::getShouldProgress, req.getShouldProgress())
|
||||
.eq(SimulationWork::getId, req.getId())
|
||||
.update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user