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
207adb55
Commit
207adb55
authored
Mar 12, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge 档案管理代码
parent
0a09390b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
269 additions
and
53 deletions
+269
-53
ReportFileUploadEnum.java
...pwc/taxtech/atms/constant/enums/ReportFileUploadEnum.java
+4
-4
TaxDocumentController.java
...va/pwc/taxtech/atms/controller/TaxDocumentController.java
+151
-0
TaxDocumentDto.java
...pi/src/main/java/pwc/taxtech/atms/dto/TaxDocumentDto.java
+12
-22
ReportFileUploadService.java
...wc/taxtech/atms/service/impl/ReportFileUploadService.java
+26
-2
TaxDocumentServiceImpl.java
...pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
+17
-2
pom.xml
atms-dao/pom.xml
+23
-0
TaxDocument.java
...ao/src/main/java/pwc/taxtech/atms/entity/TaxDocument.java
+6
-6
TaxDocumentExample.java
...main/java/pwc/taxtech/atms/entity/TaxDocumentExample.java
+5
-0
TaxDocumentMapper.xml
...ources/pwc/taxtech/atms/dao/extends/TaxDocumentMapper.xml
+13
-13
app.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/app.json
+1
-0
doc-manage.ctrl.js
...app/app/admin/infrastructure/docManage/doc-manage.ctrl.js
+3
-3
vat-report-upload-detail.ctrl.js
...s/vat-report-upload-view/vat-report-upload-detail.ctrl.js
+4
-0
app-nav.html
atms-web/src/main/webapp/app/framework/app-nav/app-nav.html
+1
-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
+0
-0
tax-document-list.svc.js
...DocumentManage/tax-document-list/tax-document-list.svc.js
+3
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/ReportFileUploadEnum.java
View file @
207adb55
...
...
@@ -9,10 +9,10 @@ public class ReportFileUploadEnum {
* 报表类型
*/
public
enum
ReportType
{
NORMAL_DECLARATION
(
"
NORMAL_DECLARATION
"
,
"增值税纳税申报表"
),
CORR_DECLARATION
(
"
CORR_DECLARATION
"
,
"增值税更正申报表"
),
NORMAL_TAX_RECEIPT
(
"
NORMAL_TAX_RECEIPT
"
,
"增值税纳税税票"
),
CORR_TAX_RECEIPT
(
"
CORR_TAX_RECEIPT
"
,
"增值税更正税票"
);
NORMAL_DECLARATION
(
"
增值税纳税申报表
"
,
"增值税纳税申报表"
),
CORR_DECLARATION
(
"
增值税更正申报表
"
,
"增值税更正申报表"
),
NORMAL_TAX_RECEIPT
(
"
增值税纳税税票
"
,
"增值税纳税税票"
),
CORR_TAX_RECEIPT
(
"
增值税更正税票
"
,
"增值税更正税票"
);
private
String
code
;
private
String
name
;
public
static
final
Map
<
String
,
String
>
MAPPING
=
new
HashMap
<>();
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/TaxDocumentController.java
View file @
207adb55
package
pwc
.
taxtech
.
atms
.
controller
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
net.sf.json.JSONNull
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.ss.usermodel.CellType
;
import
org.apache.poi.ss.usermodel.DateUtil
;
import
org.apache.poi.xssf.usermodel.XSSFCell
;
import
org.apache.poi.xssf.usermodel.XSSFRow
;
import
org.apache.poi.xssf.usermodel.XSSFSheet
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -17,7 +26,10 @@ import pwc.taxtech.atms.thirdparty.ExcelUtil;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.text.SimpleDateFormat
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -71,6 +83,7 @@ public class TaxDocumentController {
return
taxDocumentService
.
editFilesType
(
taxDocument
);
}
@RequestMapping
(
"exportExcel"
)
@ResponseBody
public
void
exportExcelFile
(
HttpServletResponse
response
,
@RequestBody
TaxDocumentDto
taxDocumentDto
)
{
...
...
@@ -147,4 +160,142 @@ public class TaxDocumentController {
}
/**
* 读取Excel转换成 Json
* @param path 文件的路径
*/
@PostMapping
(
"/previewExcelToJson"
)
@ResponseBody
public
String
previewExcel
(
String
path
)
{
try
{
JSONArray
dataArray
=
new
JSONArray
();
XSSFWorkbook
xssfWorkbook
=
new
XSSFWorkbook
(
new
FileInputStream
(
path
));
// 循环工作表Sheet
for
(
int
numSheet
=
0
;
numSheet
<
xssfWorkbook
.
getNumberOfSheets
();
numSheet
++)
{
XSSFSheet
xssfSheet
=
xssfWorkbook
.
getSheetAt
(
numSheet
);
String
sheetName
=
xssfSheet
.
getSheetName
();
if
(
xssfSheet
==
null
)
{
continue
;
}
//当前sheet的json文件
JSONObject
sheetJson
=
new
JSONObject
();
//当前sheet的array,作为sheetJson 的value值
JSONArray
sheetArr
=
new
JSONArray
();
//sheet的第一行,获取作为json的key值
JSONArray
key
=
new
JSONArray
();
int
xssfLastRowNum
=
xssfSheet
.
getLastRowNum
();
// 循环行Row
for
(
int
rowNum
=
0
;
rowNum
<=
xssfLastRowNum
;
rowNum
++)
{
XSSFRow
xssfRow
=
xssfSheet
.
getRow
(
rowNum
);
if
(
xssfRow
==
null
)
{
continue
;
}
// 循环列Cell,在这里组合json文件
int
firstCellNum
=
xssfRow
.
getFirstCellNum
();
int
lastCellNum
=
xssfRow
.
getLastCellNum
();
JSONObject
rowJson
=
new
JSONObject
();
for
(
int
cellNum
=
firstCellNum
;
cellNum
<
lastCellNum
;
cellNum
++)
{
XSSFCell
cell
=
null
;
try
{
cell
=
xssfRow
.
getCell
(
cellNum
);
if
(
cell
==
null
)
{
rowJson
.
put
(
key
.
getString
(
cellNum
),
""
);
continue
;
}
if
(
rowNum
==
0
)
key
.
add
(
toString
(
cell
));
else
{
//若是列号超过了key的大小,则跳过
if
(
cellNum
>=
key
.
size
())
continue
;
rowJson
.
put
(
key
.
getString
(
cellNum
),
toString
(
cell
));
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
if
(
rowJson
.
keySet
().
size
()
>
0
)
sheetArr
.
add
(
rowJson
);
}
sheetJson
.
put
(
sheetName
,
shuffleData
(
sheetArr
));
dataArray
.
add
(
sheetJson
);
}
return
dataArray
.
toString
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
return
JSONNull
.
getInstance
().
toString
();
}
}
/**
* 解析json
* @param cell
* @return
*/
private
static
Object
toString
(
XSSFCell
cell
)
{
switch
(
cell
.
getCellTypeEnum
())
{
case
_NONE:
cell
.
setCellType
(
CellType
.
STRING
);
return
""
;
case
NUMERIC:
if
(
DateUtil
.
isCellDateFormatted
(
cell
))
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
return
sdf
.
format
(
cell
.
getDateCellValue
());
}
cell
.
setCellType
(
CellType
.
STRING
);
return
cell
.
getStringCellValue
();
case
STRING:
String
val
=
cell
.
getStringCellValue
();
if
(
"无"
.
equalsIgnoreCase
(
val
))
return
""
;
//将其中的map格式和数组格式的字符串,转化为相应的数据类型
if
(
val
.
indexOf
(
"{"
)
>
-
1
)
{
// JSONObject jsonObject = JSONObject.parseObject(val);
Map
<
String
,
Integer
>
mapJson
=
JSONObject
.
parseObject
(
val
,
HashMap
.
class
);
return
mapJson
;
}
if
(
val
.
indexOf
(
"["
)
>
-
1
)
{
val
=
val
.
substring
(
1
,
val
.
length
()
-
1
);
String
[]
array
=
val
.
split
(
","
);
return
array
;
}
return
val
;
case
FORMULA:
return
cell
.
getCellFormula
();
case
BLANK:
return
""
;
case
BOOLEAN:
return
cell
.
getBooleanCellValue
()
+
""
;
case
ERROR:
return
"非法字符"
;
default
:
return
"未知字符"
;
}
}
/**
* 输出数据
*/
private
static
JSONArray
shuffleData
(
JSONArray
sheetArr
)
{
JSONArray
array
=
new
JSONArray
();
for
(
int
i
=
0
;
i
<
sheetArr
.
size
();
i
++)
{
JSONObject
object
=
sheetArr
.
getJSONObject
(
i
);
int
count
=
0
;
int
length
=
0
;
for
(
Object
key
:
object
.
keySet
())
{
Object
o
=
object
.
get
((
String
)
key
);
length
++;
boolean
b
=
StringUtils
.
isEmpty
(
o
.
toString
());
if
(
b
)
{
count
++;
}
}
if
(
count
!=
length
)
{
array
.
add
(
object
);
}
}
return
array
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/TaxDocumentDto.java
View file @
207adb55
...
...
@@ -23,7 +23,7 @@ public class TaxDocumentDto {
private
String
businessLine
;
//业务线
private
Integer
companyId
;
//公司代码Id
private
String
companyId
;
//公司代码Id
private
String
companyName
;
//公司名称
...
...
@@ -53,9 +53,7 @@ public class TaxDocumentDto {
private
String
physicalIndexNumber
;
//实物索引号
private
Date
ownBeginTime
;
//所属期间_开始
private
Date
ownEndTime
;
//所属期间_结束
private
Integer
ownTime
;
//所属期间
private
Integer
auditStatus
;
//审核状态
...
...
@@ -111,22 +109,6 @@ public class TaxDocumentDto {
this
.
effectiveEndTime
=
effectiveEndTime
;
}
public
Date
getOwnBeginTime
()
{
return
ownBeginTime
;
}
public
void
setOwnBeginTime
(
Date
ownBeginTime
)
{
this
.
ownBeginTime
=
ownBeginTime
;
}
public
Date
getOwnEndTime
()
{
return
ownEndTime
;
}
public
void
setOwnEndTime
(
Date
ownEndTime
)
{
this
.
ownEndTime
=
ownEndTime
;
}
public
String
getPhysicalIndexNumber
()
{
return
physicalIndexNumber
;
}
...
...
@@ -215,14 +197,22 @@ public class TaxDocumentDto {
this
.
businessLine
=
businessLine
;
}
public
Integer
getCompanyId
()
{
public
String
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
Integer
companyId
)
{
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
public
Integer
getOwnTime
()
{
return
ownTime
;
}
public
void
setOwnTime
(
Integer
ownTime
)
{
this
.
ownTime
=
ownTime
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ReportFileUploadService.java
View file @
207adb55
...
...
@@ -2,6 +2,7 @@ package pwc.taxtech.atms.service.impl;
import
com.github.pagehelper.PageInfo
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
@@ -17,6 +18,8 @@ import pwc.taxtech.atms.dto.didiFileUpload.DidiFileUploadDetailResult;
import
pwc.taxtech.atms.dto.reportFileUpload.ReportFileUploadParam
;
import
pwc.taxtech.atms.dto.reportFileUpload.ReportFileUploadResult
;
import
pwc.taxtech.atms.entity.Project
;
import
pwc.taxtech.atms.entity.ProjectExample
;
import
pwc.taxtech.atms.entity.TaxDocument
;
import
pwc.taxtech.atms.entity.User
;
import
pwc.taxtech.atms.exception.ServiceException
;
import
pwc.taxtech.atms.vat.dao.ReportFileUploadMapper
;
...
...
@@ -47,6 +50,8 @@ public class ReportFileUploadService extends BaseService {
@Autowired
DidiFileUploadService
didiFileUploadService
;
@Autowired
TaxDocumentServiceImpl
taxDocumentService
;
public
List
<
ReportFileUploadResult
>
queryData
(
ReportFileUploadParam
param
)
{
ReportFileUploadExample
example
=
new
ReportFileUploadExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
param
.
getProjectId
()).
andPeriodEqualTo
(
param
.
getPeriod
());
...
...
@@ -103,12 +108,31 @@ public class ReportFileUploadService extends BaseService {
String
uid
=
authUserHelper
.
getCurrentUserId
();
User
user
=
userMapper
.
selectByPrimaryKey
(
uid
);
data
.
setCreator
(
user
.
getUserName
());
Project
project
=
projectMapper
.
selectByPrimaryKey
(
data
.
getProjectId
());
data
.
setOrgId
(
project
.
getOrganizationId
());
ReportFileUploadExample
example
=
new
ReportFileUploadExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
data
.
getProjectId
()).
andPeriodEqualTo
(
data
.
getPeriod
()).
andReportTypeEqualTo
(
data
.
getReportType
());
if
(
StringUtils
.
isBlank
(
data
.
getFileUploadId
()))
{
FileUpload
fileUpload
=
didiFileUploadService
.
uploadFile
(
file
,
file
.
getOriginalFilename
(),
FileUploadEnum
.
BizSource
.
REPORT_UPLOAD
.
name
());
data
.
setFileUploadId
(
fileUpload
.
getUid
());
}
if
(
StringUtils
.
isBlank
(
data
.
getProjectId
())
&&
StringUtils
.
isNotBlank
(
data
.
getOrgId
())
&&
data
.
getPeriod
()
!=
null
)
{
ProjectExample
projectExample
=
new
ProjectExample
();
projectExample
.
createCriteria
().
andOrganizationIdEqualTo
(
data
.
getOrgId
()).
andYearEqualTo
(
data
.
getPeriod
()/
100
);
List
<
Project
>
projects
=
projectMapper
.
selectByExample
(
projectExample
);
if
(
CollectionUtils
.
isNotEmpty
(
projects
)){
data
.
setProjectId
(
projects
.
get
(
0
).
getId
());
TaxDocument
taxDocument
=
new
TaxDocument
();
taxDocument
.
setCompanyId
(
projects
.
get
(
0
).
getOrganizationId
());
taxDocument
.
setFileUploadId
(
data
.
getFileUploadId
());
taxDocument
.
setEnable
(
"T"
);
taxDocument
.
setOwnTime
(
data
.
getPeriod
());
taxDocument
.
setFileType
(
data
.
getReportType
());
taxDocumentService
.
addTaxDocumentList
(
file
,
taxDocument
);
}
}
else
{
Project
project
=
projectMapper
.
selectByPrimaryKey
(
data
.
getProjectId
());
data
.
setOrgId
(
project
.
getOrganizationId
());
}
data
.
setUid
(
CommonUtils
.
getUUID
());
data
.
setCreateTime
(
new
Date
());
data
.
setReportFileName
(
file
.
getOriginalFilename
());
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
View file @
207adb55
...
...
@@ -10,6 +10,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.web.multipart.MultipartFile
;
import
pwc.taxtech.atms.common.AuthUserHelper
;
import
pwc.taxtech.atms.constant.enums.FileUploadEnum
;
import
pwc.taxtech.atms.constant.enums.ReportFileUploadEnum
;
import
pwc.taxtech.atms.dao.TaxDocumentMapper
;
import
pwc.taxtech.atms.dto.TaxDocumentDto
;
import
pwc.taxtech.atms.dto.didiFileUpload.DidiFileIUploadParam
;
...
...
@@ -18,6 +19,7 @@ import pwc.taxtech.atms.entity.OperationLogTaxDocument;
import
pwc.taxtech.atms.entity.TaxDocument
;
import
pwc.taxtech.atms.entity.TaxDocumentExample
;
import
pwc.taxtech.atms.vat.entity.FileUpload
;
import
pwc.taxtech.atms.vat.entity.ReportFileUpload
;
import
javax.annotation.Resource
;
import
java.util.*
;
...
...
@@ -39,6 +41,8 @@ public class TaxDocumentServiceImpl {
@Autowired
private
OperationLogTaxDocServiceImpl
operationLogTaxDocService
;
@Autowired
ReportFileUploadService
reportFileUploadService
;
@Autowired
DidiFileUploadService
didiFileUploadService
;
...
...
@@ -86,8 +90,8 @@ public class TaxDocumentServiceImpl {
criteria
.
andFileTimeBetween
(
taxDocumentDto
.
getFileBeginTime
(),
taxDocumentDto
.
getFileEndTTime
());
}
//所属时间 ownTime
if
(
null
!=
taxDocumentDto
.
getOwn
BeginTime
()
&&
null
!=
taxDocumentDto
.
getOwnEnd
Time
())
{
criteria
.
andOwnTime
Between
(
taxDocumentDto
.
getOwnBeginTime
(),
taxDocumentDto
.
getOwnEnd
Time
());
if
(
null
!=
taxDocumentDto
.
getOwnTime
())
{
criteria
.
andOwnTime
EqualTo
(
taxDocumentDto
.
getOwn
Time
());
}
//档案名称 fileName
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getFileName
()))
{
...
...
@@ -140,9 +144,20 @@ public class TaxDocumentServiceImpl {
public
synchronized
boolean
addTaxDocumentList
(
MultipartFile
file
,
TaxDocument
taxDocument
)
{
try
{
//上传文件
if
(
StringUtils
.
isBlank
(
taxDocument
.
getFileUploadId
())){
FileUpload
fileUpload
=
didiFileUploadService
.
uploadFile
(
file
,
file
.
getOriginalFilename
(),
FileUploadEnum
.
BizSource
.
RECORD_UPLOAD
.
name
());
taxDocument
.
setFileUploadId
(
fileUpload
.
getUid
());
taxDocument
.
setFilePositionUrl
(
fileUpload
.
getViewHttpUrl
());
if
(
ReportFileUploadEnum
.
ReportType
.
MAPPING
.
containsKey
(
taxDocument
.
getFileType
())){
ReportFileUpload
reportFileUpload
=
new
ReportFileUpload
();
reportFileUpload
.
setOrgId
(
taxDocument
.
getCompanyId
());
reportFileUpload
.
setSourceType
(
ReportFileUploadEnum
.
SuorceType
.
RECORD
.
name
());
reportFileUpload
.
setPeriod
(
taxDocument
.
getOwnTime
());
reportFileUpload
.
setFileUploadId
(
fileUpload
.
getUid
());
reportFileUpload
.
setReportType
(
taxDocument
.
getFileType
());
reportFileUploadService
.
saveData
(
file
,
reportFileUpload
);
}
}
//设置创建人 创建时间信息 设置年份区分
taxDocument
.
setCreateTime
(
new
Date
());
taxDocument
.
setCreator
(
authUserHelper
.
getCurrentAuditor
().
get
());
...
...
atms-dao/pom.xml
View file @
207adb55
...
...
@@ -62,5 +62,28 @@
<artifactId>
fastjson
</artifactId>
<version>
1.2.40
</version>
</dependency>
<!--Excel to Json-->
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi
</artifactId>
<version>
3.17
</version>
</dependency>
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi-ooxml
</artifactId>
<version>
3.17
</version>
</dependency>
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
<version>
2.8.2
</version>
</dependency>
<dependency>
<groupId>
net.sf.json-lib
</groupId>
<artifactId>
json-lib
</artifactId>
<version>
2.4
</version>
<classifier>
jdk15
</classifier>
</dependency>
<!--Excel to Json End-->
</dependencies>
</project>
atms-dao/src/main/java/pwc/taxtech/atms/entity/TaxDocument.java
View file @
207adb55
...
...
@@ -86,7 +86,7 @@ public class TaxDocument implements Serializable {
*
* @mbg.generated
*/
private
Integer
companyId
;
private
String
companyId
;
/**
* Database Column Remarks:
...
...
@@ -141,7 +141,7 @@ public class TaxDocument implements Serializable {
*
* @mbg.generated
*/
private
Date
ownTime
;
private
int
ownTime
;
/**
*
...
...
@@ -344,11 +344,11 @@ public class TaxDocument implements Serializable {
this
.
auditStatus
=
auditStatus
;
}
public
Date
getOwnTime
()
{
public
int
getOwnTime
()
{
return
ownTime
;
}
public
void
setOwnTime
(
Date
ownTime
)
{
public
void
setOwnTime
(
int
ownTime
)
{
this
.
ownTime
=
ownTime
;
}
...
...
@@ -520,7 +520,7 @@ public class TaxDocument implements Serializable {
*
* @mbg.generated
*/
public
Integer
getCompanyId
()
{
public
String
getCompanyId
()
{
return
companyId
;
}
...
...
@@ -532,7 +532,7 @@ public class TaxDocument implements Serializable {
*
* @mbg.generated
*/
public
void
setCompanyId
(
Integer
companyId
)
{
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/TaxDocumentExample.java
View file @
207adb55
...
...
@@ -865,6 +865,11 @@ public class TaxDocumentExample {
return
(
Criteria
)
this
;
}
public
Criteria
andOwnTimeEqualTo
(
Integer
value
)
{
addCriterion
(
"own_time ="
,
value
,
"ownTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFileTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"file_time not between"
,
value1
,
value2
,
"fileTime"
);
return
(
Criteria
)
this
;
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/TaxDocumentMapper.xml
View file @
207adb55
...
...
@@ -12,7 +12,7 @@
<result
column=
"file_type"
jdbcType=
"VARCHAR"
property=
"fileType"
/>
<result
column=
"file_name"
jdbcType=
"VARCHAR"
property=
"fileName"
/>
<result
column=
"business_line"
jdbcType=
"VARCHAR"
property=
"businessLine"
/>
<result
column=
"company_id"
jdbcType=
"
INTEGE
R"
property=
"companyId"
/>
<result
column=
"company_id"
jdbcType=
"
VARCHA
R"
property=
"companyId"
/>
<result
column=
"company_name"
jdbcType=
"VARCHAR"
property=
"companyName"
/>
<result
column=
"tax_type"
jdbcType=
"VARCHAR"
property=
"taxType"
/>
<result
column=
"file_time"
jdbcType=
"TIMESTAMP"
property=
"fileTime"
/>
...
...
@@ -32,7 +32,7 @@
<result
column=
"year_redundancy"
jdbcType=
"INTEGER"
property=
"yearRedundancy"
/>
<result
column=
"audit_status"
jdbcType=
"INTEGER"
property=
"auditStatus"
/>
<result
column=
"physical_index_number"
jdbcType=
"VARCHAR"
property=
"physicalIndexNumber"
/>
<result
column=
"own_time"
jdbcType=
"
TIMESTAMP
"
property=
"ownTime"
/>
<result
column=
"own_time"
jdbcType=
"
INTEGER
"
property=
"ownTime"
/>
<result
column=
"enable"
jdbcType=
"VARCHAR"
property=
"enable"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
...
...
@@ -175,14 +175,14 @@
year_redundancy,audit_status,physical_index_number,own_time)
values (#{id,jdbcType=BIGINT}, #{fileAttr,jdbcType=VARCHAR}, #{fileTypeId,jdbcType=INTEGER},
#{fileType,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{businessLine,jdbcType=VARCHAR},
#{companyId,jdbcType=
INTEGE
R}, #{companyName,jdbcType=VARCHAR}, #{taxType,jdbcType=VARCHAR},
#{companyId,jdbcType=
VARCHA
R}, #{companyName,jdbcType=VARCHAR}, #{taxType,jdbcType=VARCHAR},
#{fileTime,jdbcType=TIMESTAMP}, #{effectiveTime,jdbcType=TIMESTAMP}, #{creatorId,jdbcType=INTEGER},
#{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{uploadTime,jdbcType=TIMESTAMP}, #{storageArea,jdbcType=VARCHAR}, #{keeperId,jdbcType=INTEGER},
#{keeper,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{fileOriginalName,jdbcType=VARCHAR},
#{fileUploadId,jdbcType=VARCHAR}, #{filePositionUrl,jdbcType=VARCHAR},
#{yearRedundancy,jdbcType=INTEGER},#{auditStatus,jdbcType=INTEGER},#{physicalIndexNumber,jdbcType=VARCHAR},
#{ownTime,jdbcType=
TIMESTAMP
})
#{ownTime,jdbcType=
INTEGER
})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.entity.TaxDocument"
>
<!--
...
...
@@ -277,8 +277,8 @@
<if
test=
"businessLine != null"
>
#{businessLine,jdbcType=VARCHAR},
</if>
<if
test=
"companyId != null"
>
#{companyId,jdbcType=
INTEGE
R},
<if
test=
"companyId != null
and companyId != ''
"
>
#{companyId,jdbcType=
VARCHA
R},
</if>
<if
test=
"companyName != null"
>
#{companyName,jdbcType=VARCHAR},
...
...
@@ -363,7 +363,7 @@
business_line = #{record.businessLine,jdbcType=VARCHAR},
</if>
<if
test=
"record.companyId != null"
>
company_id = #{record.companyId,jdbcType=
INTEGE
R},
company_id = #{record.companyId,jdbcType=
VARCHA
R},
</if>
<if
test=
"record.companyName != null"
>
company_name = #{record.companyName,jdbcType=VARCHAR},
...
...
@@ -427,7 +427,7 @@
file_type = #{record.fileType,jdbcType=VARCHAR},
file_name = #{record.fileName,jdbcType=VARCHAR},
business_line = #{record.businessLine,jdbcType=VARCHAR},
company_id = #{record.companyId,jdbcType=
INTEGE
R},
company_id = #{record.companyId,jdbcType=
VARCHA
R},
company_name = #{record.companyName,jdbcType=VARCHAR},
tax_type = #{record.taxType,jdbcType=VARCHAR},
file_time = #{record.fileTime,jdbcType=TIMESTAMP},
...
...
@@ -445,7 +445,7 @@
year_redundancy = #{record.yearRedundancy,jdbcType=INTEGER},
audit_status = #{record.auditStatus,jdbcType=INTEGER},
physical_index_number = #{record.physicalIndexNumber,jdbcType=VARCHAR},
own_time = #{record.ownTime,jdbcType=
TIMESTAMP
}
own_time = #{record.ownTime,jdbcType=
INTEGER
}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -473,7 +473,7 @@
business_line = #{businessLine,jdbcType=VARCHAR},
</if>
<if
test=
"companyId != null"
>
company_id = #{companyId,jdbcType=
INTEGE
R},
company_id = #{companyId,jdbcType=
VARCHA
R},
</if>
<if
test=
"companyName != null"
>
company_name = #{companyName,jdbcType=VARCHAR},
...
...
@@ -545,8 +545,8 @@
<if
test=
"null != businessLine and '' != businessLine"
>
business_line = #{businessLine,jdbcType=VARCHAR},
</if>
<if
test=
"null != companyId"
>
company_id = #{companyId,jdbcType=
INTEGE
R},
<if
test=
"null != companyId
and '' != companyId
"
>
company_id = #{companyId,jdbcType=
VARCHA
R},
</if>
<if
test=
"null != companyName and '' != companyName"
>
company_name = #{companyName,jdbcType=VARCHAR},
...
...
@@ -597,7 +597,7 @@
physical_index_number = #{physicalIndexNumber,jdbcType=VARCHAR},
</if>
<if
test=
"null != ownTime"
>
own_time = #{ownTime,jdbcType=
TIMESTAMP
},
own_time = #{ownTime,jdbcType=
INTEGER
},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
...
...
atms-web/src/main/webapp/app-resources/i18n/zh-CN/app.json
View file @
207adb55
...
...
@@ -408,6 +408,7 @@
"MappingInvoice"
:
"关联管理"
,
"MenuAMVAT"
:
"资管增值税申报"
,
"MenuCIT"
:
"企业所得税申报"
,
"MenuRecordManage"
:
"档案管理"
,
"MenuCashFlow"
:
"税务现金流"
,
"MenuDeferredTax"
:
"递延所得税"
,
"MenuIndexAnalytics"
:
"税务指标分析"
,
...
...
atms-web/src/main/webapp/app/admin/infrastructure/docManage/doc-manage.ctrl.js
View file @
207adb55
...
...
@@ -199,7 +199,7 @@
if
(
rowId
)
{
$scope
.
confirmDocFileType
=
editDocFileType
;
$scope
.
localData
.
forEach
(
function
(
item
){
if
(
item
.
id
==
=
rowId
){
if
(
item
.
id
==
rowId
){
$scope
.
editModel
=
angular
.
copy
(
item
);
}
});
...
...
@@ -228,7 +228,7 @@
var
uploadModel
=
angular
.
copy
(
$scope
.
editModel
);
delete
uploadModel
.
id
;
//新增文档不需要上传ID
docManageService
.
addFileType
(
uploadModel
).
then
(
function
(
data
)
{
if
(
data
==
=
true
){
if
(
data
==
true
){
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
$scope
.
loadMainData
();
}
else
{
...
...
@@ -241,7 +241,7 @@
var
editDocFileType
=
function
()
{
var
uploadModel
=
angular
.
copy
(
$scope
.
editModel
);
docManageService
.
editFileType
(
uploadModel
).
then
(
function
(
data
)
{
if
(
data
==
=
true
){
if
(
data
==
true
){
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
$scope
.
loadMainData
();
}
else
{
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-upload-view/vat-report-upload-detail.ctrl.js
View file @
207adb55
...
...
@@ -115,12 +115,14 @@
allowHeaderFiltering
:
true
,
cellTemplate
:
function
(
container
,
options
)
{
try
{
if
(
!
options
.
data
.
sourceType
||
"VAT"
==
options
.
data
.
sourceType
)
{
$
(
"<a href='javascript:void(0)'>上传</a>"
).
on
(
'click'
,
function
()
{
$
(
'#uploadBut'
+
options
.
data
.
reportType
).
click
();
}).
appendTo
(
container
);
$
(
'<input type="file" style="display:none;" id="uploadBut'
+
options
.
data
.
reportType
+
'" />'
).
on
(
'change'
,
function
()
{
uploadFile
(
$
(
'#uploadBut'
+
options
.
data
.
reportType
)[
0
].
files
[
0
],
options
.
data
.
reportType
);
}).
appendTo
(
container
);
}
}
catch
(
e
)
{
$log
.
error
(
e
);
}
...
...
@@ -210,12 +212,14 @@
allowHeaderFiltering
:
true
,
cellTemplate
:
function
(
container
,
options
)
{
try
{
if
(
!
options
.
data
.
sourceType
||
"VAT"
==
options
.
data
.
sourceType
)
{
$
(
"<a href='javascript:void(0)'>上传</a>"
).
on
(
'click'
,
function
()
{
$
(
'#uploadBut'
+
options
.
data
.
reportType
).
click
();
}).
appendTo
(
container
);
$
(
'<input type="file" style="display:none;" id="uploadBut'
+
options
.
data
.
reportType
+
'" />'
).
on
(
'change'
,
function
()
{
uploadFile
(
$
(
'#uploadBut'
+
options
.
data
.
reportType
)[
0
].
files
[
0
],
options
.
data
.
reportType
);
}).
appendTo
(
container
);
}
}
catch
(
e
)
{
$log
.
error
(
e
);
}
...
...
atms-web/src/main/webapp/app/framework/app-nav/app-nav.html
View file @
207adb55
...
...
@@ -32,7 +32,7 @@
</div>
<div
class=
"nav-element-left"
>
<a
ui-sref=
"taxDocumentManage"
>
<span
class=
"nav-icon-color"
>
档案管理
</span>
<span
class=
"nav-icon-color"
>
{{'MenuRecordManage' | translate}}
</span>
</a>
</div>
<!--<div class="nav-element-left">-->
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
207adb55
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.html
View file @
207adb55
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.svc.js
View file @
207adb55
...
...
@@ -30,6 +30,9 @@ taxDocumentManageModule.factory('taxDocumentListService',
getDocumentsAttrAndType
:
function
(
params
){
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/fileTypes/selectList'
,
params
);
},
readXLSX
:
function
(
params
){
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/taxDoc/previewExcelToJson'
,
params
);
},
getBinaryData
:
function
(
url
)
{
var
defer
=
$q
.
defer
();
var
oReq
=
new
XMLHttpRequest
();
...
...
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