|
@@ -4816,21 +4816,23 @@ public class ExcelTabController extends BladeController {
|
|
List<WbsTreeContract> wbsTreeContractList = entry.getValue();
|
|
List<WbsTreeContract> wbsTreeContractList = entry.getValue();
|
|
for (WbsTreeContract contract : wbsTreeContractList) {
|
|
for (WbsTreeContract contract : wbsTreeContractList) {
|
|
Map<String, Object> dataInfo = excelTabService.getBussDataInfo(contract.getPKeyId(), 0, true);
|
|
Map<String, Object> dataInfo = excelTabService.getBussDataInfo(contract.getPKeyId(), 0, true);
|
|
- InputStream inputStreamByUrl = FileUtils.getInputStreamByUrl(contract.getHtmlUrl());
|
|
|
|
- String htmlString = IoUtil.readToString(inputStreamByUrl);
|
|
|
|
- Document doc = Jsoup.parse(htmlString);
|
|
|
|
- Elements dateElements = doc.select("el-date-picker");
|
|
|
|
- if(!dateElements.isEmpty()){
|
|
|
|
- Boolean dateFlag=true;
|
|
|
|
- for (Element element : dateElements) {
|
|
|
|
- String keyname = element.attr("keyname");
|
|
|
|
- if(!dataInfo.containsKey(keyname)||(StringUtils.isEmpty(dataInfo.get(keyname).toString()))){
|
|
|
|
- dateFlag=false;
|
|
|
|
- break;
|
|
|
|
|
|
+ if(dataInfo!=null){
|
|
|
|
+ InputStream inputStreamByUrl = FileUtils.getInputStreamByUrl(contract.getHtmlUrl());
|
|
|
|
+ String htmlString = IoUtil.readToString(inputStreamByUrl);
|
|
|
|
+ Document doc = Jsoup.parse(htmlString);
|
|
|
|
+ Elements dateElements = doc.select("el-date-picker");
|
|
|
|
+ if(!dateElements.isEmpty()){
|
|
|
|
+ Boolean dateFlag=true;
|
|
|
|
+ for (Element element : dateElements) {
|
|
|
|
+ String keyname = element.attr("keyname");
|
|
|
|
+ if(!dataInfo.containsKey(keyname)||(StringUtils.isEmpty(dataInfo.get(keyname).toString()))){
|
|
|
|
+ dateFlag=false;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(!dateFlag){
|
|
|
|
+ wbsTreeContractMapper.update(contract,new LambdaUpdateWrapper<WbsTreeContract>().eq(WbsTreeContract::getPKeyId,contract.getPKeyId()).set(WbsTreeContract::getDateIsComplete,2));
|
|
}
|
|
}
|
|
- }
|
|
|
|
- if(!dateFlag){
|
|
|
|
- wbsTreeContractMapper.update(contract,new LambdaUpdateWrapper<WbsTreeContract>().eq(WbsTreeContract::getPKeyId,contract.getPKeyId()).set(WbsTreeContract::getDateIsComplete,2));
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|