|
@@ -2359,13 +2359,13 @@ public class ExcelTabController extends BladeController {
|
|
|
@ApiImplicitParam(name = "String pkeyId", value = "当前表pKeyId"),
|
|
|
@ApiImplicitParam(name = "recordTime", value = "当前选择的填写日期,即右侧日期控件所选日期,格式为 yyyy-MM-dd")
|
|
|
})
|
|
|
- public R<String> getTheLogPdInfo(String pkeyId, String nodePrimaryKeyId, String recordTime, String contractId) throws Exception {
|
|
|
+ public R<String> getTheLogPdInfo(String pkeyId, String nodePrimaryKeyId, String recordTime, String contractId,Long createUser) throws Exception {
|
|
|
//获取配置的路径
|
|
|
String file_path = FileUtils.getSysLocalFileUrl();
|
|
|
if (StringUtils.isEmpty(recordTime)) {
|
|
|
recordTime = DateUtil.format(DateUtil.now(), "yyyy-MM-dd");
|
|
|
}
|
|
|
- List<ContractLog> contractLogList = this.contractLogClient.queryContractLogByPrimaryKeyIdAndRecordTimeList(nodePrimaryKeyId, recordTime, contractId);
|
|
|
+ List<ContractLog> contractLogList = this.contractLogClient.queryContractLogByPrimaryKeyIdAndRecordTimeList(nodePrimaryKeyId, recordTime, contractId,createUser);
|
|
|
List<String> ids = contractLogList.stream().map(ContractLog::getId).map(String::valueOf).collect(Collectors.toList());
|
|
|
if (ids.size() > 0) {
|
|
|
//PDF路径
|
|
@@ -2528,10 +2528,10 @@ public class ExcelTabController extends BladeController {
|
|
|
myData = dataDate[0].replace("\"", "") + "-" + dataDate[1].trim().replace("\"", "");
|
|
|
}
|
|
|
} else {
|
|
|
- myData = Func.convert(dataDate, String.class).replaceAll(" ", "");
|
|
|
+ myData = Func.convert(dataDate, String.class).replaceAll(" ", "").replaceAll(",","、");
|
|
|
if (myData.startsWith("[") && myData.endsWith("]")) {
|
|
|
// 去掉两端的中括号
|
|
|
- myData = myData.substring(1, myData.length() - 1);
|
|
|
+ myData=myData.replaceAll("\\[","").replaceAll("]","");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2672,7 +2672,7 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
|
dataIds = ids.stream().filter(Objects::nonNull).collect(Collectors.joining(","));
|
|
|
} else {
|
|
|
- List<ContractLog> contractLogs = this.contractLogClient.queryContractLogByPrimaryKeyIdAndRecordTimeList(nodePrimaryKeyId, recordTime, contractId);
|
|
|
+ List<ContractLog> contractLogs = this.contractLogClient.queryContractLogByPrimaryKeyIdAndRecordTimeList(nodePrimaryKeyId, recordTime, contractId,null);
|
|
|
if (contractLogs.size() == 0) {
|
|
|
logId2 = "";
|
|
|
} else {
|
|
@@ -2821,7 +2821,6 @@ public class ExcelTabController extends BladeController {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
for (Map<String, Object> mysqlData : businessDataMap) {
|
|
|
-
|
|
|
String querySqlx = "SELECT tree_primary_key_id as primaryKeyId,title as path from u_contract_log_wbs where business_id ='" + dataId + "' and is_deleted = 0";
|
|
|
List<Map<String, Object>> businessDat = this.jdbcTemplate.queryForList(querySqlx);
|
|
|
reData.put("linkTabIds", businessDat);
|
|
@@ -2865,7 +2864,8 @@ public class ExcelTabController extends BladeController {
|
|
|
reData.put(key + "__" + tabData[1], strings);
|
|
|
} else {
|
|
|
if (tabVal.contains("[") && tabVal.contains("]")) {
|
|
|
- reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
+ String[] strings = new String[]{tabData[0].replaceAll("\\[","").replaceAll("]","")};
|
|
|
+ reData.put(key + "__" + tabData[1],strings);
|
|
|
} else {
|
|
|
reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
}
|
|
@@ -3110,7 +3110,7 @@ public class ExcelTabController extends BladeController {
|
|
|
return fail("没有数据可复制");
|
|
|
} else {
|
|
|
//查询当前所在日期日志记录
|
|
|
- List<ContractLog> contractLogs = this.contractLogClient.queryContractLogByPrimaryKeyIdAndRecordTimeList(nodePrimaryKeyId, currentTime, contractId);
|
|
|
+ List<ContractLog> contractLogs = this.contractLogClient.queryContractLogByPrimaryKeyIdAndRecordTimeList(nodePrimaryKeyId, currentTime, contractId,null);
|
|
|
if (ObjectUtil.isEmpty(contractLogs)) {
|
|
|
String id = this.contractLogClient.saveContractLog(new SaveContractLogVO(
|
|
|
dataIds,
|
|
@@ -3483,7 +3483,7 @@ public class ExcelTabController extends BladeController {
|
|
|
//保存日志
|
|
|
data = this.excelTabService.saveOrUpdateTheLog(tableInfoList);
|
|
|
}
|
|
|
- this.getTheLogPdInfo(pkeyId, nodePrimaryKeyId, recordTime, contractId);
|
|
|
+ this.getTheLogPdInfo(pkeyId, nodePrimaryKeyId, recordTime, contractId,null);
|
|
|
return R.data(data);
|
|
|
}
|
|
|
|