Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
templateService
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
1
Merge Requests
1
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
Bazarbay Tulenov
templateService
Commits
a2290723
Commit
a2290723
authored
Feb 02, 2024
by
Bazarbay Tulenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change error message
parent
c8b67725
Pipeline
#379
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/kz/project/printedFormsService/data/dto/ResponseErrorDto.java
...roject/printedFormsService/data/dto/ResponseErrorDto.java
+1
-1
src/main/java/kz/project/printedFormsService/service/impl/TemplateServiceImpl.java
...printedFormsService/service/impl/TemplateServiceImpl.java
+1
-1
No files found.
src/main/java/kz/project/printedFormsService/data/dto/ResponseErrorDto.java
View file @
a2290723
...
...
@@ -18,7 +18,7 @@ public class ResponseErrorDto {
private
String
errorMessage
;
@NotBlank
@Schema
(
name
=
"code"
)
private
int
c
ode
;
private
int
errorC
ode
;
}
src/main/java/kz/project/printedFormsService/service/impl/TemplateServiceImpl.java
View file @
a2290723
...
...
@@ -56,7 +56,7 @@ public class TemplateServiceImpl implements TemplateService {
public
Map
<
String
,
byte
[]>
getTemplate
(
Long
id
)
throws
ValidationException
,
JsonProcessingException
{
Map
<
String
,
byte
[]>
params
=
new
HashMap
<>();
TemplateEntity
templateEntity
=
repository
.
findById
(
id
).
orElse
(
null
);
if
(
templateEntity
==
null
)
throw
new
ValidationException
(
"
по данному параметру отсутствуют данные
: "
+
id
,
13
);
if
(
templateEntity
==
null
)
throw
new
ValidationException
(
"
Не найден шаблон с идентификатором
: "
+
id
,
13
);
TemplateDataForReportDto
templ
=
new
TemplateDataForReportDto
(
templateEntity
.
getType
().
getCode
(),
templateEntity
.
getTemplate
().
getData
(),
templateEntity
.
getTemplateHeader
()
!=
null
?
templateEntity
.
getTemplateHeader
().
getData
()
:
null
);
params
.
put
(
"type"
,
templ
.
getType
().
getBytes
(
StandardCharsets
.
UTF_8
));
params
.
put
(
"body"
,
templ
.
getBody
());
...
...
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