|
@@ -3771,28 +3771,42 @@ public class ExcelTabController extends BladeController {
|
|
|
@PostMapping("/save_sigpdfInfo12313213")
|
|
|
@ApiOperationSupport(order = 72)
|
|
|
@ApiOperation(value = "pdf", notes = "pdf")
|
|
|
- public void synPDFInfo(@RequestParam String contractid) throws Exception {
|
|
|
- String sqlInfo = "SELECT DISTINCT wbs_id,classify,contract_id,project_id,type from u_information_query where contract_id='"+contractid+"' and is_deleted=0 and type=1 and wbs_id in(SELECT p_key_id from m_wbs_tree_contract where is_deleted=0 and contract_id='"+contractid+"')";
|
|
|
+ public void synPDFInfo(@RequestParam String contractid,@RequestParam String typeinfo){
|
|
|
+ String sqlInfo = "SELECT DISTINCT wbs_id,classify,contract_id,project_id,type from u_information_query where contract_id='"+contractid+"' and is_deleted=0 and type=1 and classify='"+typeinfo+"' and wbs_id in(SELECT p_key_id from m_wbs_tree_contract where is_deleted=0 and contract_id='"+contractid+"')";
|
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(sqlInfo);
|
|
|
System.out.println(maps.size());
|
|
|
- int i=0;
|
|
|
- if(maps!=null && maps.size()>=2){
|
|
|
- for(Map<String, Object> dataMap:maps){
|
|
|
- String nodeId = dataMap.get("wbs_id")+"";
|
|
|
- String classify = dataMap.get("classify")+"";
|
|
|
- String contractId = dataMap.get("contract_id")+"";
|
|
|
- String projectId = dataMap.get("project_id")+"";
|
|
|
- List<AppWbsTreeContractVO> tableAll = wbsTreeContractService.searchNodeAllTable(nodeId, "1", contractId, projectId);
|
|
|
- if(tableAll!=null && tableAll.size()>=1){
|
|
|
- for(AppWbsTreeContractVO tab:tableAll){
|
|
|
- excelTabService.getBussPdfInfo(Long.parseLong(tab.getPKeyId()+""));
|
|
|
+
|
|
|
+ int i=0;
|
|
|
+ if(maps!=null && maps.size()>=1){
|
|
|
+ for(Map<String, Object> dataMap:maps){
|
|
|
+ String nodeId = dataMap.get("wbs_id")+"";
|
|
|
+ String classify = dataMap.get("classify")+"";
|
|
|
+ String contractId = dataMap.get("contract_id")+"";
|
|
|
+ String projectId = dataMap.get("project_id")+"";
|
|
|
+ List<AppWbsTreeContractVO> tableAll = wbsTreeContractService.searchNodeAllTable(nodeId, classify, contractId, projectId);
|
|
|
+ if(tableAll!=null && tableAll.size()>=1){
|
|
|
+ for(AppWbsTreeContractVO tab:tableAll){
|
|
|
+ try {
|
|
|
+ excelTabService.getBussPdfInfo(Long.parseLong(tab.getPKeyId()+""));
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }finally {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ i=i+1;
|
|
|
+ System.out.println("完成1---="+i);
|
|
|
+ try {
|
|
|
+ excelTabService.getBussPdfs(nodeId, classify, contractId, projectId);
|
|
|
+ } catch (Exception e) {
|
|
|
+ continue;
|
|
|
+ }finally {
|
|
|
+ continue;
|
|
|
}
|
|
|
}
|
|
|
- i=i+1;
|
|
|
- System.out.println("完成1---="+i);
|
|
|
- excelTabService.getBussPdfs(nodeId, classify, contractId, projectId);
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -3813,11 +3827,7 @@ public class ExcelTabController extends BladeController {
|
|
|
} else { //单个保存
|
|
|
dataArray.add(dataInfo);
|
|
|
}
|
|
|
- /*公式处理开始*/
|
|
|
- this.excelTabService.formulaFillData2(dataArray,ExecuteType.INSPECTION);
|
|
|
- /*公式处理结束*/
|
|
|
return excelTabService.saveBussData(dataArray);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|