|
@@ -4087,8 +4087,12 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
|
|
|
// 获取匹配的laodId
|
|
|
String load_data_id = "";
|
|
|
- JSONArray jsonArray = dto.getDataInfo().getJSONArray("orderList");
|
|
|
- load_data_id = jsonArray.getJSONObject(0).getString("loadDataId");
|
|
|
+ if (dto.getDataInfo() != null) {
|
|
|
+ JSONArray jsonArray = dto.getDataInfo().getJSONArray("orderList");
|
|
|
+ if (jsonArray != null) {
|
|
|
+ load_data_id = jsonArray.getJSONObject(0).getString("loadDataId");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
String sql;
|
|
|
if (query.size() == 0) {
|
|
@@ -4118,6 +4122,9 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
public String getBussPDFSTrial(String nodeId, String tableType, String classify, String contractId, String
|
|
|
projectId, Long id, String tabIds, TrialSelfInspectionRecordDTO dto) throws Exception {
|
|
|
String file_path = FileUtils.getSysLocalFileUrl();
|
|
|
+ if (StringUtils.isBlank(tabIds)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
//获取有权限的表的信息
|
|
|
List<WbsTreePrivate> queryList = jdbcTemplate.query("select p_key_id,html_url,table_type,sort,node_name,create_time from m_wbs_tree_private where is_deleted = 0 and p_key_id in (" + tabIds + ") order by sort,node_name,create_time", new BeanPropertyRowMapper<>(WbsTreePrivate.class));
|
|
|
List<String> dataPdfUrls = new ArrayList<>();
|