Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
one-certificate-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
赵啸非
one-certificate-system
Commits
71685c65
Commit
71685c65
authored
Aug 01, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
4d6c29bb
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
484 additions
and
14 deletions
+484
-14
one-certificate-manager/doc/一业一证表结构.docx
one-certificate-manager/doc/一业一证表结构.docx
+0
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/RetainLogEntity.java
.../com/mortals/xhx/module/record/model/RetainLogEntity.java
+10
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/RetainLogQuery.java
...a/com/mortals/xhx/module/record/model/RetainLogQuery.java
+300
-0
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/PrintWaitQueueServiceImpl.java
...module/record/service/impl/PrintWaitQueueServiceImpl.java
+27
-10
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/RetainLogController.java
...om/mortals/xhx/module/record/web/RetainLogController.java
+7
-0
one-certificate-manager/src/main/resources/sqlmap/module/record/RetainLogMapper.xml
...c/main/resources/sqlmap/module/record/RetainLogMapper.xml
+140
-4
No files found.
one-certificate-manager/doc/一业一证表结构.docx
View file @
71685c65
No preview for this file type
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/RetainLogEntity.java
View file @
71685c65
...
...
@@ -136,6 +136,14 @@ public class RetainLogEntity extends RetainLogVo {
* 专网ID
*/
private
String
privateID
;
/**
* 申请ID
*/
private
Long
applyId
;
/**
* 打印次数
*/
private
Integer
total
;
@Override
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
...
...
@@ -182,5 +190,7 @@ public class RetainLogEntity extends RetainLogVo {
this
.
holderType
=
1
;
this
.
holderIdType
=
1
;
this
.
privateID
=
""
;
this
.
applyId
=
null
;
this
.
total
=
1
;
}
}
\ No newline at end of file
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/RetainLogQuery.java
View file @
71685c65
...
...
@@ -275,6 +275,36 @@ public class RetainLogQuery extends RetainLogEntity {
/** 专网ID排除列表 */
private
List
<
String
>
privateIDNotList
;
/** 开始 申请ID */
private
Long
applyIdStart
;
/** 结束 申请ID */
private
Long
applyIdEnd
;
/** 增加 申请ID */
private
Long
applyIdIncrement
;
/** 申请ID列表 */
private
List
<
Long
>
applyIdList
;
/** 申请ID排除列表 */
private
List
<
Long
>
applyIdNotList
;
/** 开始 打印次数 */
private
Integer
totalStart
;
/** 结束 打印次数 */
private
Integer
totalEnd
;
/** 增加 打印次数 */
private
Integer
totalIncrement
;
/** 打印次数列表 */
private
List
<
Integer
>
totalList
;
/** 打印次数排除列表 */
private
List
<
Integer
>
totalNotList
;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private
List
<
RetainLogQuery
>
orConditionList
;
...
...
@@ -1812,6 +1842,168 @@ public class RetainLogQuery extends RetainLogEntity {
this
.
privateIDNotList
=
privateIDNotList
;
}
/**
* 获取 开始 申请ID
* @return applyIdStart
*/
public
Long
getApplyIdStart
(){
return
this
.
applyIdStart
;
}
/**
* 设置 开始 申请ID
* @param applyIdStart
*/
public
void
setApplyIdStart
(
Long
applyIdStart
){
this
.
applyIdStart
=
applyIdStart
;
}
/**
* 获取 结束 申请ID
* @return $applyIdEnd
*/
public
Long
getApplyIdEnd
(){
return
this
.
applyIdEnd
;
}
/**
* 设置 结束 申请ID
* @param applyIdEnd
*/
public
void
setApplyIdEnd
(
Long
applyIdEnd
){
this
.
applyIdEnd
=
applyIdEnd
;
}
/**
* 获取 增加 申请ID
* @return applyIdIncrement
*/
public
Long
getApplyIdIncrement
(){
return
this
.
applyIdIncrement
;
}
/**
* 设置 增加 申请ID
* @param applyIdIncrement
*/
public
void
setApplyIdIncrement
(
Long
applyIdIncrement
){
this
.
applyIdIncrement
=
applyIdIncrement
;
}
/**
* 获取 申请ID
* @return applyIdList
*/
public
List
<
Long
>
getApplyIdList
(){
return
this
.
applyIdList
;
}
/**
* 设置 申请ID
* @param applyIdList
*/
public
void
setApplyIdList
(
List
<
Long
>
applyIdList
){
this
.
applyIdList
=
applyIdList
;
}
/**
* 获取 申请ID
* @return applyIdNotList
*/
public
List
<
Long
>
getApplyIdNotList
(){
return
this
.
applyIdNotList
;
}
/**
* 设置 申请ID
* @param applyIdNotList
*/
public
void
setApplyIdNotList
(
List
<
Long
>
applyIdNotList
){
this
.
applyIdNotList
=
applyIdNotList
;
}
/**
* 获取 开始 打印次数
* @return totalStart
*/
public
Integer
getTotalStart
(){
return
this
.
totalStart
;
}
/**
* 设置 开始 打印次数
* @param totalStart
*/
public
void
setTotalStart
(
Integer
totalStart
){
this
.
totalStart
=
totalStart
;
}
/**
* 获取 结束 打印次数
* @return $totalEnd
*/
public
Integer
getTotalEnd
(){
return
this
.
totalEnd
;
}
/**
* 设置 结束 打印次数
* @param totalEnd
*/
public
void
setTotalEnd
(
Integer
totalEnd
){
this
.
totalEnd
=
totalEnd
;
}
/**
* 获取 增加 打印次数
* @return totalIncrement
*/
public
Integer
getTotalIncrement
(){
return
this
.
totalIncrement
;
}
/**
* 设置 增加 打印次数
* @param totalIncrement
*/
public
void
setTotalIncrement
(
Integer
totalIncrement
){
this
.
totalIncrement
=
totalIncrement
;
}
/**
* 获取 打印次数
* @return totalList
*/
public
List
<
Integer
>
getTotalList
(){
return
this
.
totalList
;
}
/**
* 设置 打印次数
* @param totalList
*/
public
void
setTotalList
(
List
<
Integer
>
totalList
){
this
.
totalList
=
totalList
;
}
/**
* 获取 打印次数
* @return totalNotList
*/
public
List
<
Integer
>
getTotalNotList
(){
return
this
.
totalNotList
;
}
/**
* 设置 打印次数
* @param totalNotList
*/
public
void
setTotalNotList
(
List
<
Integer
>
totalNotList
){
this
.
totalNotList
=
totalNotList
;
}
/**
* 设置 序号,主键,自增长
* @param id
...
...
@@ -2683,6 +2875,114 @@ public class RetainLogQuery extends RetainLogEntity {
return
this
;
}
/**
* 设置 申请ID
* @param applyId
*/
public
RetainLogQuery
applyId
(
Long
applyId
){
setApplyId
(
applyId
);
return
this
;
}
/**
* 设置 开始 申请ID
* @param applyIdStart
*/
public
RetainLogQuery
applyIdStart
(
Long
applyIdStart
){
this
.
applyIdStart
=
applyIdStart
;
return
this
;
}
/**
* 设置 结束 申请ID
* @param applyIdEnd
*/
public
RetainLogQuery
applyIdEnd
(
Long
applyIdEnd
){
this
.
applyIdEnd
=
applyIdEnd
;
return
this
;
}
/**
* 设置 增加 申请ID
* @param applyIdIncrement
*/
public
RetainLogQuery
applyIdIncrement
(
Long
applyIdIncrement
){
this
.
applyIdIncrement
=
applyIdIncrement
;
return
this
;
}
/**
* 设置 申请ID
* @param applyIdList
*/
public
RetainLogQuery
applyIdList
(
List
<
Long
>
applyIdList
){
this
.
applyIdList
=
applyIdList
;
return
this
;
}
/**
* 设置 申请ID
* @param applyIdNotList
*/
public
RetainLogQuery
applyIdNotList
(
List
<
Long
>
applyIdNotList
){
this
.
applyIdNotList
=
applyIdNotList
;
return
this
;
}
/**
* 设置 打印次数
* @param total
*/
public
RetainLogQuery
total
(
Integer
total
){
setTotal
(
total
);
return
this
;
}
/**
* 设置 开始 打印次数
* @param totalStart
*/
public
RetainLogQuery
totalStart
(
Integer
totalStart
){
this
.
totalStart
=
totalStart
;
return
this
;
}
/**
* 设置 结束 打印次数
* @param totalEnd
*/
public
RetainLogQuery
totalEnd
(
Integer
totalEnd
){
this
.
totalEnd
=
totalEnd
;
return
this
;
}
/**
* 设置 增加 打印次数
* @param totalIncrement
*/
public
RetainLogQuery
totalIncrement
(
Integer
totalIncrement
){
this
.
totalIncrement
=
totalIncrement
;
return
this
;
}
/**
* 设置 打印次数
* @param totalList
*/
public
RetainLogQuery
totalList
(
List
<
Integer
>
totalList
){
this
.
totalList
=
totalList
;
return
this
;
}
/**
* 设置 打印次数
* @param totalNotList
*/
public
RetainLogQuery
totalNotList
(
List
<
Integer
>
totalNotList
){
this
.
totalNotList
=
totalNotList
;
return
this
;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/PrintWaitQueueServiceImpl.java
View file @
71685c65
...
...
@@ -21,6 +21,7 @@ import com.mortals.xhx.module.record.dao.RetainLogDao;
import
com.mortals.xhx.module.record.model.*
;
import
com.mortals.xhx.module.record.service.ApplyLogService
;
import
com.mortals.xhx.module.record.service.PrintWaitQueueService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -156,18 +157,10 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
}
private
void
doPrintSuccess
(
PrintWaitQueueEntity
waitQueueEntity
){
RetainLogEntity
retainLogEntity
=
new
RetainLogEntity
();
ApplyLogEntity
applyLogEntity
=
applyLogService
.
get
(
waitQueueEntity
.
getApplyId
());
Date
now
=
new
Date
();
BeanUtils
.
copyProperties
(
applyLogEntity
,
retainLogEntity
,
BeanUtil
.
getNullPropertyNames
(
applyLogEntity
));
retainLogEntity
.
setId
(
null
);
retainLogEntity
.
setUpdateUserId
(
null
);
retainLogEntity
.
setUpdateTime
(
null
);
retainLogEntity
.
setCertificateStatus
(
CertificateStatus
.
NORMAL
.
getValue
());
retainLogEntity
.
setCreateUserId
(
waitQueueEntity
.
getCreateUserId
());
retainLogEntity
.
setCreateTime
(
now
);
PrintLogEntity
printLogEntity
=
new
PrintLogEntity
();
BeanUtils
.
copyProperties
(
waitQueueEntity
,
printLogEntity
,
BeanUtil
.
getNullPropertyNames
(
waitQueueEntity
));
...
...
@@ -179,7 +172,28 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
printLogEntity
.
setCreateTime
(
now
);
printLogEntity
.
setPrintStatus
(
PrintStatus
.
SUCCESS
.
getValue
());
printLogEntity
.
setStatusRemark
(
PrintStatus
.
SUCCESS
.
getDesc
());
retainLogDao
.
insert
(
retainLogEntity
);
RetainLogEntity
retainLogquery
=
new
RetainLogEntity
();
retainLogquery
.
setApplyId
(
waitQueueEntity
.
getApplyId
());
List
<
RetainLogEntity
>
tempRetainLogList
=
retainLogDao
.
getList
(
retainLogquery
);
if
(
CollectionUtils
.
isNotEmpty
(
tempRetainLogList
)){
RetainLogQuery
updateRetainLog
=
new
RetainLogQuery
();
updateRetainLog
.
setUpdateTime
(
now
);
updateRetainLog
.
setId
(
tempRetainLogList
.
get
(
0
).
getId
());
updateRetainLog
.
setTotalIncrement
(
1
);
retainLogDao
.
update
(
updateRetainLog
);
}
else
{
RetainLogEntity
retainLogEntity
=
new
RetainLogEntity
();
BeanUtils
.
copyProperties
(
applyLogEntity
,
retainLogEntity
,
BeanUtil
.
getNullPropertyNames
(
applyLogEntity
));
retainLogEntity
.
setId
(
null
);
retainLogEntity
.
setUpdateUserId
(
null
);
retainLogEntity
.
setUpdateTime
(
null
);
retainLogEntity
.
setCertificateStatus
(
CertificateStatus
.
NORMAL
.
getValue
());
retainLogEntity
.
setCreateUserId
(
waitQueueEntity
.
getCreateUserId
());
retainLogEntity
.
setCreateTime
(
now
);
retainLogDao
.
insert
(
retainLogEntity
);
}
printLogDao
.
insert
(
printLogEntity
);
CertificateCatalogEntity
catalogEntity
=
certificateCatalogService
.
get
(
waitQueueEntity
.
getCatalogId
());
CertificateClassifyQuery
query
=
new
CertificateClassifyQuery
();
...
...
@@ -189,6 +203,9 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
certificateClassifyService
.
update
(
query
);
ApplyLogEntity
updateApply
=
new
ApplyLogEntity
();
updateApply
.
setId
(
applyLogEntity
.
getId
());
updateApply
.
setCertificateCode
(
applyLogEntity
.
getCertificateCode
());
updateApply
.
setEnterpriseName
(
applyLogEntity
.
getEnterpriseName
());
updateApply
.
setCatalogId
(
applyLogEntity
.
getCatalogId
());
updateApply
.
setRecordStatus
(
YesNoEnum
.
YES
.
getValue
());
updateApply
.
setUpdateTime
(
new
Date
());
applyLogService
.
update
(
updateApply
);
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/RetainLogController.java
View file @
71685c65
...
...
@@ -2,6 +2,8 @@ package com.mortals.xhx.module.record.web;
import
com.mortals.framework.common.IBaseEnum
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.user.model.UserQuery
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.common.code.CertificateStatus
;
import
com.mortals.xhx.common.code.StatusEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -25,6 +27,8 @@ import java.util.Arrays;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
import
static
java
.
util
.
stream
.
Collectors
.
toMap
;
/**
*
* 证照持有
...
...
@@ -38,6 +42,8 @@ public class RetainLogController extends BaseCRUDJsonBodyMappingController<Retai
@Autowired
private
ParamService
paramService
;
@Autowired
private
UserService
userService
;
public
RetainLogController
(){
super
.
setModuleDesc
(
"证照持有"
);
...
...
@@ -47,6 +53,7 @@ public class RetainLogController extends BaseCRUDJsonBodyMappingController<Retai
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"status"
,
IBaseEnum
.
getEnumMap
(
StatusEnum
.
class
));
this
.
addDict
(
model
,
"certificateStatus"
,
IBaseEnum
.
getEnumMap
(
CertificateStatus
.
class
));
this
.
addDict
(
model
,
"createUserId"
,
userService
.
find
(
new
UserQuery
()).
stream
().
collect
(
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getRealName
(),
(
o
,
n
)
->
n
)));
super
.
init
(
model
,
context
);
}
...
...
one-certificate-manager/src/main/resources/sqlmap/module/record/RetainLogMapper.xml
View file @
71685c65
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