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
4d6c29bb
Commit
4d6c29bb
authored
Aug 01, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
证件持有增加字段
parent
85e89a77
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2929 additions
and
1937 deletions
+2929
-1937
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
+111
-70
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/RetainLogQuery.java
...a/com/mortals/xhx/module/record/model/RetainLogQuery.java
+1440
-854
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/PrintWaitQueueServiceImpl.java
...module/record/service/impl/PrintWaitQueueServiceImpl.java
+10
-3
one-certificate-manager/src/main/resources/sqlmap/module/record/RetainLogMapper.xml
...c/main/resources/sqlmap/module/record/RetainLogMapper.xml
+1368
-1010
No files found.
one-certificate-manager/doc/一业一证表结构.docx
View file @
4d6c29bb
No preview for this file type
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/RetainLogEntity.java
View file @
4d6c29bb
package
com.mortals.xhx.module.record.model
;
package
com.mortals.xhx.module.record.model
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -10,102 +11,134 @@ import com.mortals.framework.model.BaseEntityLong;
...
@@ -10,102 +11,134 @@ import com.mortals.framework.model.BaseEntityLong;
import
com.mortals.xhx.module.record.model.vo.RetainLogVo
;
import
com.mortals.xhx.module.record.model.vo.RetainLogVo
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
* 证照持有实体对象
* 证照持有实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2024-07-28
* @date 2024-08-01
*/
*/
@Data
@Data
public
class
RetainLogEntity
extends
RetainLogVo
{
public
class
RetainLogEntity
extends
RetainLogVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* 站点id
* 站点id
*/
*/
private
Long
siteId
;
private
Long
siteId
;
/**
/**
* 证照档案ID
* 证照档案ID
*/
*/
private
Long
recordId
;
private
Long
recordId
;
/**
/**
* 证照目录ID
* 证照目录ID
*/
*/
private
Long
catalogId
;
private
Long
catalogId
;
/**
/**
* 证照目录编号
* 证照目录编号
*/
*/
private
String
catalogCode
;
private
String
catalogCode
;
/**
/**
* 目录名称
* 目录名称
*/
*/
private
String
catalogName
;
private
String
catalogName
;
/**
/**
* 证照名称
* 证照名称
*/
*/
private
String
certificateName
;
private
String
certificateName
;
/**
/**
* 证照编号
* 证照编号
*/
*/
private
String
certificateCode
;
private
String
certificateCode
;
/**
/**
* 市场主体名称
* 市场主体名称
*/
*/
private
String
enterpriseName
;
private
String
enterpriseName
;
/**
/**
* 法定代表人
* 法定代表人
*/
*/
private
String
legalPerson
;
private
String
legalPerson
;
/**
/**
* 统一社会信用代码
* 统一社会信用代码
*/
*/
private
String
socialCode
;
private
String
socialCode
;
/**
/**
* 二维码
* 二维码
*/
*/
private
String
qRCode
;
private
String
qRCode
;
/**
/**
* 持有者姓名
* 持有者姓名
*/
*/
private
String
holderName
;
private
String
holderName
;
/**
/**
* 持有者证件号码
* 持有者证件号码
*/
*/
private
String
holderIDCardNo
;
private
String
holderIDCardNo
;
/**
/**
* 手机号码
* 手机号码
*/
*/
private
String
mobile
;
private
String
mobile
;
/**
/**
* 证照状态,1正常2注销
* 证照状态,1正常2注销
*/
*/
private
Integer
certificateStatus
;
private
Integer
certificateStatus
;
/**
/**
* 证件附件地址
* 证件附件地址
*/
*/
private
String
certificateUrl
;
private
String
certificateUrl
;
/**
/**
* 证件预览地址
* 证件预览地址
*/
*/
private
String
previewUrl
;
private
String
previewUrl
;
/**
/**
* 行业名称
* 行业名称
*/
*/
private
String
industryName
;
private
String
industryName
;
/**
/**
* 经营场所
* 经营场所
*/
*/
private
String
businessPlace
;
private
String
businessPlace
;
/**
/**
* 许可项目
* 许可项目
*/
*/
private
String
licenseProject
;
private
String
licenseProject
;
/**
/**
* 制证机关
* 制证机关
*/
*/
private
String
authority
;
private
String
authority
;
/**
* 颁发时间
*/
private
Date
issueTime
;
/**
* 附件名称
*/
private
String
annexName
;
/**
* 附件地址
*/
private
String
annexUrl
;
/**
* 有效期起始
*/
private
Date
validityStart
;
/**
* 有效期截止
*/
private
Date
validityEnd
;
/**
* 持有者类型,1:自然人,2:法人,3:自然人法人
*/
private
Integer
holderType
;
/**
* 持有者证件类型,1:身份证,2:组织机构代码等
*/
private
Integer
holderIdType
;
/**
* 专网ID
*/
private
String
privateID
;
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
}
}
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
...
@@ -113,33 +146,41 @@ public class RetainLogEntity extends RetainLogVo {
...
@@ -113,33 +146,41 @@ public class RetainLogEntity extends RetainLogVo {
if
(
obj
instanceof
RetainLogEntity
)
{
if
(
obj
instanceof
RetainLogEntity
)
{
RetainLogEntity
tmp
=
(
RetainLogEntity
)
obj
;
RetainLogEntity
tmp
=
(
RetainLogEntity
)
obj
;
if
(
this
.
getId
()
==
tmp
.
getId
())
{
if
(
this
.
getId
()
==
tmp
.
getId
())
{
return
true
;
return
true
;
}
}
}
}
return
false
;
return
false
;
}
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
siteId
=
null
;
this
.
siteId
=
null
;
this
.
recordId
=
null
;
this
.
recordId
=
null
;
this
.
catalogId
=
null
;
this
.
catalogId
=
null
;
this
.
catalogCode
=
""
;
this
.
catalogCode
=
""
;
this
.
catalogName
=
""
;
this
.
catalogName
=
""
;
this
.
certificateName
=
""
;
this
.
certificateName
=
""
;
this
.
certificateCode
=
""
;
this
.
certificateCode
=
""
;
this
.
enterpriseName
=
""
;
this
.
enterpriseName
=
""
;
this
.
legalPerson
=
""
;
this
.
legalPerson
=
""
;
this
.
socialCode
=
""
;
this
.
socialCode
=
""
;
this
.
qRCode
=
""
;
this
.
qRCode
=
""
;
this
.
holderName
=
""
;
this
.
holderName
=
""
;
this
.
holderIDCardNo
=
""
;
this
.
holderIDCardNo
=
""
;
this
.
mobile
=
""
;
this
.
mobile
=
""
;
this
.
certificateStatus
=
1
;
this
.
certificateStatus
=
1
;
this
.
certificateUrl
=
""
;
this
.
certificateUrl
=
""
;
this
.
previewUrl
=
""
;
this
.
previewUrl
=
""
;
this
.
industryName
=
""
;
this
.
industryName
=
""
;
this
.
businessPlace
=
""
;
this
.
businessPlace
=
""
;
this
.
licenseProject
=
""
;
this
.
licenseProject
=
""
;
this
.
authority
=
""
;
this
.
authority
=
""
;
this
.
issueTime
=
null
;
this
.
annexName
=
""
;
this
.
annexUrl
=
""
;
this
.
validityStart
=
null
;
this
.
validityEnd
=
null
;
this
.
holderType
=
1
;
this
.
holderIdType
=
1
;
this
.
privateID
=
""
;
}
}
}
}
\ No newline at end of file
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/model/RetainLogQuery.java
View file @
4d6c29bb
This diff is collapsed.
Click to expand it.
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/PrintWaitQueueServiceImpl.java
View file @
4d6c29bb
...
@@ -19,6 +19,7 @@ import com.mortals.xhx.module.record.dao.PrintLogDao;
...
@@ -19,6 +19,7 @@ import com.mortals.xhx.module.record.dao.PrintLogDao;
import
com.mortals.xhx.module.record.dao.PrintWaitQueueDao
;
import
com.mortals.xhx.module.record.dao.PrintWaitQueueDao
;
import
com.mortals.xhx.module.record.dao.RetainLogDao
;
import
com.mortals.xhx.module.record.dao.RetainLogDao
;
import
com.mortals.xhx.module.record.model.*
;
import
com.mortals.xhx.module.record.model.*
;
import
com.mortals.xhx.module.record.service.ApplyLogService
;
import
com.mortals.xhx.module.record.service.PrintWaitQueueService
;
import
com.mortals.xhx.module.record.service.PrintWaitQueueService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -58,6 +59,8 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
...
@@ -58,6 +59,8 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
private
CertificateClassifyService
certificateClassifyService
;
private
CertificateClassifyService
certificateClassifyService
;
@Autowired
@Autowired
private
ParamService
paramService
;
private
ParamService
paramService
;
@Autowired
private
ApplyLogService
applyLogService
;
@Override
@Override
protected
void
findAfter
(
PrintWaitQueueEntity
entity
,
Context
context
,
List
<
PrintWaitQueueEntity
>
list
)
throws
AppException
{
protected
void
findAfter
(
PrintWaitQueueEntity
entity
,
Context
context
,
List
<
PrintWaitQueueEntity
>
list
)
throws
AppException
{
...
@@ -154,8 +157,9 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
...
@@ -154,8 +157,9 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
private
void
doPrintSuccess
(
PrintWaitQueueEntity
waitQueueEntity
){
private
void
doPrintSuccess
(
PrintWaitQueueEntity
waitQueueEntity
){
RetainLogEntity
retainLogEntity
=
new
RetainLogEntity
();
RetainLogEntity
retainLogEntity
=
new
RetainLogEntity
();
ApplyLogEntity
applyLogEntity
=
applyLogService
.
get
(
waitQueueEntity
.
getApplyId
());
Date
now
=
new
Date
();
Date
now
=
new
Date
();
BeanUtils
.
copyProperties
(
waitQueueEntity
,
retainLogEntity
,
BeanUtil
.
getNullPropertyNames
(
waitQueue
Entity
));
BeanUtils
.
copyProperties
(
applyLogEntity
,
retainLogEntity
,
BeanUtil
.
getNullPropertyNames
(
applyLog
Entity
));
retainLogEntity
.
setId
(
null
);
retainLogEntity
.
setId
(
null
);
retainLogEntity
.
setUpdateUserId
(
null
);
retainLogEntity
.
setUpdateUserId
(
null
);
retainLogEntity
.
setUpdateTime
(
null
);
retainLogEntity
.
setUpdateTime
(
null
);
...
@@ -183,7 +187,10 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
...
@@ -183,7 +187,10 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
query
.
setTotalIncrement
(
1
);
query
.
setTotalIncrement
(
1
);
query
.
setUpdateTime
(
now
);
query
.
setUpdateTime
(
now
);
certificateClassifyService
.
update
(
query
);
certificateClassifyService
.
update
(
query
);
ApplyLogEntity
updateApply
=
new
ApplyLogEntity
();
updateApply
.
setId
(
applyLogEntity
.
getId
());
updateApply
.
setRecordStatus
(
YesNoEnum
.
YES
.
getValue
());
updateApply
.
setUpdateTime
(
new
Date
());
applyLogService
.
update
(
updateApply
);
}
}
}
}
\ No newline at end of file
one-certificate-manager/src/main/resources/sqlmap/module/record/RetainLogMapper.xml
View file @
4d6c29bb
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