Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
fill-system
Commits
2ee7d2cc
Commit
2ee7d2cc
authored
Dec 09, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改热门词汇
parent
3b43a7a5
Pipeline
#2420
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
6 deletions
+81
-6
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
...hx/module/matter/service/impl/MatterDatumServiceImpl.java
+10
-6
fill-manager/src/test/java/com/mortals/httpclient/matter/MatterDatumPrintController.http
...mortals/httpclient/matter/MatterDatumPrintController.http
+71
-0
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
View file @
2ee7d2cc
...
...
@@ -118,7 +118,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
private
void
addPubdatum
(
MatterDatumEntity
entity
,
Context
context
)
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getPub
())
&&
entity
.
getPub
()
==
YesNoEnum
.
YES
.
getValue
())
{
int
count
=
pubdatumService
.
count
(
new
PubdatumQuery
().
materialName
(
entity
.
getMaterialName
()),
context
);
if
(
count
>
0
)
{
if
(
count
>
0
)
{
throw
new
AppException
(
"当前公共库已存在当前材料名!"
);
}
...
...
@@ -155,7 +155,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
}
//校验材料名是否重复
int
count
=
this
.
count
(
new
MatterDatumQuery
().
materialName
(
entity
.
getMaterialName
()),
context
);
if
(
count
>
0
)
{
if
(
count
>
0
)
{
throw
new
AppException
(
"当前材料名称已存在!"
);
}
...
...
@@ -383,8 +383,12 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
log
.
error
(
"渲染模板失败:"
,
e
);
}
finally
{
try
{
template
.
close
();
byteArrayOutputStream
.
close
();
if
(
template
!=
null
)
{
template
.
close
();
}
if
(
byteArrayOutputStream
!=
null
)
{
byteArrayOutputStream
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"ioEx:"
,
e
);
}
...
...
@@ -437,8 +441,8 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
}
private
MatterDatumEntity
updateOrSave
(
PubdatumEntity
pubdatumEntity
,
Long
matterId
,
Long
siteId
,
Context
context
)
{
int
count
=
this
.
count
(
new
MatterDatumQuery
().
siteId
(
siteId
).
matterId
(
matterId
).
materialName
(
pubdatumEntity
.
getMaterialName
()),
context
);
if
(
count
==
0
)
{
int
count
=
this
.
count
(
new
MatterDatumQuery
().
siteId
(
siteId
).
matterId
(
matterId
).
materialName
(
pubdatumEntity
.
getMaterialName
()),
context
);
if
(
count
==
0
)
{
MatterDatumEntity
entity
=
new
MatterDatumEntity
();
entity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
pubdatumEntity
,
entity
,
new
String
[]{
"id"
,
"matterId"
});
...
...
fill-manager/src/test/java/com/mortals/httpclient/m
ortals/MortalsFill
MatterDatumPrintController.http
→
fill-manager/src/test/java/com/mortals/httpclient/m
atter/
MatterDatumPrintController.http
View file @
2ee7d2cc
...
...
@@ -14,55 +14,55 @@ client.global.set("authToken", JSON.parse(response.body).data.token);
%}
###打印提交列表
POST {{baseUrl}}/m
ortals/fill/m
atter/datum/print/list
POST {{baseUrl}}/matter/datum/print/list
Authorization: {{authToken}}
Content-Type: application/json
{
"orderId":"
zxcm1e
",
"materialId":
931
,
"materialName":"h
vopoo
",
"page":78,
"orderId":"
d7y4sx
",
"materialId":
635
,
"materialName":"h
0er7b
",
"page":78
4
,
"type":1,
"docPath":"
onj9bb
",
"formContent":"
2lxxse
",
"docPath":"
7hms82
",
"formContent":"
zoqx4s
",
"page":1,
"size":10
}
###打印提交更新与保存
POST {{baseUrl}}/m
ortals/fill/m
atter/datum/print/save
POST {{baseUrl}}/matter/datum/print/save
Authorization: {{authToken}}
Content-Type: application/json
{
"
orderId":"3v6b72"
,
"
materialId":291
,
"material
Name":"v60a07"
,
"
page":105
,
"type":
1
,
"docPath":"
bjwc0j
",
"formContent":"
6pstcu",
"
siteId":3
,
"
orderId":"123456789"
,
"material
Id":1
,
"
materialName":"测试表单材料"
,
"type":
2
,
"docPath":"
/mortals/app/data/file/fileupload/1670485801511.docx
",
"formContent":"
表单内容"
}
> {%
client.global.set("M
ortalsFillM
atterDatumPrint_id", JSON.parse(response.body).data.id);
client.global.set("MatterDatumPrint_id", JSON.parse(response.body).data.id);
%}
###打印提交查看
GET {{baseUrl}}/m
ortals/fill/matter/datum/print/info?id={{MortalsFill
MatterDatumPrint_id}}
GET {{baseUrl}}/m
atter/datum/print/info?id={{
MatterDatumPrint_id}}
Authorization: {{authToken}}
Accept: application/json
###打印提交编辑
GET {{baseUrl}}/m
ortals/fill/matter/datum/print/edit?id={{MortalsFill
MatterDatumPrint_id}}
GET {{baseUrl}}/m
atter/datum/print/edit?id={{
MatterDatumPrint_id}}
Authorization: {{authToken}}
Accept: application/json
###打印提交删除
GET {{baseUrl}}/m
ortals/fill/matter/datum/print/delete?id={{MortalsFill
MatterDatumPrint_id}}
GET {{baseUrl}}/m
atter/datum/print/delete?id={{
MatterDatumPrint_id}}
Authorization: {{authToken}}
Accept: application/json
...
...
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