|
@@ -2527,7 +2527,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
* 试验 获取填报信息
|
|
* 试验 获取填报信息
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public List<Map<String, Object>> getBussDataInfoTrial(Long groupId, Long pkeyId, Long contractId, Long entrustId, Integer type,Long nodeId) {
|
|
|
|
|
|
+ public List<Map<String, Object>> getBussDataInfoTrial(Long groupId, Long pkeyId, Long contractId, Long entrustId, Integer type,Long nodeId,JSONObject jsonObject) {
|
|
String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
String sys_file_net_url = ParamCache.getValue(CommonConstant.SYS_FILE_NET_URL);
|
|
String sys_file_net_url = ParamCache.getValue(CommonConstant.SYS_FILE_NET_URL);
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
@@ -2541,7 +2541,6 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
if (wbsTreePrivate.getHtmlUrl() == null) {
|
|
if (wbsTreePrivate.getHtmlUrl() == null) {
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
-
|
|
|
|
//表单是否存储在
|
|
//表单是否存储在
|
|
String tabName = wbsTreePrivate.getInitTableName();
|
|
String tabName = wbsTreePrivate.getInitTableName();
|
|
String isExitSql = "select * from information_schema.TABLES where TABLE_NAME='" + tabName + "'";
|
|
String isExitSql = "select * from information_schema.TABLES where TABLE_NAME='" + tabName + "'";
|
|
@@ -2820,6 +2819,15 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
reData.remove("pkeyId");
|
|
reData.remove("pkeyId");
|
|
reData.remove("projectId");
|
|
reData.remove("projectId");
|
|
chart(reData, wbsTreePrivate);
|
|
chart(reData, wbsTreePrivate);
|
|
|
|
+ if(ObjectUtil.isNotEmpty(jsonObject)){
|
|
|
|
+ for (Map.Entry<String, Object> entry : jsonObject.entrySet()) {
|
|
|
|
+ if(entry.getKey().contains("key")){
|
|
|
|
+ if(!reData.containsKey(entry.getKey())){
|
|
|
|
+ reData.put(entry.getKey(),entry.getValue());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
list.add(reData);
|
|
list.add(reData);
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
@@ -3030,7 +3038,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
}
|
|
}
|
|
|
|
|
|
//获取数据信息info
|
|
//获取数据信息info
|
|
- List<Map<String, Object>> bussDataInfoTrial = this.getBussDataInfoTrial(id, pkeyId, Long.parseLong(contractId),null,null,null);
|
|
|
|
|
|
+ List<Map<String, Object>> bussDataInfoTrial = this.getBussDataInfoTrial(id, pkeyId, Long.parseLong(contractId),null,null,null,null);
|
|
Map<String, Object> DataInfo = new HashMap<>();
|
|
Map<String, Object> DataInfo = new HashMap<>();
|
|
if (bussDataInfoTrial.size() > 0) {
|
|
if (bussDataInfoTrial.size() > 0) {
|
|
DataInfo.putAll(bussDataInfoTrial.stream().findAny().orElse(null));
|
|
DataInfo.putAll(bussDataInfoTrial.stream().findAny().orElse(null));
|
|
@@ -4084,7 +4092,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
}
|
|
}
|
|
|
|
|
|
//获取数据信息info
|
|
//获取数据信息info
|
|
- List<Map<String, Object>> bussDataInfoTrial = this.getBussDataInfoTrial(groupId, pkeyId, Long.parseLong(contractId),null,null,null);
|
|
|
|
|
|
+ List<Map<String, Object>> bussDataInfoTrial = this.getBussDataInfoTrial(groupId, pkeyId, Long.parseLong(contractId),null,null,null,null);
|
|
Map<String, Object> DataInfo = new HashMap<>();
|
|
Map<String, Object> DataInfo = new HashMap<>();
|
|
if (bussDataInfoTrial.size() > 0) {
|
|
if (bussDataInfoTrial.size() > 0) {
|
|
DataInfo.putAll(bussDataInfoTrial.stream().findAny().orElse(null));
|
|
DataInfo.putAll(bussDataInfoTrial.stream().findAny().orElse(null));
|
|
@@ -4465,7 +4473,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
* 试验 委托单获取填报信息 groupId和sampleId1必须传其中一个
|
|
* 试验 委托单获取填报信息 groupId和sampleId1必须传其中一个
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public List<Map<String, Object>> getBussDataInfoTrialentrust(Long groupId, Long pkeyId, Long contractId,Long sampleId1) {
|
|
|
|
|
|
+ public List<Map<String, Object>> getBussDataInfoTrialentrust(Long groupId, Long pkeyId, Long contractId,Long sampleId1,JSONObject jsonObject) {
|
|
String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
String sys_file_net_url = ParamCache.getValue(CommonConstant.SYS_FILE_NET_URL);
|
|
String sys_file_net_url = ParamCache.getValue(CommonConstant.SYS_FILE_NET_URL);
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
@@ -4642,6 +4650,15 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
reData.remove("pkeyId");
|
|
reData.remove("pkeyId");
|
|
reData.remove("projectId");
|
|
reData.remove("projectId");
|
|
chart(reData, wbsTreePrivate);
|
|
chart(reData, wbsTreePrivate);
|
|
|
|
+ if(ObjectUtil.isNotEmpty(jsonObject)){
|
|
|
|
+ for (Map.Entry<String, Object> entry : jsonObject.entrySet()) {
|
|
|
|
+ if(entry.getKey().contains("key")){
|
|
|
|
+ if(!reData.containsKey(entry.getKey())){
|
|
|
|
+ reData.put(entry.getKey(),entry.getValue());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
list.add(reData);
|
|
list.add(reData);
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|