@@ -93,6 +93,8 @@ public class MaterialTaskController {
|
|||||||
if (resp.getMeta().getCode() != 200) {
|
if (resp.getMeta().getCode() != 200) {
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
materialTaskService.refresh(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return FuHttpResponse.Builder().dataResponse().build();
|
return FuHttpResponse.Builder().dataResponse().build();
|
||||||
|
@@ -69,6 +69,13 @@ public class MaterialTaskService extends ServiceImpl<BaseMapper<MaterialTask>, M
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void refresh(MaterialTask data) throws Exception {
|
||||||
|
this.importData(data);
|
||||||
|
data.setStatus(MaterialTaskStatus.DONE);
|
||||||
|
super.updateById(data);
|
||||||
|
}
|
||||||
|
|
||||||
private boolean importData(MaterialTask data) throws Exception {
|
private boolean importData(MaterialTask data) throws Exception {
|
||||||
System.out.println("MaterialTaskService.importData | 导入数据 | task_id: " + data.getId());
|
System.out.println("MaterialTaskService.importData | 导入数据 | task_id: " + data.getId());
|
||||||
// 获取文件
|
// 获取文件
|
||||||
|
Reference in New Issue
Block a user