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
0dbc5049
Commit
0dbc5049
authored
Apr 02, 2019
by
kevin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_mysql
parents
5202f711
0e12b330
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
20 deletions
+31
-20
TemplateServiceImpl.java
...va/pwc/taxtech/atms/service/impl/TemplateServiceImpl.java
+25
-16
basicData.json
...b/src/main/webapp/app-resources/i18n/zh-CN/basicData.json
+2
-1
infrastructure.json
.../main/webapp/app-resources/i18n/zh-CN/infrastructure.json
+1
-1
doc-manage.html
...webapp/app/admin/infrastructure/docManage/doc-manage.html
+1
-1
tax-document-list.ctrl.js
...ocumentManage/tax-document-list/tax-document-list.ctrl.js
+2
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateServiceImpl.java
View file @
0dbc5049
...
...
@@ -260,23 +260,26 @@ public class TemplateServiceImpl extends AbstractService {
String
path
=
""
;
if
(
templateDb
!=
null
)
{
TemplateExample
example
=
new
TemplateExample
();
example
.
createCriteria
().
andCodeEqualTo
(
templateDb
.
getCode
()).
andIdEqualTo
(
templateDb
.
getId
()).
andIsActiveAssociationEqualTo
(
false
);
long
count
=
templateMapper
.
countByExample
(
example
);
if
(
count
>
0
)
{
path
=
templateDb
.
getPath
();
//物理删除
deleteIsAtiveAssociation
(
templateDb
);
}
else
{
if
(
param
.
isDeletePermanent
()
&&
!
templateDb
.
getIsSystemType
())
{
path
=
templateDb
.
getPath
();
// TemplateExample example = new TemplateExample();
// example.createCriteria().andCodeEqualTo(templateDb.getCode()).andIdEqualTo(templateDb.getId()).andIsActiveAssociationEqualTo(false);
path
=
templateDb
.
getPath
();
//物理删除
deleteIsAtiveAssociation
(
templateDb
);
}
else
{
//逻辑删除
logicDeleteIsActiveAssociation
(
templateDb
);
}
}
deleteIsAtiveAssociation
(
templateDb
);
// long count = templateMapper.countByExample(example);
// if (count > 0) {
// path = templateDb.getPath();
// //物理删除
// deleteIsAtiveAssociation(templateDb);
// } else {
// if (param.isDeletePermanent() && !templateDb.getIsSystemType()) {
// path = templateDb.getPath();
// //物理删除
// deleteIsAtiveAssociation(templateDb);
// } else {
// //逻辑删除
// logicDeleteIsActiveAssociation(templateDb);
// }
// }
}
result
.
setResult
(
true
);
...
...
@@ -406,10 +409,16 @@ public class TemplateServiceImpl extends AbstractService {
}
private
void
deleteIsAtiveAssociation
(
Template
templateDb
)
{
if
(
templateDb
.
getId
()
==
null
){
return
;
}
cellTemplateConfigMapper
.
deleteCellTemplateConfigByCellTemplate
(
templateDb
.
getId
());
keyValueReferenceMapper
.
deleteKeyValueReferenceByCellTemplate
(
templateDb
.
getId
());
CellTemplateExample
example
=
new
CellTemplateExample
();
example
.
createCriteria
().
andReportTemplateIdEqualTo
(
templateDb
.
getId
());
cellTemplateMapper
.
deleteByExample
(
example
);
TemplateExample
templateExample
=
new
TemplateExample
();
templateExample
.
createCriteria
().
andIdEqualTo
(
templateDb
.
getId
());
templateMapper
.
deleteByExample
(
templateExample
);
}
}
atms-web/src/main/webapp/app-resources/i18n/zh-CN/basicData.json
View file @
0dbc5049
...
...
@@ -403,6 +403,6 @@
"WordLibraryTitle"
:
"字库"
,
"notAllowDisableMessage"
:
"机构中已关联,不允许停用"
,
"UnSave"
:
"未点击保存按钮!"
,
"addFileType"
:
"
增加
档案类型"
,
"addFileType"
:
"
新建
档案类型"
,
"~MustBeEndOneApp"
:
"I Must be the End One, please!"
}
\ No newline at end of file
atms-web/src/main/webapp/app-resources/i18n/zh-CN/infrastructure.json
View file @
0dbc5049
...
...
@@ -109,7 +109,7 @@
"DocumentTypeSets"
:
"税务档案类型设置"
,
"Explain"
:
"说明"
,
"RequiredFields"
:
"必填字段"
,
"CreateDocFileType"
:
"新建
文档
类型"
,
"CreateDocFileType"
:
"新建
档案
类型"
,
"State"
:
"状态"
,
"PCompany"
:
"所属机构"
,
"Enable"
:
"启用"
,
...
...
atms-web/src/main/webapp/app/admin/infrastructure/docManage/doc-manage.html
View file @
0dbc5049
...
...
@@ -187,7 +187,7 @@
></button><!–ng-disabled="newDocFileTypeForm.roleName.$invalid || newDocFileTypeForm.service_id.$invalid"–>
<button type="button" class="btn btn-third" data-dismiss="modal" ng-click="cancelDocFileType()" translate="Cancel"></button>
</div>-->
<div>
<div
style=
"margin-bottom: 20px;"
>
<center>
<button
type=
"submit"
class=
"btn btn-primary"
translate=
"Confirm"
></button>
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
0dbc5049
...
...
@@ -576,7 +576,7 @@ taxDocumentManageModule.directive('dateTimePicker', function () {
minViewMode
:
$attrs
[
"minViewMode"
]
?
parseInt
(
$attrs
[
"minViewMode"
])
:
0
,
autoclose
:
true
,
language
:
region
,
todayBtn
:
true
,
todayBtn
:
'linked'
,
clearBtn
:
true
//清除按钮
}).
off
(
"changeDate"
).
on
(
'changeDate'
,
function
(
ev
)
{
runCallback
(
ev
);
...
...
@@ -719,6 +719,7 @@ taxDocumentManageModule.directive('multiFileUploader', function () {
};
$scope
.
openMultiUploadPop
=
function
()
{
clearCache
();
//清空缓存
$
(
"#multiUploadFilePlugin"
).
click
();
$scope
.
multiUploader
.
clearQueue
();
$
(
"#multiUploadFilePlugin"
).
val
(
null
);
//这一步主要防止第二次选择相同文件的时候无响应
...
...
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