Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
b6fd3a96
Commit
b6fd3a96
authored
Dec 25, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用单位变更
parent
797c9245
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
25 deletions
+33
-25
BizCustomDateSerializer.java
...os/boot/module/jg/api/common/BizCustomDateSerializer.java
+1
-1
JgChangeRegistrationUnitDto.java
...s/boot/module/jg/api/dto/JgChangeRegistrationUnitDto.java
+4
-0
JgChangeRegistrationUnit.java
...s/boot/module/jg/api/entity/JgChangeRegistrationUnit.java
+4
-0
WorkFlowStatusEnum.java
...oin/amos/boot/module/jg/api/enums/WorkFlowStatusEnum.java
+1
-1
JgChangeRegistrationUnitMapper.xml
.../main/resources/mapper/JgChangeRegistrationUnitMapper.xml
+15
-13
JgChangeRegistrationUnitController.java
...jg/biz/controller/JgChangeRegistrationUnitController.java
+8
-10
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/common/BizCustomDateSerializer.java
View file @
b6fd3a96
...
@@ -30,7 +30,7 @@ import java.util.Objects;
...
@@ -30,7 +30,7 @@ import java.util.Objects;
*/
*/
public
class
BizCustomDateSerializer
extends
JsonSerializer
<
Date
>
{
public
class
BizCustomDateSerializer
extends
JsonSerializer
<
Date
>
{
private
List
<
String
>
customFields
=
Arrays
.
asList
(
"acceptDate"
,
"expiryDate"
,
"applicationDate"
,
"noticeDate"
,
"installStartDate"
,
"handleDate"
);
private
List
<
String
>
customFields
=
Arrays
.
asList
(
"acceptDate"
,
"expiryDate"
,
"applicationDate"
,
"noticeDate"
,
"installStartDate"
,
"handleDate"
,
"auditPassDate"
,
"applyDate"
);
public
BizCustomDateSerializer
()
public
BizCustomDateSerializer
()
{
{
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgChangeRegistrationUnitDto.java
View file @
b6fd3a96
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
...
@@ -31,6 +33,7 @@ public class JgChangeRegistrationUnitDto extends BaseDto {
...
@@ -31,6 +33,7 @@ public class JgChangeRegistrationUnitDto extends BaseDto {
private
String
applyNo
;
private
String
applyNo
;
@ApiModelProperty
(
value
=
"申请日期"
)
@ApiModelProperty
(
value
=
"申请日期"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
applyDate
;
private
Date
applyDate
;
@ApiModelProperty
(
value
=
"办理状态"
)
@ApiModelProperty
(
value
=
"办理状态"
)
...
@@ -46,6 +49,7 @@ public class JgChangeRegistrationUnitDto extends BaseDto {
...
@@ -46,6 +49,7 @@ public class JgChangeRegistrationUnitDto extends BaseDto {
private
String
receiveCompanyCode
;
private
String
receiveCompanyCode
;
@ApiModelProperty
(
value
=
"终审通过时间"
)
@ApiModelProperty
(
value
=
"终审通过时间"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
auditPassDate
;
private
Date
auditPassDate
;
@ApiModelProperty
(
value
=
"备注"
)
@ApiModelProperty
(
value
=
"备注"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgChangeRegistrationUnit.java
View file @
b6fd3a96
...
@@ -2,7 +2,9 @@ package com.yeejoin.amos.boot.module.jg.api.entity;
...
@@ -2,7 +2,9 @@ package com.yeejoin.amos.boot.module.jg.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
...
@@ -38,6 +40,7 @@ public class JgChangeRegistrationUnit extends BaseEntity {
...
@@ -38,6 +40,7 @@ public class JgChangeRegistrationUnit extends BaseEntity {
* 申请日期
* 申请日期
*/
*/
@TableField
(
"apply_date"
)
@TableField
(
"apply_date"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
applyDate
;
private
Date
applyDate
;
/**
/**
...
@@ -68,6 +71,7 @@ public class JgChangeRegistrationUnit extends BaseEntity {
...
@@ -68,6 +71,7 @@ public class JgChangeRegistrationUnit extends BaseEntity {
* 终审通过时间
* 终审通过时间
*/
*/
@TableField
(
"audit_pass_date"
)
@TableField
(
"audit_pass_date"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
auditPassDate
;
private
Date
auditPassDate
;
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/enums/WorkFlowStatusEnum.java
View file @
b6fd3a96
...
@@ -59,7 +59,7 @@ public enum WorkFlowStatusEnum {
...
@@ -59,7 +59,7 @@ public enum WorkFlowStatusEnum {
/**
/**
* 使用单位更登记流程
* 使用单位更登记流程
*/
*/
UNITCHANGE_SUBMIT
(
"使用单位提交"
,
"unitChangeSubmit"
,
"使用单位待提交"
,
"一级受理已驳回"
,
"使用单位
提交
已撤回"
),
UNITCHANGE_SUBMIT
(
"使用单位提交"
,
"unitChangeSubmit"
,
"使用单位待提交"
,
"一级受理已驳回"
,
"使用单位已撤回"
),
UNITCHANGE_RECEIVE
(
"一级受理"
,
"unitChangeReceive"
,
"一级待受理"
,
"二级受理已驳回"
,
"一级受理已撤回"
),
UNITCHANGE_RECEIVE
(
"一级受理"
,
"unitChangeReceive"
,
"一级待受理"
,
"二级受理已驳回"
,
"一级受理已撤回"
),
UNITCHANGE_PRELIMINARY
(
"二级受理"
,
"unitChangePreliminary"
,
"二级待受理"
,
"三级受理已驳回"
,
"二级受理已撤回"
),
UNITCHANGE_PRELIMINARY
(
"二级受理"
,
"unitChangePreliminary"
,
"二级待受理"
,
"三级受理已驳回"
,
"二级受理已撤回"
),
UNITCHANGE_REEXAMINE
(
"三级受理"
,
"unitChangeReexamine"
,
"三级待受理"
,
""
,
""
);
UNITCHANGE_REEXAMINE
(
"三级受理"
,
"unitChangeReexamine"
,
"三级待受理"
,
""
,
""
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationUnitMapper.xml
View file @
b6fd3a96
...
@@ -10,11 +10,16 @@
...
@@ -10,11 +10,16 @@
isn.use_unit_name AS useUnitName,
isn.use_unit_name AS useUnitName,
isn.receive_org_name AS receiveOrgName,
isn.receive_org_name AS receiveOrgName,
isn.new_use_unit_name AS newUseUnitName,
isn.new_use_unit_name AS newUseUnitName,
isn.equ_address AS equAddress,
isn.product_name_b AS productNameB,
isn.equ_code_b AS equCodeB,
isn.use_inner_code AS useInnerCode,
isn.use_regist_code AS useRegistCode,
isn.apply_date AS applyDate,
isn.apply_date AS applyDate,
isn.status AS status,
isn.status AS status,
isn.instance_id AS instanceId,
isn.instance_id AS instanceId,
isn.promoter,
isn.promoter,
isn.next_execut
e_ids AS nextExecute
Ids,
isn.next_execut
or_ids AS nextExecutor
Ids,
isn.instance_status AS instanceStatus,
isn.instance_status AS instanceStatus,
isn.audit_pass_date AS auditPassDate,
isn.audit_pass_date AS auditPassDate,
isn.equ_type AS equType
isn.equ_type AS equType
...
@@ -27,17 +32,20 @@
...
@@ -27,17 +32,20 @@
AND isn.apply_no LIKE CONCAT('%', #{param.applyNo}, '%')
AND isn.apply_no LIKE CONCAT('%', #{param.applyNo}, '%')
</if>
</if>
<if
test=
"param.receiveOrgCode != null and param.receiveOrgCode != ''"
>
<if
test=
"param.receiveOrgCode != null and param.receiveOrgCode != ''"
>
AND isn.receive_org_c
redit_code = #{param.receiveOrgCredit
Code}
AND isn.receive_org_c
ode = #{param.receiveOrg
Code}
</if>
</if>
<if
test=
"param.useUnitName != null and param.useUnitName != ''"
>
<if
test=
"param.useUnitName != null and param.useUnitName != ''"
>
AND isn.use_unit_c
redit_c
ode = #{param.useUnitName}
AND isn.use_unit_code = #{param.useUnitName}
</if>
</if>
<if
test=
"param.status != null and param.status != ''"
>
<if
test=
"param.status != null and param.status != ''"
>
AND isn.status = #{param.status}
AND isn.status = #{param.status}
</if>
</if>
<if
test=
"param.equCodeB != null and param.equCodeB != ''"
>
AND isn.equ_code_b = #{param.equCodeB}
</if>
</if>
</if>
<if
test=
"type == 'supervision'"
>
<if
test=
"type == 'supervision'"
>
AND isn.receive_org_c
redit_c
ode = #{orgCode}
AND isn.receive_org_code = #{orgCode}
AND isn.instance_id is not null
AND isn.instance_id is not null
</if>
</if>
<if
test=
"type == 'enterprise'"
>
<if
test=
"type == 'enterprise'"
>
...
@@ -50,22 +58,16 @@
...
@@ -50,22 +58,16 @@
</if>
</if>
</where>
</where>
ORDER BY
ORDER BY
isn.create_date DESC
isn.create_date
,isn.apply_no
DESC
</select>
</select>
<select
id=
"queryEquipInformation"
resultType=
"java.util.Map"
>
<select
id=
"queryEquipInformation"
resultType=
"java.util.Map"
>
select
select
isn.sequence_nbr AS sequenceNbr,
isn.sequence_nbr AS sequenceNbr,
isn.apply_no AS applyNo,
isn.apply_no AS applyNo,
isn.use_unit_name AS useUnitName,
isn.use_unit_credit_code AS useUnitName,
isn.new_use_unit_credit_code AS useUnitName,
isn.new_use_unit_name AS useUnitName,
isn.receive_org_name AS receiveOrgName,
isn.receive_org_code AS receiveOrgCode,
isn.change_certificate AS changeCertificate,
isn.change_certificate AS changeCertificate,
isn.remark AS remark,
isn.remark AS remark,
isn.
equ_register
_code AS equRegisterCode,
isn.
use_regist
_code AS equRegisterCode,
ri.equ_list AS equList,
ri.equ_list AS equList,
ri.equ_category AS equCategory,
ri.equ_category AS equCategory,
ri.EQU_DEFINE AS equDefine,
ri.EQU_DEFINE AS equDefine,
...
@@ -99,7 +101,7 @@
...
@@ -99,7 +101,7 @@
ei.address AS address
ei.address AS address
FROM
FROM
tzs_jg_change_registration_unit isn
tzs_jg_change_registration_unit isn
LEFT JOIN tzs_jg_change_registration_unit_eq re ON re.
equip_transfer
_id = isn.sequence_nbr
LEFT JOIN tzs_jg_change_registration_unit_eq re ON re.
unit_change_registration
_id = isn.sequence_nbr
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = re.equ_id
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = re.equ_id
LEFT JOIN idx_biz_jg_design_info di ON di.record = re.equ_id
LEFT JOIN idx_biz_jg_design_info di ON di.record = re.equ_id
LEFT JOIN idx_biz_jg_factory_info fi ON fi.record = re.equ_id
LEFT JOIN idx_biz_jg_factory_info fi ON fi.record = re.equ_id
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgChangeRegistrationUnitController.java
View file @
b6fd3a96
...
@@ -70,15 +70,13 @@ public class JgChangeRegistrationUnitController extends BaseController {
...
@@ -70,15 +70,13 @@ public class JgChangeRegistrationUnitController extends BaseController {
@PutMapping
(
value
=
"/update"
)
@PutMapping
(
value
=
"/update"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新单位变更"
,
notes
=
"根据sequenceNbr更新单位变更"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新单位变更"
,
notes
=
"根据sequenceNbr更新单位变更"
)
public
ResponseModel
<
JgChangeRegistrationUnitDto
>
updateBySequenceNbrJgInstallationNotice
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
,
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
public
ResponseModel
<
JgChangeRegistrationUnitDto
>
updateBySequenceNbrJgInstallationNotice
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
,
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
JgChangeRegistrationUnitDto
installationInf
o
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"changeRegisInfo"
)),
JgChangeRegistrationUnitDto
.
class
,
true
);
JgChangeRegistrationUnitDto
jgChangeRegistrationUnitDt
o
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"changeRegisInfo"
)),
JgChangeRegistrationUnitDto
.
class
,
true
);
if
(
Objects
.
isNull
(
installationInf
o
))
{
if
(
Objects
.
isNull
(
jgChangeRegistrationUnitDt
o
))
{
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
}
}
// Object o = ((LinkedHashMap<?, ?>) model.get("installationInfo")).get("proxyStatementAttachment");
Object
o
=
((
LinkedHashMap
<?,
?>)
model
.
get
(
"changeRegisInfo"
)).
get
(
"changeCertificateList"
);
// Object o1 = ((LinkedHashMap<?, ?>) model.get("installationInfo")).get("installContractAttachment");
jgChangeRegistrationUnitDto
.
setChangeCertificateList
((
List
<
Map
<
String
,
Object
>>)
o
);
// installationInfo.setProxyStatementAttachmentList((List<Map<String, Object>>) o);
return
ResponseHelper
.
buildResponse
(
jgChangeRegistrationUnitServiceImpl
.
updateInstallationNotice
(
submitType
,
jgChangeRegistrationUnitDto
,
op
));
// installationInfo.setInstallContractAttachmentList((List<Map<String, Object>>) o1);
return
ResponseHelper
.
buildResponse
(
jgChangeRegistrationUnitServiceImpl
.
updateInstallationNotice
(
submitType
,
installationInfo
,
op
));
}
}
/**
/**
...
@@ -163,7 +161,7 @@ public class JgChangeRegistrationUnitController extends BaseController {
...
@@ -163,7 +161,7 @@ public class JgChangeRegistrationUnitController extends BaseController {
@PostMapping
(
value
=
"/cancel"
)
@PostMapping
(
value
=
"/cancel"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位变更撤销"
,
notes
=
"单位变更撤销"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位变更撤销"
,
notes
=
"单位变更撤销"
)
public
ResponseModel
<
JgChangeRegistrationUnitDto
>
cancel
(
@RequestBody
Map
<
String
,
Object
>
model
)
{
public
ResponseModel
<
JgChangeRegistrationUnitDto
>
cancel
(
@RequestBody
Map
<
String
,
Object
>
model
)
{
JgChangeRegistrationUnitDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"
installation
Info"
)),
JgChangeRegistrationUnitDto
.
class
,
true
);
JgChangeRegistrationUnitDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"
changeRegis
Info"
)),
JgChangeRegistrationUnitDto
.
class
,
true
);
if
(
Objects
.
isNull
(
installationInfo
))
{
if
(
Objects
.
isNull
(
installationInfo
))
{
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
}
}
...
@@ -181,9 +179,9 @@ public class JgChangeRegistrationUnitController extends BaseController {
...
@@ -181,9 +179,9 @@ public class JgChangeRegistrationUnitController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位变更受理"
,
notes
=
"单位变更受理"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位变更受理"
,
notes
=
"单位变更受理"
)
public
ResponseModel
<
JgChangeRegistrationUnitDto
>
accept
(
@RequestBody
Map
<
String
,
Object
>
model
,
String
op
)
{
public
ResponseModel
<
JgChangeRegistrationUnitDto
>
accept
(
@RequestBody
Map
<
String
,
Object
>
model
,
String
op
)
{
// TODO 受理单位变更流程
// TODO 受理单位变更流程
LinkedHashMap
model1
=
(
LinkedHashMap
)
model
.
get
(
"
model
"
);
LinkedHashMap
model1
=
(
LinkedHashMap
)
model
.
get
(
"
changeRegisInfo
"
);
String
opinion
=
(
String
)
model
.
get
(
"opinion"
);
String
opinion
=
(
String
)
model
.
get
(
"opinion"
);
LinkedHashMap
installationInfo
=
(
LinkedHashMap
)
model1
.
get
(
"
installation
Info"
);
LinkedHashMap
installationInfo
=
(
LinkedHashMap
)
model1
.
get
(
"
changeRegis
Info"
);
JgChangeRegistrationUnitDto
jgInstallationNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
installationInfo
),
JgChangeRegistrationUnitDto
.
class
);
JgChangeRegistrationUnitDto
jgInstallationNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
installationInfo
),
JgChangeRegistrationUnitDto
.
class
);
jgInstallationNoticeDto
.
setProcessAdvice
(
opinion
);
jgInstallationNoticeDto
.
setProcessAdvice
(
opinion
);
jgChangeRegistrationUnitServiceImpl
.
accept
(
jgInstallationNoticeDto
,
op
);
jgChangeRegistrationUnitServiceImpl
.
accept
(
jgInstallationNoticeDto
,
op
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
View file @
b6fd3a96
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