|
@@ -2068,8 +2068,10 @@ public class ExcelTabController extends BladeController {
|
|
|
@PostMapping("/save_buss_data")
|
|
|
@ApiOperationSupport(order = 13)
|
|
|
@ApiOperation(value = "填报页面数据保存", notes = "填报页面数据保存")
|
|
|
- public R saveBussData2(@Valid @RequestBody JSONObject dataInfo) throws Exception {
|
|
|
-
|
|
|
+ public R saveBussData2(@Valid @RequestBody JSONObject dataInfo,Boolean flag) throws Exception {
|
|
|
+ if(flag==null){
|
|
|
+ flag=true;
|
|
|
+ }
|
|
|
ExecutionTime executionTime = new ExecutionTime();
|
|
|
executionTime.info("----计划开始----");
|
|
|
JSONArray dataArray = new JSONArray();
|
|
@@ -2130,7 +2132,7 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
|
|
|
|
//保存数据到数据库
|
|
|
- R<Object> result = this.excelTabService.saveOrUpdateInfo(tableInfoList,singnType);
|
|
|
+ R<Object> result = this.excelTabService.saveOrUpdateInfo(tableInfoList,singnType,flag);
|
|
|
RandomNumberHolder.RandomTemplateTypeclear();
|
|
|
RandomNumberHolder.RandomWbsTreeContractclear();
|
|
|
executionTime.info("----数据保存结束----");
|
|
@@ -2404,7 +2406,7 @@ public class ExcelTabController extends BladeController {
|
|
|
//公式填充
|
|
|
this.excelTabService.formulaFillData(tableInfoList, Long.parseLong(nodeId), ExecuteType.INSPECTION);
|
|
|
//保存数据到数据库
|
|
|
- R<Object> result = this.excelTabService.saveOrUpdateInfo(tableInfoList,"");
|
|
|
+ R<Object> result = this.excelTabService.saveOrUpdateInfo(tableInfoList,"",true);
|
|
|
if (!result.isSuccess()) {
|
|
|
R.fail(result.getMsg());
|
|
|
return;
|
|
@@ -4776,7 +4778,7 @@ public class ExcelTabController extends BladeController {
|
|
|
js.put("signType", "1");
|
|
|
}*/
|
|
|
|
|
|
- this.saveBussData2(js);
|
|
|
+ this.saveBussData2(js,true);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
return null;
|