|
@@ -7,11 +7,6 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
-import com.itextpdf.html2pdf.ConverterProperties;
|
|
|
-import com.itextpdf.html2pdf.resolver.font.DefaultFontProvider;
|
|
|
-import com.itextpdf.io.font.FontProgram;
|
|
|
-import com.itextpdf.io.font.FontProgramFactory;
|
|
|
-import com.itextpdf.layout.font.FontProvider;
|
|
|
import com.spire.xls.ExcelPicture;
|
|
|
import com.spire.xls.ExcelVersion;
|
|
|
import com.spire.xls.Workbook;
|
|
@@ -26,6 +21,7 @@ import org.jsoup.nodes.Element;
|
|
|
import org.jsoup.select.Elements;
|
|
|
import org.springblade.business.feign.FileUtilsClient;
|
|
|
import org.springblade.business.feign.InformationQueryClient;
|
|
|
+import org.springblade.common.constant.CommonConstant;
|
|
|
import org.springblade.common.utils.CommonUtil;
|
|
|
import org.springblade.common.utils.MathUtil;
|
|
|
import org.springblade.common.utils.SnowFlakeUtil;
|
|
@@ -37,7 +33,6 @@ import org.springblade.core.secure.utils.AuthUtil;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.constant.BladeConstant;
|
|
|
import org.springblade.core.tool.utils.*;
|
|
|
-import org.springblade.manager.bean.TableInfo;
|
|
|
import org.springblade.manager.entity.*;
|
|
|
import org.springblade.manager.mapper.WbsTreePrivateMapper;
|
|
|
import org.springblade.manager.service.*;
|
|
@@ -48,6 +43,7 @@ import org.springblade.resource.feign.CommonFileClient;
|
|
|
import org.springblade.resource.feign.IOSSClient;
|
|
|
import org.springblade.resource.feign.NewIOSSClient;
|
|
|
import org.springblade.resource.vo.NewBladeFile;
|
|
|
+import org.springblade.system.cache.ParamCache;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springblade.core.mp.support.Query;
|
|
@@ -66,6 +62,8 @@ import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import static org.springblade.common.constant.CommonConstant.DEFAULT_PARAM_PASSWORD;
|
|
|
+
|
|
|
/**
|
|
|
* 清表基础数据表 控制器
|
|
|
*
|
|
@@ -259,12 +257,14 @@ public class ExcelTabController extends BladeController {
|
|
|
})
|
|
|
public R putFileAttach(@RequestParam("file") MultipartFile file, Long nodeId) {
|
|
|
|
|
|
+ String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
+
|
|
|
ExcelTab detail = excelTabService.getById(nodeId);
|
|
|
// 上传excel文件
|
|
|
R<BladeFile> bladeFile = iossClient.addFileInfo(file);
|
|
|
BladeFile bladeFile1 = bladeFile.getData();
|
|
|
String filecode = SnowFlakeUtil.getId()+"";
|
|
|
- String thmlUrl = "/Users/hongchuangyanfa/Desktop/"+filecode+".html";
|
|
|
+ String thmlUrl = file_path+filecode+".html";
|
|
|
// 解析excel
|
|
|
Workbook wb = new Workbook();
|
|
|
wb.loadFromMHtml(file.getInputStream());
|
|
@@ -272,7 +272,6 @@ public class ExcelTabController extends BladeController {
|
|
|
Worksheet sheet = wb.getWorksheets().get(0);
|
|
|
sheet.saveToHtml(thmlUrl);
|
|
|
|
|
|
-
|
|
|
detail.setExtension(bladeFile1.getOriginalName());
|
|
|
detail.setFileUrl(bladeFile1.getLink());
|
|
|
detail.setFileType(3); // 表示为清表信息 1 表示祖节点 2 表示为节点信息 3 表示清表
|
|
@@ -411,6 +410,7 @@ public class ExcelTabController extends BladeController {
|
|
|
@ApiImplicitParam(name = "tabId", value = "表Id", required = true)
|
|
|
})
|
|
|
public R<List<ExceTabTreVO>> saveLinkeTab(Long exceTabId, Long tabId, BladeUser bladeUser) throws IOException {
|
|
|
+ String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
// 查询私有项目信息
|
|
|
WbsTreePrivate wbsTree = new WbsTreePrivate();
|
|
|
wbsTree.setPKeyId(tabId);
|
|
@@ -427,7 +427,7 @@ public class ExcelTabController extends BladeController {
|
|
|
// 复制模版htmlURL
|
|
|
File file_in= ResourceUtil.getFile(excelTab.getHtmlUrl());
|
|
|
String filecode = SnowFlakeUtil.getId()+"";
|
|
|
- String thmlUrl = "/Users/hongchuangyanfa/Desktop/privateUrl/"+filecode+".html";
|
|
|
+ String thmlUrl = file_path+"/privateUrl/"+filecode+".html";
|
|
|
File file_out = ResourceUtil.getFile(thmlUrl);
|
|
|
FileUtil.copy(file_in,file_out);
|
|
|
updateWrapper.set("html_url",thmlUrl);
|
|
@@ -612,7 +612,7 @@ public class ExcelTabController extends BladeController {
|
|
|
/**
|
|
|
*保存用户填报数据接口
|
|
|
*/
|
|
|
- @PostMapping("/save_buss_data_bak")
|
|
|
+ @PostMapping("/save_buss_data")
|
|
|
@ApiOperationSupport(order = 13)
|
|
|
@ApiOperation(value = "填报页面数据保存", notes = "填报页面数据保存")
|
|
|
public R<String> saveBussData(@Valid @RequestBody JSONObject dataInfo, BladeUser bladeUser) throws IOException {
|
|
@@ -1175,6 +1175,7 @@ public class ExcelTabController extends BladeController {
|
|
|
if(wbsTreeContract.getHtmlUrl()==null){
|
|
|
return R.data(reData);
|
|
|
}
|
|
|
+
|
|
|
//表单是否存储在
|
|
|
String tabName = wbsTreeContract.getInitTableName();
|
|
|
String isExitSql = " select * from information_schema.TABLES where TABLE_NAME='"+tabName+"'";
|
|
@@ -1243,6 +1244,8 @@ public class ExcelTabController extends BladeController {
|
|
|
})
|
|
|
public R getBussPdfInfo(Long pkeyId) throws Exception {
|
|
|
|
|
|
+ String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
+
|
|
|
WbsTreeContract wbsTreeContract = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
|
|
|
.eq(WbsTreeContract::getPKeyId, pkeyId));
|
|
|
|
|
@@ -1253,7 +1256,7 @@ public class ExcelTabController extends BladeController {
|
|
|
return R.fail("请关联清表!");
|
|
|
}
|
|
|
|
|
|
- String pdfPath="/Users/hongchuangyanfa/Desktop/pdf//"+pkeyId+".pdf";
|
|
|
+ String pdfPath=file_path+"/pdf//"+pkeyId+".pdf";
|
|
|
File tabpdf = ResourceUtil.getFile(pdfPath);
|
|
|
if(tabpdf.exists()){
|
|
|
tabpdf.delete();
|
|
@@ -1271,11 +1274,13 @@ public class ExcelTabController extends BladeController {
|
|
|
Worksheet sheet = wb.getWorksheets().get(0);
|
|
|
|
|
|
if (DataInfo != null && DataInfo.size() >= 1) {
|
|
|
+
|
|
|
File htmlFile = ResourceUtil.getFile(wbsTreeContract.getHtmlUrl());
|
|
|
String htmlString = IoUtil.readToString(new FileInputStream(htmlFile));
|
|
|
Document doc = Jsoup.parse(htmlString);
|
|
|
Element table = doc.select("table").first();
|
|
|
Elements trs = table.select("tr");
|
|
|
+
|
|
|
for(String val : DataInfo.keySet()){
|
|
|
if(val.indexOf("__")>=0){
|
|
|
String DataVal[] = val.split("__");
|
|
@@ -1310,11 +1315,18 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
|
https://bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload/20220819/b53cb6700db369381e3b03d7737bcdec.jpg__16_1
|
|
|
if(myData.indexOf("https")>=0 && myData.indexOf("aliyuncs")>=0){
|
|
|
- System.out.println(myData);
|
|
|
+ Element element = trs.get(y1).select("td").get(x1);
|
|
|
+ String styles[] = element.attr("style").split(";");
|
|
|
+ int Height = 0;
|
|
|
+ for(String sty:styles){
|
|
|
+ if(sty.indexOf("height:")>=0){
|
|
|
+ Height = Integer.parseInt(sty.replace("height:","").replace("px",""));
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
BufferedImage image = ImageIO.read(CommonUtil.getOSSInputStream(myData) );
|
|
|
ExcelPicture pic = sheet.getPictures().add(y1, x1,image);
|
|
|
-
|
|
|
+ pic.setHeight(Height);
|
|
|
sheet.getCellRange(y1,x1).getStyle().setShrinkToFit(true);
|
|
|
|
|
|
}else{
|
|
@@ -1353,8 +1365,12 @@ public class ExcelTabController extends BladeController {
|
|
|
|
|
|
List<String> dataListPdf = tableFileList.stream().filter(tableFile -> tableFile.getDomainPdfUrl()!=null).map(TableFile::getDomainPdfUrl).collect(Collectors.toList());
|
|
|
|
|
|
- String pdfPath2 = "/Users/hongchuangyanfa/Desktop/pdf//"+pkeyId+"_2.pdf";
|
|
|
+ String pdfPath2 = file_path+"/pdf//"+pkeyId+"_2.pdf";
|
|
|
|
|
|
+ File tabpdf2 = ResourceUtil.getFile(pdfPath2);
|
|
|
+ if(tabpdf2.exists()){
|
|
|
+ tabpdf2.delete();
|
|
|
+ }
|
|
|
FileUtils.mergePdfPublicMethods(dataListPdf,pdfPath2);
|
|
|
|
|
|
BladeFile bladeFile2 = newIOSSClient.uploadFile(pkeyId + "2.pdf", pdfPath2);
|
|
@@ -1377,7 +1393,10 @@ public class ExcelTabController extends BladeController {
|
|
|
public R copeBussTab(Long pkeyId) throws FileNotFoundException {
|
|
|
WbsTreeContract wbsTreeContract = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
|
|
|
.eq(WbsTreeContract::getPKeyId, pkeyId));
|
|
|
- List<WbsTreeContract> wbsTreeContractList = wbsTreeContractService.getBaseMapper().selectList(Wrappers.<WbsTreeContract>query().lambda().eq(WbsTreeContract::getId,wbsTreeContract.getId()).eq(WbsTreeContract::getContractId,wbsTreeContract.getContractId()));
|
|
|
+ List<WbsTreeContract> wbsTreeContractList = wbsTreeContractService.getBaseMapper().selectList(Wrappers.<WbsTreeContract>query().lambda()
|
|
|
+ .eq(WbsTreeContract::getId,wbsTreeContract.getId())
|
|
|
+ .eq(WbsTreeContract::getContractId,wbsTreeContract.getContractId())
|
|
|
+ .eq(WbsTreeContract::getParentId,wbsTreeContract.getParentId()));
|
|
|
|
|
|
long newPkId = SnowFlakeUtil.getId();
|
|
|
Long id = wbsTreeContract.getId();
|
|
@@ -1447,6 +1466,8 @@ public class ExcelTabController extends BladeController {
|
|
|
})
|
|
|
public R addBussFile(@RequestParam("file") MultipartFile file, Long pkeyId) {
|
|
|
|
|
|
+ String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
+
|
|
|
R<BladeFile> bladeFile = iossClient.addFileInfo(file);
|
|
|
BladeFile bladeFile1 = bladeFile.getData();
|
|
|
TableFile tableFile = new TableFile();
|
|
@@ -1490,7 +1511,11 @@ public class ExcelTabController extends BladeController {
|
|
|
//
|
|
|
List<String> dataListPdf = tableFileList.stream().filter(tableFile1 -> tableFile1.getDomainPdfUrl()!=null).map(TableFile::getDomainPdfUrl).collect(Collectors.toList());
|
|
|
|
|
|
- String pdfPath2 = "/Users/hongchuangyanfa/Desktop/pdf//"+pkeyId+"_2.pdf";
|
|
|
+ String pdfPath2 = file_path+"/pdf//"+pkeyId+"_2.pdf";
|
|
|
+ File tabpdf2 = ResourceUtil.getFile(pdfPath2);
|
|
|
+ if(tabpdf2.exists()){
|
|
|
+ tabpdf2.delete();
|
|
|
+ }
|
|
|
|
|
|
FileUtils.mergePdfPublicMethods(dataListPdf,pdfPath2);
|
|
|
|
|
@@ -1532,13 +1557,17 @@ public class ExcelTabController extends BladeController {
|
|
|
@ApiImplicitParam(name = "projectId", value = "项目ID", required = true),
|
|
|
@ApiImplicitParam(name = "contractId", value = "合同段Id", required = true)
|
|
|
})
|
|
|
- public R getBussPdfs(String nodeId,String classify,String contractId,String projectId){
|
|
|
-
|
|
|
+ public R getBussPdfs(String nodeId,String classify,String contractId,String projectId) throws FileNotFoundException {
|
|
|
+ String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
// 获取有权限的节点信息
|
|
|
List<WbsTreeContract> wbsTreeContractList = wbsTreeContractService.searchNodeAllTable(nodeId, classify, contractId, projectId);
|
|
|
List<String> data = wbsTreeContractList.stream().filter(wbsTreeContract -> wbsTreeContract.getPdfUrl()!=null && !wbsTreeContract.getIsBussShow().equals("2")).map(WbsTreeContract::getPdfUrl).collect(Collectors.toList());
|
|
|
|
|
|
- String listPdf = "/Users/hongchuangyanfa/Desktop/pdf/"+nodeId+".pdf";
|
|
|
+ String listPdf = file_path+"pdf/"+nodeId+".pdf";
|
|
|
+ File tabpdf2 = ResourceUtil.getFile(listPdf);
|
|
|
+ if(tabpdf2.exists()){
|
|
|
+ tabpdf2.delete();
|
|
|
+ }
|
|
|
|
|
|
FileUtils.mergePdfPublicMethods(data,listPdf);
|
|
|
|
|
@@ -1565,33 +1594,11 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 设置BaseFont
|
|
|
- * @param fontPath 字体路径
|
|
|
- * @return
|
|
|
- */
|
|
|
- private static ConverterProperties creatBaseFont(String fontPath) {
|
|
|
- ConverterProperties properties = new ConverterProperties();
|
|
|
- FontProvider fontProvider = new DefaultFontProvider();
|
|
|
- FontProgram fontProgram;
|
|
|
- try {
|
|
|
- fontProgram = FontProgramFactory.createFont(fontPath);
|
|
|
- fontProvider.addFont(fontProgram);
|
|
|
- properties.setFontProvider(fontProvider);
|
|
|
- } catch (IOException e) {
|
|
|
- // log.error("creat base font erro" , e );
|
|
|
- System.out.println("creat base font erro");
|
|
|
- }
|
|
|
- return properties;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- @PostMapping("/save_buss_data")
|
|
|
+ @PostMapping("/save_buss_data_bak")
|
|
|
@ApiOperationSupport(order = 13)
|
|
|
@ApiOperation(value = "填报页面数据保存", notes = "填报页面数据保存")
|
|
|
public R<String> _saveBussData(@Valid @RequestBody JSONObject dataInfo, BladeUser bladeUser) throws IOException {
|
|
|
+
|
|
|
JSONArray dataArray = new JSONArray();
|
|
|
if(dataInfo.containsKey("dataInfo")){ // 节点保存
|
|
|
JSONObject jsonObject = dataInfo.getJSONObject("dataInfo");
|
|
@@ -1599,9 +1606,132 @@ public class ExcelTabController extends BladeController {
|
|
|
}else{ // 单个保存
|
|
|
dataArray.add(dataInfo);
|
|
|
}
|
|
|
- List<TableInfo> tableInfoList =this.excelTabService.getTableInfoList(dataArray);
|
|
|
- this.excelTabService.formulaFillData(tableInfoList);
|
|
|
- this.excelTabService.saveOrUpdateInfo(tableInfoList);
|
|
|
+
|
|
|
+ for(int m=0;m<dataArray.size();m++){
|
|
|
+ JSONObject dataInfo2= dataArray.getJSONObject(m);
|
|
|
+ //
|
|
|
+ String contractId = dataInfo2.getString("contractId");
|
|
|
+ String pkeyId = dataInfo2.getString("pkeyId");
|
|
|
+ String projectId = dataInfo2.getString("projectId");
|
|
|
+ //huangjn 填报的类型,施工或监理
|
|
|
+ String classify = dataInfo2.getString("classify");
|
|
|
+
|
|
|
+ //huangjn 填报的类型,施工或监理
|
|
|
+ // 去掉
|
|
|
+ dataInfo2.remove("contractId");
|
|
|
+ dataInfo2.remove("pkeyId");
|
|
|
+ dataInfo2.remove("p_key_id");
|
|
|
+ dataInfo2.remove("projectId");
|
|
|
+ dataInfo2.remove("classify");
|
|
|
+ dataInfo2.remove("pickerKey");
|
|
|
+ dataInfo2.remove("id");
|
|
|
+ dataInfo2.remove("");
|
|
|
+ // 计算数据
|
|
|
+ Map<String,String> dataMap = new HashMap<>();
|
|
|
+ for(String k:dataInfo2.keySet()){
|
|
|
+ if(k.indexOf("__")>=0){
|
|
|
+ String key = k.split("__")[0];
|
|
|
+ if(dataMap.containsKey(key)){
|
|
|
+ dataMap.put(key,dataMap.get(key)+","+k);
|
|
|
+ }else{
|
|
|
+ dataMap.put(key,k);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String,String> dataMap2 = new HashMap<>();
|
|
|
+
|
|
|
+
|
|
|
+ // 字段组合
|
|
|
+ for(String k:dataMap.keySet()){
|
|
|
+ if(dataMap.get(k).indexOf(",")>=0 && dataMap.get(k).indexOf("000Z")<0){
|
|
|
+ String [] ziduan= dataMap.get(k).split(",");
|
|
|
+ String temp = "";
|
|
|
+ for(int i = 0; i < ziduan.length - 1; i++) {
|
|
|
+ for (int j = 0; j < ziduan.length - i - 1; j++) {
|
|
|
+ Integer tr = Integer.parseInt((ziduan[j].split("__")[1]).split("_")[0]);
|
|
|
+ Integer td = Integer.parseInt(ziduan[j].split("__")[1].split("_")[1]);
|
|
|
+
|
|
|
+ Integer tr_1 = Integer.parseInt(ziduan[j + 1].split("__")[1].split("_")[0]);
|
|
|
+ Integer td_1 = Integer.parseInt(ziduan[j + 1].split("__")[1].split("_")[1]);
|
|
|
+
|
|
|
+ if (tr > tr_1 && td==td_1 ) { //纵向排序
|
|
|
+ temp = ziduan[j];
|
|
|
+ ziduan[j] = ziduan[j + 1];
|
|
|
+ ziduan[j + 1] = temp;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ String lastStr = dataInfo2.getString(ziduan[0])+"__"+ziduan[0].split("__")[1];
|
|
|
+ for (int i=1 ;i<ziduan.length;i++){
|
|
|
+ String keyData = dataInfo2.getString(ziduan[i]);
|
|
|
+ if(!keyData.equals("")){
|
|
|
+ lastStr+=","+dataInfo2.getString(ziduan[i])+"__"+ziduan[i].split("__")[1];
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ dataMap2.put(k,lastStr);
|
|
|
+ }else{
|
|
|
+ String dataVal = dataInfo2.getString(dataMap.get(k));
|
|
|
+ if(!dataVal.equals("") || !dataVal.equals("[]") ) {
|
|
|
+ System.out.println(k+"__"+dataMap.get(k));
|
|
|
+ dataMap2.put(k, dataVal+"__"+dataMap.get(k).split("__")[1]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ dataMap2.put("p_key_id",pkeyId);
|
|
|
+
|
|
|
+ WbsTreeContract wbsTreeContract = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
|
|
|
+ .eq(WbsTreeContract::getPKeyId, pkeyId));
|
|
|
+ if(wbsTreeContract == null){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ String tabName = wbsTreeContract.getInitTableName();
|
|
|
+
|
|
|
+ // 判读修改还是 添加
|
|
|
+ String querySql = "select * from "+tabName+" where p_key_id="+pkeyId ;
|
|
|
+ List<Map<String, Object>> dataIn = jdbcTemplate.queryForList(querySql);
|
|
|
+
|
|
|
+ String sqlInfo="";
|
|
|
+
|
|
|
+ if(dataIn.isEmpty()){ //插入
|
|
|
+ sqlInfo = "INSERT INTO "+tabName+" ( ";
|
|
|
+ String keyStr = "id,";
|
|
|
+ String valStr = SnowFlakeUtil.getId() + ",";
|
|
|
+ for (String keys : dataMap2.keySet()){
|
|
|
+ keyStr += keys+",";
|
|
|
+ valStr += "'"+dataMap2.get(keys)+"',";
|
|
|
+ }
|
|
|
+ keyStr=keyStr.substring(0,keyStr.lastIndexOf(","));
|
|
|
+ valStr=valStr.substring(0,valStr.lastIndexOf(","));
|
|
|
+ sqlInfo = sqlInfo + keyStr+") VALUES (" +valStr +")";
|
|
|
+
|
|
|
+
|
|
|
+ WbsTreeContract wbsTreeContractByP = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
|
|
|
+ .eq(WbsTreeContract::getId, wbsTreeContract.getParentId()).eq(WbsTreeContract::getContractId,contractId));
|
|
|
+
|
|
|
+ //huangjn 保存成功后调用生成资料查询列表数据
|
|
|
+ this.informationQueryClient.saveOrUpdateInformationQueryData(wbsTreeContractByP.getPKeyId()+"", "文件名称(后面再完善)", Integer.parseInt(classify), 2);
|
|
|
+ }else{ //更新
|
|
|
+ sqlInfo = "update "+tabName+" set ";
|
|
|
+ for (String keys : dataMap2.keySet()){
|
|
|
+ sqlInfo += keys+"='"+dataMap2.get(keys)+"',";
|
|
|
+ }
|
|
|
+ sqlInfo=sqlInfo.substring(0,sqlInfo.lastIndexOf(","));
|
|
|
+ sqlInfo = sqlInfo + " where p_key_id="+pkeyId;
|
|
|
+ }
|
|
|
+
|
|
|
+ UpdateWrapper<WbsTreeContract> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.in("p_key_id",pkeyId);
|
|
|
+ updateWrapper.set("is_tab_pdf",2);
|
|
|
+ wbsTreeContractService.update(updateWrapper);
|
|
|
+
|
|
|
+ jdbcTemplate.execute(sqlInfo);
|
|
|
+ // this.getBussPdfInfo(Long.parseLong(pkeyId));
|
|
|
+ }
|
|
|
return R.success("1");
|
|
|
}
|
|
|
|