Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
certificate-print
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
廖旭伟
certificate-print
Commits
1b0183b5
Commit
1b0183b5
authored
Nov 07, 2022
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试bug修改
parent
4aa851e7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2049 additions
and
1852 deletions
+2049
-1852
certificate-manager/src/main/java/com/mortals/xhx/module/record/model/ApplyLogEntity.java
...a/com/mortals/xhx/module/record/model/ApplyLogEntity.java
+235
-214
certificate-manager/src/main/java/com/mortals/xhx/module/record/model/ApplyLogQuery.java
...va/com/mortals/xhx/module/record/model/ApplyLogQuery.java
+877
-756
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
...s/xhx/module/record/service/impl/ApplyLogServiceImpl.java
+12
-5
certificate-manager/src/main/resources/sqlmap/module/record/ApplyLogMapper.xml
...rc/main/resources/sqlmap/module/record/ApplyLogMapper.xml
+925
-877
No files found.
certificate-manager/src/main/java/com/mortals/xhx/module/record/model/ApplyLogEntity.java
View file @
1b0183b5
This diff is collapsed.
Click to expand it.
certificate-manager/src/main/java/com/mortals/xhx/module/record/model/ApplyLogQuery.java
View file @
1b0183b5
This diff is collapsed.
Click to expand it.
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
View file @
1b0183b5
...
@@ -44,6 +44,7 @@ import com.mortals.framework.model.Context;
...
@@ -44,6 +44,7 @@ import com.mortals.framework.model.Context;
import
com.mortals.xhx.module.record.dao.ApplyLogDao
;
import
com.mortals.xhx.module.record.dao.ApplyLogDao
;
import
com.mortals.xhx.module.record.model.ApplyLogEntity
;
import
com.mortals.xhx.module.record.model.ApplyLogEntity
;
import
com.mortals.xhx.module.record.service.ApplyLogService
;
import
com.mortals.xhx.module.record.service.ApplyLogService
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
...
@@ -95,6 +96,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -95,6 +96,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
orConditionList
.
add
(
condition2
);
orConditionList
.
add
(
condition2
);
query
.
setOrConditionList
(
orConditionList
);
query
.
setOrConditionList
(
orConditionList
);
}
}
query
.
setRecordStatus
(
YesNoEnum
.
NO
.
getValue
());
return
query
;
return
query
;
}
}
...
@@ -151,20 +153,21 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -151,20 +153,21 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
generateOriginal
(
ApplyLogEntity
applyLogEntity
,
Context
context
)
throws
AppException
{
public
void
generateOriginal
(
ApplyLogEntity
applyLogEntity
,
Context
context
)
throws
AppException
{
validData
(
applyLogEntity
,
context
);
validData
(
applyLogEntity
,
context
);
Long
oldId
=
null
;
Long
oldId
=
null
;
boolean
delete
=
false
;
boolean
is_record
=
false
;
CertificateCatalogEntity
catalog
=
certificateCatalogService
.
get
(
applyLogEntity
.
getCatalogId
());
CertificateCatalogEntity
catalog
=
certificateCatalogService
.
get
(
applyLogEntity
.
getCatalogId
());
applyLogEntity
.
setCatalogCode
(
catalog
.
getCatalogCode
());
applyLogEntity
.
setCatalogCode
(
catalog
.
getCatalogCode
());
applyLogEntity
.
setCatalogName
(
catalog
.
getCatalogName
());
applyLogEntity
.
setCatalogName
(
catalog
.
getCatalogName
());
applyLogEntity
.
setFormTemplate
(
catalog
.
getFormContent
());
DocTemplateVO
docTemplate
=
new
DocTemplateVO
(
catalog
.
getTemplateUrl
(),
applyLogEntity
.
getFormContent
());
DocTemplateVO
docTemplate
=
new
DocTemplateVO
(
catalog
.
getTemplateUrl
(),
applyLogEntity
.
getFormContent
());
String
paths
=
preview
(
docTemplate
,
context
);
String
paths
=
preview
(
docTemplate
,
context
);
String
[]
vals
=
paths
.
split
(
";"
);
String
[]
vals
=
paths
.
split
(
";"
);
applyLogEntity
.
setCertificateUrl
(
vals
[
0
]);
applyLogEntity
.
setCertificateUrl
(
vals
[
0
]);
applyLogEntity
.
setPreviewUrl
(
vals
[
1
]);
applyLogEntity
.
setPreviewUrl
(
vals
[
1
]);
applyLogEntity
.
setCreateTime
(
new
Date
());
applyLogEntity
.
setCreateTime
(
new
Date
());
applyLogEntity
.
setRecordStatus
(
YesNoEnum
.
NO
.
getValue
());
if
(
context
!=
null
&&
context
.
getUser
()!=
null
)
{
if
(
context
!=
null
&&
context
.
getUser
()!=
null
)
{
applyLogEntity
.
setCreateUserId
(
context
.
getUser
().
getId
());
applyLogEntity
.
setCreateUserId
(
context
.
getUser
().
getId
());
}
}
...
@@ -172,7 +175,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -172,7 +175,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
if
(
applyLogEntity
.
getId
()!=
null
&&
applyLogEntity
.
getRecordId
()!=
null
){
if
(
applyLogEntity
.
getId
()!=
null
&&
applyLogEntity
.
getRecordId
()!=
null
){
applyLogEntity
.
setOperType
(
OperTypeEnum
.
UPDATE
.
getValue
());
applyLogEntity
.
setOperType
(
OperTypeEnum
.
UPDATE
.
getValue
());
oldId
=
applyLogEntity
.
getId
();
oldId
=
applyLogEntity
.
getId
();
delete
=
true
;
is_record
=
true
;
RecordEntity
recordEntity
=
new
RecordEntity
();
RecordEntity
recordEntity
=
new
RecordEntity
();
recordEntity
.
setId
(
applyLogEntity
.
getRecordId
());
recordEntity
.
setId
(
applyLogEntity
.
getRecordId
());
recordEntity
.
setUpdateUserId
(
applyLogEntity
.
getCreateUserId
());
recordEntity
.
setUpdateUserId
(
applyLogEntity
.
getCreateUserId
());
...
@@ -191,8 +194,12 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -191,8 +194,12 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
applyLogEntity
.
setRecordId
(
recordEntity
.
getId
());
applyLogEntity
.
setRecordId
(
recordEntity
.
getId
());
}
}
dao
.
insert
(
applyLogEntity
);
dao
.
insert
(
applyLogEntity
);
if
(
delete
){
if
(
is_record
){
dao
.
delete
(
oldId
);
ApplyLogEntity
updata
=
new
ApplyLogEntity
();
updata
.
setId
(
oldId
);
updata
.
setRecordStatus
(
YesNoEnum
.
YES
.
getValue
());
updata
.
setUpdateTime
(
new
Date
());
dao
.
update
(
updata
);
}
}
printWaitQueueService
.
creatWaitQueueByApply
(
applyLogEntity
,
GenerateStatus
.
ORIGINAL
.
getValue
(),
context
);
printWaitQueueService
.
creatWaitQueueByApply
(
applyLogEntity
,
GenerateStatus
.
ORIGINAL
.
getValue
(),
context
);
}
}
...
...
certificate-manager/src/main/resources/sqlmap/module/record/ApplyLogMapper.xml
View file @
1b0183b5
This diff is collapsed.
Click to expand it.
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