Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
f3afdc1c
Commit
f3afdc1c
authored
Mar 13, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge 档案管理代码
parent
7c05ad7d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
109 additions
and
36 deletions
+109
-36
OperationLogFileTypeController.java
...xtech/atms/controller/OperationLogFileTypeController.java
+14
-0
OperationLogTaxDocController.java
...taxtech/atms/controller/OperationLogTaxDocController.java
+15
-0
TaxDocumentController.java
...va/pwc/taxtech/atms/controller/TaxDocumentController.java
+3
-3
TaxDocumentDto.java
...pi/src/main/java/pwc/taxtech/atms/dto/TaxDocumentDto.java
+10
-0
OperationLogFileTypeServiceImpl.java
...ch/atms/service/impl/OperationLogFileTypeServiceImpl.java
+7
-0
OperationLogTaxDocServiceImpl.java
...tech/atms/service/impl/OperationLogTaxDocServiceImpl.java
+7
-0
TaxDocumentServiceImpl.java
...pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
+22
-10
FileTypes.java
...-dao/src/main/java/pwc/taxtech/atms/entity/FileTypes.java
+2
-2
TaxDocument.java
...ao/src/main/java/pwc/taxtech/atms/entity/TaxDocument.java
+6
-6
app-usr-operate-log.ctrl.js
...framework/app-usr-operate-log/app-usr-operate-log.ctrl.js
+15
-12
app-usr-operate-log.js
.../app/framework/app-usr-operate-log/app-usr-operate-log.js
+1
-0
app-usr-operate-log.svc.js
.../framework/app-usr-operate-log/app-usr-operate-log.svc.js
+2
-1
tax-document-list.ctrl.js
...ocumentManage/tax-document-list/tax-document-list.ctrl.js
+0
-0
tax-document-list.html
...axDocumentManage/tax-document-list/tax-document-list.html
+5
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OperationLogFileTypeController.java
View file @
f3afdc1c
...
...
@@ -36,6 +36,20 @@ public class OperationLogFileTypeController {
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
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/OperationLogTaxDocController.java
View file @
f3afdc1c
...
...
@@ -32,6 +32,21 @@ public class OperationLogTaxDocController {
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"
)
@ResponseBody
public
boolean
addTaxDocuments
(
OperationLogTaxDocument
operationLogTaxDocument
){
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/TaxDocumentController.java
View file @
f3afdc1c
...
...
@@ -161,14 +161,14 @@ public class TaxDocumentController {
/**
* 读取Excel转换成 Json
* @param
path
文件的路径
* @param
taxDocumentDto
文件的路径
*/
@PostMapping
(
"/previewExcelToJson"
)
@ResponseBody
public
String
previewExcel
(
@Request
Param
(
"path"
)
String
path
)
{
public
String
previewExcel
(
@Request
Body
TaxDocumentDto
taxDocumentDto
)
{
try
{
JSONArray
dataArray
=
new
JSONArray
();
URL
httpurl
=
new
URL
(
path
);
URL
httpurl
=
new
URL
(
taxDocumentDto
.
getPath
()
);
InputStream
is
;
HttpURLConnection
httpConn
=(
HttpURLConnection
)
httpurl
.
openConnection
();
httpConn
.
setDoOutput
(
true
);
// 使用 URL 连接进行输出
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/TaxDocumentDto.java
View file @
f3afdc1c
...
...
@@ -61,6 +61,16 @@ public class TaxDocumentDto {
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
()
{
return
ids
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OperationLogFileTypeServiceImpl.java
View file @
f3afdc1c
...
...
@@ -47,4 +47,11 @@ public class OperationLogFileTypeServiceImpl {
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
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OperationLogTaxDocServiceImpl.java
View file @
f3afdc1c
...
...
@@ -47,4 +47,11 @@ public class OperationLogTaxDocServiceImpl {
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
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
View file @
f3afdc1c
...
...
@@ -85,9 +85,13 @@ public class TaxDocumentServiceImpl {
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getFileType
()))
{
criteria
.
andFileTypeEqualTo
(
taxDocumentDto
.
getFileType
());
}
//文件生效日期 fileTime
if
(
null
!=
taxDocumentDto
.
getFileBeginTime
()
&&
null
!=
taxDocumentDto
.
getFileEndTTime
())
{
criteria
.
andFileTimeBetween
(
taxDocumentDto
.
getFileBeginTime
(),
taxDocumentDto
.
getFileEndTTime
());
//文件生效起始日期 fileBeginTime
if
(
null
!=
taxDocumentDto
.
getFileBeginTime
())
{
criteria
.
andFileTimeGreaterThanOrEqualTo
(
taxDocumentDto
.
getFileBeginTime
());
}
//文件生效到期日期 fileEndTTime
if
(
null
!=
taxDocumentDto
.
getFileEndTTime
())
{
criteria
.
andFileTimeLessThanOrEqualTo
(
taxDocumentDto
.
getFileEndTTime
());
}
//所属时间 ownTime
if
(
null
!=
taxDocumentDto
.
getOwnTime
())
{
...
...
@@ -95,7 +99,7 @@ public class TaxDocumentServiceImpl {
}
//档案名称 fileName
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getFileName
()))
{
criteria
.
andFileNameLike
(
"%"
+
taxDocumentDto
.
getFileName
()+
"%"
);
criteria
.
andFileNameLike
(
"%"
+
taxDocumentDto
.
getFileName
()
+
"%"
);
}
//业务线 businessLine
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getBusinessLine
()))
{
...
...
@@ -105,9 +109,13 @@ public class TaxDocumentServiceImpl {
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getCompanyName
()))
{
criteria
.
andCompanyNameEqualTo
(
taxDocumentDto
.
getCompanyName
());
}
//到期日 effectiveTime
if
(
null
!=
taxDocumentDto
.
getEffectiveBeginTime
()
&&
null
!=
taxDocumentDto
.
getEffectiveEndTime
())
{
criteria
.
andEffectiveTimeBetween
(
taxDocumentDto
.
getEffectiveBeginTime
(),
taxDocumentDto
.
getEffectiveEndTime
());
//到期起始日 effectiveBeginTime
if
(
null
!=
taxDocumentDto
.
getEffectiveBeginTime
())
{
criteria
.
andEffectiveTimeGreaterThanOrEqualTo
(
taxDocumentDto
.
getEffectiveBeginTime
());
}
//到期结束日 effectiveEndTime
if
(
null
!=
taxDocumentDto
.
getEffectiveEndTime
())
{
criteria
.
andEffectiveTimeLessThanOrEqualTo
(
taxDocumentDto
.
getEffectiveEndTime
());
}
//税种 taxType
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getTaxType
()))
{
...
...
@@ -129,9 +137,13 @@ public class TaxDocumentServiceImpl {
if
(
null
!=
taxDocumentDto
.
getAuditStatus
())
{
criteria
.
andAuditStatusEqualTo
(
taxDocumentDto
.
getAuditStatus
());
}
//上传日期 uploadTime
if
(
null
!=
taxDocumentDto
.
getUploadBeginTime
()
&&
null
!=
taxDocumentDto
.
getUploadEndTime
())
{
criteria
.
andUploadTimeBetween
(
taxDocumentDto
.
getUploadBeginTime
(),
taxDocumentDto
.
getUploadEndTime
());
//上传开始日期 uploadBeginTime
if
(
null
!=
taxDocumentDto
.
getUploadBeginTime
())
{
criteria
.
andUploadTimeGreaterThanOrEqualTo
(
taxDocumentDto
.
getUploadBeginTime
());
}
//上传结束日期 uploadEndTime
if
(
null
!=
taxDocumentDto
.
getUploadEndTime
())
{
criteria
.
andUploadTimeLessThanOrEqualTo
(
taxDocumentDto
.
getUploadEndTime
());
}
//创建人 creator
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getCreator
()))
{
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/FileTypes.java
View file @
f3afdc1c
...
...
@@ -449,8 +449,8 @@ public class FileTypes implements Serializable {
sb
.
append
(
", 说明="
).
append
(
description
);
sb
.
append
(
", 必填字段="
).
append
(
requiredField
);
sb
.
append
(
", 创建人="
).
append
(
creator
);
sb
.
append
(
", 创建时间="
).
append
(
createTime
.
toLocaleString
());
sb
.
append
(
", 更新时间="
).
append
(
updateTime
.
toLocaleString
());
sb
.
append
(
", 创建时间="
).
append
(
null
==
createTime
?
null
:
createTime
.
toLocaleString
());
sb
.
append
(
", 更新时间="
).
append
(
null
==
updateTime
?
null
:
updateTime
.
toLocaleString
());
sb
.
append
(
", 状态="
).
append
(
"T"
.
equals
(
status
)?
"启用"
:
"未启用"
);
sb
.
append
(
", 说明="
).
append
(
remarks
);
return
sb
.
toString
();
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/TaxDocument.java
View file @
f3afdc1c
...
...
@@ -912,18 +912,18 @@ public class TaxDocument implements Serializable {
sb
.
append
(
"业务线="
).
append
(
businessLine
);
sb
.
append
(
"公司名称="
).
append
(
companyName
);
sb
.
append
(
"税种="
).
append
(
taxType
);
sb
.
append
(
"文件生效日期="
).
append
(
fileTime
.
toLocaleString
());
sb
.
append
(
"到期日="
).
append
(
effectiveTime
.
toLocaleString
()
);
sb
.
append
(
"文件生效日期="
).
append
(
fileTime
==
null
?
null
:
fileTime
.
toLocaleString
());
sb
.
append
(
"到期日="
).
append
(
effectiveTime
==
null
?
null
:
effectiveTime
.
toLocaleString
()
);
sb
.
append
(
"所属期间="
).
append
(
ownTime
);
sb
.
append
(
"创建人="
).
append
(
creator
);
sb
.
append
(
"创建时间="
).
append
(
createTime
.
toLocaleString
());
sb
.
append
(
"更新时间="
).
append
(
updateTime
.
toLocaleString
());
sb
.
append
(
"上传时间="
).
append
(
uploadTime
.
toLocaleString
());
sb
.
append
(
"创建时间="
).
append
(
createTime
==
null
?
null
:
createTime
.
toLocaleString
());
sb
.
append
(
"更新时间="
).
append
(
updateTime
==
null
?
null
:
updateTime
.
toLocaleString
());
sb
.
append
(
"上传时间="
).
append
(
uploadTime
==
null
?
null
:
uploadTime
.
toLocaleString
());
sb
.
append
(
"实物存放地点="
).
append
(
storageArea
);
sb
.
append
(
"保管人="
).
append
(
keeper
);
sb
.
append
(
"实物索引号="
).
append
(
physicalIndexNumber
);
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
)?
"启用"
:
"未启用"
);
return
sb
.
toString
();
}
...
...
atms-web/src/main/webapp/app/framework/app-usr-operate-log/app-usr-operate-log.ctrl.js
View file @
f3afdc1c
...
...
@@ -9,8 +9,11 @@ frameworkModule.controller('appUsrOperateLogController',
// thisParams:"=",
$scope
.
localData
=
null
;
$scope
.
loadMainData
=
function
()
{
$scope
.
thisModuleId
=
$scope
.
thisModuleId
?
$scope
.
thisModuleId
:
[];
var
config
=
{
params
:
{}
params
:
{
taxDocumentIds
:
JSON
.
stringify
(
$scope
.
thisModuleId
)
}
};
usrOperateLogService
[
$scope
.
thisModuleName
](
config
).
then
(
function
(
data
)
{
if
(
status
===
204
)
{
...
...
@@ -113,20 +116,20 @@ frameworkModule.controller('appUsrOperateLogController',
allowHeaderFiltering
:
true
,
},
{
dataField
:
"operationContent"
,
caption
:
$translate
.
instant
(
'OperationContent'
),
allowHeaderFiltering
:
true
,
},
//
{
//
dataField: "operationContent",
//
caption: $translate.instant('OperationContent'),
//
allowHeaderFiltering: true,
//
},
{
dataField
:
"originalState"
,
caption
:
$translate
.
instant
(
'LogOriginalState'
),
allowHeaderFiltering
:
true
,
},
//
{
//
dataField: "originalState",
//
caption: $translate.instant('LogOriginalState'),
//
allowHeaderFiltering: true,
//
},
{
dataField
:
"updateState"
,
caption
:
$translate
.
instant
(
'
LogUpdateState
'
),
caption
:
$translate
.
instant
(
'
OperationContent
'
),
allowHeaderFiltering
:
true
,
},
{
...
...
atms-web/src/main/webapp/app/framework/app-usr-operate-log/app-usr-operate-log.js
View file @
f3afdc1c
...
...
@@ -14,6 +14,7 @@ frameworkModule.directive('appUsrOperateLog', ['$log',
thisTitle
:
"@"
,
//自定义title
thisParams
:
"="
,
//自定义参数
thisCaption
:
"="
,
//自定义表头字段
thisModuleId
:
"="
,
//根据ID来获取指定的日志信息
},
controller
:
'appUsrOperateLogController'
,
link
:
function
(
$scope
,
$element
,
$attr
)
{
...
...
atms-web/src/main/webapp/app/framework/app-usr-operate-log/app-usr-operate-log.svc.js
View file @
f3afdc1c
...
...
@@ -10,7 +10,7 @@ function ($q, apiConfig, jqFetch,apiInterceptor) {
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/operLogFileTypes/selectList'
,
params
);
},
docManageListLog
:
function
(
params
)
{
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/operLogTaxDoc/selectList'
,
params
);
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/operLogTaxDoc/selectList
ForLog
'
,
params
);
}
};
}]);
\ No newline at end of file
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
f3afdc1c
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.html
View file @
f3afdc1c
...
...
@@ -557,7 +557,10 @@
<div
class=
"content-container TDL-content-container"
>
<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()"
>
<i
class=
"fa fa-plus-square"
></i>
<span>
{{'MultiUpload' | translate}}
</span>
...
...
@@ -825,7 +828,7 @@
<div
class=
"modal-dialog"
style=
"width:80%;height:200px;"
role=
"document"
>
<div
class=
"modal-content"
>
<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>
<input
id=
"multiUploadFilePlugin"
type=
"file"
multiple
style=
"display:none"
nv-file-select
uploader=
"multiUploader"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment