Commit f3afdc1c authored by chase's avatar chase

merge 档案管理代码

parent 7c05ad7d
...@@ -36,6 +36,20 @@ public class OperationLogFileTypeController { ...@@ -36,6 +36,20 @@ public class OperationLogFileTypeController {
return returnData; return returnData;
} }
/**
* 根据 id 数组来查询相关日志
* @return
*/
@RequestMapping("/selectListForLog")
@ResponseBody
public ReturnData selectListForLog(List<String> fileTypeIds){
List<OperationLogFileType> operationLogFileType = operationLogFileTypeService.selectListForLog(fileTypeIds);
ReturnData returnData = new ReturnData();
returnData.setItems(operationLogFileType);
returnData.setTotalCount(operationLogFileType.size());
return returnData;
}
/** /**
* 添加文件档案操作日志 * 添加文件档案操作日志
* @param operationLogFileType * @param operationLogFileType
......
...@@ -32,6 +32,21 @@ public class OperationLogTaxDocController { ...@@ -32,6 +32,21 @@ public class OperationLogTaxDocController {
return returnData; return returnData;
} }
/**
* 根据 id 数组来查询相关日志
* @param taxDocumentIds
* @return
*/
@RequestMapping("/selectListForLog")
@ResponseBody
public ReturnData selectListForLog(List<String> taxDocumentIds){
List<OperationLogTaxDocument> operationLogTaxDocuments = operationLogTaxDocService.selectListForLog(taxDocumentIds);
ReturnData returnData = new ReturnData();
returnData.setItems(operationLogTaxDocuments);
returnData.setTotalCount(operationLogTaxDocuments.size());
return returnData;
}
@RequestMapping("add") @RequestMapping("add")
@ResponseBody @ResponseBody
public boolean addTaxDocuments(OperationLogTaxDocument operationLogTaxDocument){ public boolean addTaxDocuments(OperationLogTaxDocument operationLogTaxDocument){
......
...@@ -161,14 +161,14 @@ public class TaxDocumentController { ...@@ -161,14 +161,14 @@ public class TaxDocumentController {
/** /**
* 读取Excel转换成 Json * 读取Excel转换成 Json
* @param path 文件的路径 * @param taxDocumentDto 文件的路径
*/ */
@PostMapping("/previewExcelToJson") @PostMapping("/previewExcelToJson")
@ResponseBody @ResponseBody
public String previewExcel(@RequestParam("path") String path) { public String previewExcel(@RequestBody TaxDocumentDto taxDocumentDto) {
try { try {
JSONArray dataArray = new JSONArray(); JSONArray dataArray = new JSONArray();
URL httpurl=new URL(path); URL httpurl=new URL(taxDocumentDto.getPath());
InputStream is; InputStream is;
HttpURLConnection httpConn=(HttpURLConnection)httpurl.openConnection(); HttpURLConnection httpConn=(HttpURLConnection)httpurl.openConnection();
httpConn.setDoOutput(true);// 使用 URL 连接进行输出 httpConn.setDoOutput(true);// 使用 URL 连接进行输出
......
...@@ -61,6 +61,16 @@ public class TaxDocumentDto { ...@@ -61,6 +61,16 @@ public class TaxDocumentDto {
private List<Long> ids = new ArrayList<>();//批量删除id private List<Long> ids = new ArrayList<>();//批量删除id
private String path;//文件上传路径
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public List<Long> getIds() { public List<Long> getIds() {
return ids; return ids;
} }
......
...@@ -47,4 +47,11 @@ public class OperationLogFileTypeServiceImpl { ...@@ -47,4 +47,11 @@ public class OperationLogFileTypeServiceImpl {
return false; return false;
} }
} }
public List<OperationLogFileType> selectListForLog(List<String> fileTypeIds) {
OperationLogFileTypeExample example = new OperationLogFileTypeExample();
OperationLogFileTypeExample.Criteria criteria = example.createCriteria();
criteria.andIdIn(fileTypeIds);
return operationLogFileTypeMapper.selectByExample(example);
}
} }
...@@ -47,4 +47,11 @@ public class OperationLogTaxDocServiceImpl { ...@@ -47,4 +47,11 @@ public class OperationLogTaxDocServiceImpl {
return false; return false;
} }
} }
public List<OperationLogTaxDocument> selectListForLog(List<String> taxDocumentIds) {
OperationLogTaxDocumentExample example = new OperationLogTaxDocumentExample();
OperationLogTaxDocumentExample.Criteria criteria = example.createCriteria();
criteria.andIdIn(taxDocumentIds);
return operationLogTaxDocumentMapper.selectByExample(example);
}
} }
...@@ -85,9 +85,13 @@ public class TaxDocumentServiceImpl { ...@@ -85,9 +85,13 @@ public class TaxDocumentServiceImpl {
if (StringUtils.isNotBlank(taxDocumentDto.getFileType())) { if (StringUtils.isNotBlank(taxDocumentDto.getFileType())) {
criteria.andFileTypeEqualTo(taxDocumentDto.getFileType()); criteria.andFileTypeEqualTo(taxDocumentDto.getFileType());
} }
//文件生效日期 fileTime //文件生效起始日期 fileBeginTime
if (null != taxDocumentDto.getFileBeginTime() && null != taxDocumentDto.getFileEndTTime()) { if (null != taxDocumentDto.getFileBeginTime()) {
criteria.andFileTimeBetween(taxDocumentDto.getFileBeginTime(), taxDocumentDto.getFileEndTTime()); criteria.andFileTimeGreaterThanOrEqualTo(taxDocumentDto.getFileBeginTime());
}
//文件生效到期日期 fileEndTTime
if (null != taxDocumentDto.getFileEndTTime()) {
criteria.andFileTimeLessThanOrEqualTo(taxDocumentDto.getFileEndTTime());
} }
//所属时间 ownTime //所属时间 ownTime
if (null != taxDocumentDto.getOwnTime()) { if (null != taxDocumentDto.getOwnTime()) {
...@@ -95,7 +99,7 @@ public class TaxDocumentServiceImpl { ...@@ -95,7 +99,7 @@ public class TaxDocumentServiceImpl {
} }
//档案名称 fileName //档案名称 fileName
if (StringUtils.isNotBlank(taxDocumentDto.getFileName())) { if (StringUtils.isNotBlank(taxDocumentDto.getFileName())) {
criteria.andFileNameLike("%"+taxDocumentDto.getFileName()+"%"); criteria.andFileNameLike("%" + taxDocumentDto.getFileName() + "%");
} }
//业务线 businessLine //业务线 businessLine
if (StringUtils.isNotBlank(taxDocumentDto.getBusinessLine())) { if (StringUtils.isNotBlank(taxDocumentDto.getBusinessLine())) {
...@@ -105,9 +109,13 @@ public class TaxDocumentServiceImpl { ...@@ -105,9 +109,13 @@ public class TaxDocumentServiceImpl {
if (StringUtils.isNotBlank(taxDocumentDto.getCompanyName())) { if (StringUtils.isNotBlank(taxDocumentDto.getCompanyName())) {
criteria.andCompanyNameEqualTo(taxDocumentDto.getCompanyName()); criteria.andCompanyNameEqualTo(taxDocumentDto.getCompanyName());
} }
//到期日 effectiveTime //到期起始日 effectiveBeginTime
if (null != taxDocumentDto.getEffectiveBeginTime() && null != taxDocumentDto.getEffectiveEndTime()) { if (null != taxDocumentDto.getEffectiveBeginTime()) {
criteria.andEffectiveTimeBetween(taxDocumentDto.getEffectiveBeginTime(), taxDocumentDto.getEffectiveEndTime()); criteria.andEffectiveTimeGreaterThanOrEqualTo(taxDocumentDto.getEffectiveBeginTime());
}
//到期结束日 effectiveEndTime
if (null != taxDocumentDto.getEffectiveEndTime()) {
criteria.andEffectiveTimeLessThanOrEqualTo(taxDocumentDto.getEffectiveEndTime());
} }
//税种 taxType //税种 taxType
if (StringUtils.isNotBlank(taxDocumentDto.getTaxType())) { if (StringUtils.isNotBlank(taxDocumentDto.getTaxType())) {
...@@ -129,9 +137,13 @@ public class TaxDocumentServiceImpl { ...@@ -129,9 +137,13 @@ public class TaxDocumentServiceImpl {
if (null != taxDocumentDto.getAuditStatus()) { if (null != taxDocumentDto.getAuditStatus()) {
criteria.andAuditStatusEqualTo(taxDocumentDto.getAuditStatus()); criteria.andAuditStatusEqualTo(taxDocumentDto.getAuditStatus());
} }
//上传日期 uploadTime //上传开始日期 uploadBeginTime
if (null != taxDocumentDto.getUploadBeginTime() && null != taxDocumentDto.getUploadEndTime()) { if (null != taxDocumentDto.getUploadBeginTime()) {
criteria.andUploadTimeBetween(taxDocumentDto.getUploadBeginTime(), taxDocumentDto.getUploadEndTime()); criteria.andUploadTimeGreaterThanOrEqualTo(taxDocumentDto.getUploadBeginTime());
}
//上传结束日期 uploadEndTime
if (null != taxDocumentDto.getUploadEndTime()) {
criteria.andUploadTimeLessThanOrEqualTo(taxDocumentDto.getUploadEndTime());
} }
//创建人 creator //创建人 creator
if (StringUtils.isNotBlank(taxDocumentDto.getCreator())) { if (StringUtils.isNotBlank(taxDocumentDto.getCreator())) {
......
...@@ -449,8 +449,8 @@ public class FileTypes implements Serializable { ...@@ -449,8 +449,8 @@ public class FileTypes implements Serializable {
sb.append(", 说明=").append(description); sb.append(", 说明=").append(description);
sb.append(", 必填字段=").append(requiredField); sb.append(", 必填字段=").append(requiredField);
sb.append(", 创建人=").append(creator); sb.append(", 创建人=").append(creator);
sb.append(", 创建时间=").append(createTime.toLocaleString()); sb.append(", 创建时间=").append(null==createTime?null:createTime.toLocaleString());
sb.append(", 更新时间=").append(updateTime.toLocaleString()); sb.append(", 更新时间=").append(null==updateTime?null:updateTime.toLocaleString());
sb.append(", 状态=").append("T".equals(status)?"启用":"未启用"); sb.append(", 状态=").append("T".equals(status)?"启用":"未启用");
sb.append(", 说明=").append(remarks); sb.append(", 说明=").append(remarks);
return sb.toString(); return sb.toString();
......
...@@ -912,18 +912,18 @@ public class TaxDocument implements Serializable { ...@@ -912,18 +912,18 @@ public class TaxDocument implements Serializable {
sb.append("业务线=").append(businessLine); sb.append("业务线=").append(businessLine);
sb.append("公司名称=").append(companyName); sb.append("公司名称=").append(companyName);
sb.append("税种=").append(taxType); sb.append("税种=").append(taxType);
sb.append("文件生效日期=").append(fileTime.toLocaleString()); sb.append("文件生效日期=").append(fileTime==null?null:fileTime.toLocaleString());
sb.append("到期日=").append(effectiveTime.toLocaleString() ); sb.append("到期日=").append(effectiveTime==null?null:effectiveTime.toLocaleString() );
sb.append("所属期间=").append(ownTime ); sb.append("所属期间=").append(ownTime );
sb.append("创建人=").append(creator ); sb.append("创建人=").append(creator );
sb.append("创建时间=").append(createTime.toLocaleString()); sb.append("创建时间=").append(createTime==null?null:createTime.toLocaleString());
sb.append("更新时间=").append(updateTime.toLocaleString()); sb.append("更新时间=").append(updateTime==null?null:updateTime.toLocaleString());
sb.append("上传时间=").append(uploadTime.toLocaleString()); sb.append("上传时间=").append(uploadTime==null?null:uploadTime.toLocaleString());
sb.append("实物存放地点=").append(storageArea ); sb.append("实物存放地点=").append(storageArea );
sb.append("保管人=").append(keeper ); sb.append("保管人=").append(keeper );
sb.append("实物索引号=").append(physicalIndexNumber ); sb.append("实物索引号=").append(physicalIndexNumber );
sb.append("备注=").append(remark ); sb.append("备注=").append(remark );
sb.append("审批状态=").append(auditStatus==0?"未审核":auditStatus==1?"审核通过":"审核不通过"); sb.append("审批状态=").append(null==auditStatus?null:auditStatus==0?"未审核":auditStatus==1?"审核通过":"审核不通过");
sb.append("是否可用=").append("T".equals(enable)?"启用":"未启用"); sb.append("是否可用=").append("T".equals(enable)?"启用":"未启用");
return sb.toString(); return sb.toString();
} }
......
...@@ -9,8 +9,11 @@ frameworkModule.controller('appUsrOperateLogController', ...@@ -9,8 +9,11 @@ frameworkModule.controller('appUsrOperateLogController',
// thisParams:"=", // thisParams:"=",
$scope.localData = null; $scope.localData = null;
$scope.loadMainData = function () { $scope.loadMainData = function () {
$scope.thisModuleId = $scope.thisModuleId ? $scope.thisModuleId : [];
var config = { var config = {
params: {} params: {
taxDocumentIds:JSON.stringify($scope.thisModuleId)
}
}; };
usrOperateLogService[$scope.thisModuleName](config).then(function (data) { usrOperateLogService[$scope.thisModuleName](config).then(function (data) {
if (status === 204) { if (status === 204) {
...@@ -113,20 +116,20 @@ frameworkModule.controller('appUsrOperateLogController', ...@@ -113,20 +116,20 @@ frameworkModule.controller('appUsrOperateLogController',
allowHeaderFiltering: true, allowHeaderFiltering: true,
}, },
{ // {
dataField: "operationContent", // dataField: "operationContent",
caption: $translate.instant('OperationContent'), // caption: $translate.instant('OperationContent'),
allowHeaderFiltering: true, // allowHeaderFiltering: true,
}, // },
{ // {
dataField: "originalState", // dataField: "originalState",
caption: $translate.instant('LogOriginalState'), // caption: $translate.instant('LogOriginalState'),
allowHeaderFiltering: true, // allowHeaderFiltering: true,
}, // },
{ {
dataField: "updateState", dataField: "updateState",
caption: $translate.instant('LogUpdateState'), caption: $translate.instant('OperationContent'),
allowHeaderFiltering: true, allowHeaderFiltering: true,
}, },
{ {
......
...@@ -14,6 +14,7 @@ frameworkModule.directive('appUsrOperateLog', ['$log', ...@@ -14,6 +14,7 @@ frameworkModule.directive('appUsrOperateLog', ['$log',
thisTitle:"@", //自定义title thisTitle:"@", //自定义title
thisParams:"=", //自定义参数 thisParams:"=", //自定义参数
thisCaption:"=", //自定义表头字段 thisCaption:"=", //自定义表头字段
thisModuleId:"=", //根据ID来获取指定的日志信息
}, },
controller: 'appUsrOperateLogController', controller: 'appUsrOperateLogController',
link: function ($scope, $element, $attr) { link: function ($scope, $element, $attr) {
......
...@@ -10,7 +10,7 @@ function ($q, apiConfig, jqFetch,apiInterceptor) { ...@@ -10,7 +10,7 @@ function ($q, apiConfig, jqFetch,apiInterceptor) {
return jqFetch.get(apiInterceptor.webApiHostUrl + '/operLogFileTypes/selectList', params); return jqFetch.get(apiInterceptor.webApiHostUrl + '/operLogFileTypes/selectList', params);
}, },
docManageListLog: function (params) { docManageListLog: function (params) {
return jqFetch.get(apiInterceptor.webApiHostUrl + '/operLogTaxDoc/selectList', params); return jqFetch.get(apiInterceptor.webApiHostUrl + '/operLogTaxDoc/selectListForLog', params);
} }
}; };
}]); }]);
\ No newline at end of file
...@@ -557,7 +557,10 @@ ...@@ -557,7 +557,10 @@
<div class="content-container TDL-content-container"> <div class="content-container TDL-content-container">
<div class="DTL-content-head-bar"> <div class="DTL-content-head-bar">
<app-usr-operate-log style="float:right" this-module-name="docManageListLog"></app-usr-operate-log> <app-usr-operate-log style="float:right"
this-module-name="docManageListLog"
this-module-id="checkedItemIds"
></app-usr-operate-log>
<button class="btn DTL-create-record" ng-click="openMultiUploadPop()"> <button class="btn DTL-create-record" ng-click="openMultiUploadPop()">
<i class="fa fa-plus-square"></i> <i class="fa fa-plus-square"></i>
<span>{{'MultiUpload' | translate}}</span> <span>{{'MultiUpload' | translate}}</span>
...@@ -825,7 +828,7 @@ ...@@ -825,7 +828,7 @@
<div class="modal-dialog" style="width:80%;height:200px;" role="document"> <div class="modal-dialog" style="width:80%;height:200px;" role="document">
<div class="modal-content"> <div class="modal-content">
<form class="form-horizontal" name="newDocFileTypeForm" ng-submit="multiUploadSubmit()"> <form class="form-horizontal" name="newDocFileTypeForm" ng-submit="multiUploadSubmit()">
<div class="modal-header"> <div class="modal-header" >
<div class="modal-title"><span>{{'MultiUpload'|translate}}</span></div> <div class="modal-title"><span>{{'MultiUpload'|translate}}</span></div>
<input id="multiUploadFilePlugin" type="file" multiple style="display:none" nv-file-select <input id="multiUploadFilePlugin" type="file" multiple style="display:none" nv-file-select
uploader="multiUploader"> uploader="multiUploader">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment