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
453be66d
Commit
453be66d
authored
Jul 09, 2024
by
李松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改造变更登记业务调整
parent
627b1b50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
8 deletions
+75
-8
JgChangeRegistrationNameController.java
...jg/biz/controller/JgChangeRegistrationNameController.java
+1
-1
JgChangeRegistrationReformController.java
.../biz/controller/JgChangeRegistrationReformController.java
+57
-0
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+1
-0
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+13
-4
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+0
-0
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+3
-3
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgChangeRegistrationNameController.java
View file @
453be66d
...
...
@@ -135,7 +135,7 @@ public class JgChangeRegistrationNameController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getTableData"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取
"
,
notes
=
"根据sequenceNbr查询单个详情
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取
当前企业下,某个接收机构下的使用登记证信息"
,
notes
=
"获取当前企业下,某个接收机构下的使用登记证信息
"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getTableData
(
JgUseRegistrationManageDto
dto
)
{
if
(
ValidationUtil
.
isEmpty
(
dto
.
getUseUnitCreditCode
()))
{
// 不传的话取当前登录单位的统一信用代码
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgChangeRegistrationReformController.java
View file @
453be66d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgChangeRegistrationReformDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgChangeRegistrationReformServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -127,4 +132,56 @@ public class JgChangeRegistrationReformController extends BaseController {
@RequestParam
(
value
=
"printType"
,
defaultValue
=
"0"
)
String
printType
){
jgChangeRegistrationReformServiceImpl
.
exportUseRegistrationCertificate
(
sequenceNbr
,
response
,
printType
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getEquDetail"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据使用登记证查询设备详情(前端组件默认传参record)"
,
notes
=
"根据使用登记证查询设备详情"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getEquDetail
(
@RequestParam
String
record
)
{
return
ResponseHelper
.
buildResponse
(
jgChangeRegistrationReformServiceImpl
.
getEquDetail
(
record
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getUseRegistrationCodeData"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取当前企业,某接收机构审批的使用登记证信息"
,
notes
=
"获取当前企业,某接收机构审批的使用登记证信息"
)
public
ResponseModel
<
Page
<
JgUseRegistrationManageDto
>>
getUseRegistrationCodeData
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"EQU_LIST_CODE"
,
required
=
false
)
String
EQU_LIST_CODE
,
@RequestParam
(
value
=
"EQU_CATEGORY_CODE"
,
required
=
false
)
String
EQU_CATEGORY_CODE
,
@RequestParam
(
value
=
"equList"
,
required
=
false
)
String
equList
,
@RequestParam
(
value
=
"receiveCompanyCode"
)
String
receiveCompanyCode
)
{
JgUseRegistrationManageDto
dto
=
new
JgUseRegistrationManageDto
();
Page
<
JgUseRegistrationManageDto
>
page
=
new
Page
<
JgUseRegistrationManageDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
ReginParams
info
=
getSelectedOrgInfo
();
if
(
info
.
getCompany
().
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_COMPANY
);
dto
.
setUseUnitCreditCode
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
info
.
getCompany
().
getCompanyType
())
?
info
.
getCompany
().
getCompanyCode
().
split
(
"_"
)[
1
]
:
info
.
getCompany
().
getCompanyCode
());
}
else
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_SUPERVISION
);
dto
.
setReceiveCompanyCode
(
info
.
getCompany
().
getCompanyCode
());
}
// 新增时使用EQU_LIST_CODE,适配组件,适配原有表单
if
(!
ObjectUtils
.
isEmpty
(
EQU_LIST_CODE
)){
dto
.
setEquListCode
(
EQU_LIST_CODE
);
}
// 流程页面使用equList,适配组件,适配原有表单
if
(!
ObjectUtils
.
isEmpty
(
equList
)){
dto
.
setEquListCode
(
equList
);
}
// 流程页面使用equList,适配组件,适配原有表单
if
(!
ObjectUtils
.
isEmpty
(
EQU_CATEGORY_CODE
)){
dto
.
setEquCategoryCode
(
EQU_CATEGORY_CODE
);
}
if
(!
ValidationUtil
.
isEmpty
(
receiveCompanyCode
)){
String
[]
codes
=
receiveCompanyCode
.
split
(
"_"
);
if
(!
ValidationUtil
.
isEmpty
(
codes
)){
dto
.
setReceiveCompanyCode
(
codes
[
0
]);
}
}
return
ResponseHelper
.
buildResponse
(
jgChangeRegistrationReformServiceImpl
.
getUseRegistrationCodeData
(
page
,
dto
));
}
}
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
453be66d
...
...
@@ -567,6 +567,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
registerInfoMap
.
put
(
"registerinfoSeq"
,
registerInfo
.
getSequenceNbr
());
registerInfoMap
.
put
(
"sequenceNbr"
,
registerInfo
.
getSequenceNbr
());
registerInfoMap
.
put
(
"productPhoto"
,
JSON
.
parseArray
(
registerInfo
.
getProductPhoto
()));
registerInfoMap
.
put
(
"useRegistrationCode"
,
registerInfo
.
getUseOrgCode
());
if
(
CollectionUtils
.
isNotEmpty
(
categoryList0
))
{
registerInfoMap
.
put
(
"equListDesc"
,
categoryList0
.
get
(
0
).
getName
());
}
...
...
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/JgChangeRegistrationNameServiceImpl.java
View file @
453be66d
...
...
@@ -44,6 +44,7 @@ import com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowStartDTO
;
import
com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO
;
import
com.yeejoin.amos.feign.workflow.model.TaskResultDTO
;
import
io.seata.spring.annotation.GlobalTransactional
;
import
org.redisson.api.RLock
;
import
org.redisson.api.RedissonClient
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -148,6 +149,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
private
JgCertificateChangeRecordEqServiceImpl
jgCertificateChangeRecordEqService
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
public
List
<
JgChangeRegistrationName
>
save2
(
String
submitType
,
JSONObject
requestParam
)
{
Map
<
String
,
JSONObject
>
jgRegistrationInfoMap
=
(
Map
<
String
,
JSONObject
>)
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
requestParam
),
Map
.
class
);
return
Collections
.
singletonList
(
this
.
save
(
submitType
,
jgRegistrationInfoMap
));
...
...
@@ -211,6 +213,8 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
public
JgChangeRegistrationName
save
(
String
submitType
,
Map
<
String
,
JSONObject
>
jgRegistrationInfoMap
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
[]
taskName
=
new
String
[]{
"流程结束"
};
...
...
@@ -381,6 +385,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
public
JgChangeRegistrationNameDto
updateInfo
(
String
submitType
,
JgChangeRegistrationNameDto
jgChangeRegistrationNameDto
,
String
op
)
{
if
(
Objects
.
isNull
(
jgChangeRegistrationNameDto
)
||
StringUtils
.
isEmpty
(
submitType
))
{
throw
new
IllegalArgumentException
(
"参数不能为空"
);
...
...
@@ -553,6 +558,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
public
void
revocation
(
String
instanceId
,
String
taskId
)
{
String
lockKey
=
CommonServiceImpl
.
buildJgExecuteLockKey
(
instanceId
);
RLock
lock
=
redissonClient
.
getLock
(
lockKey
);
...
...
@@ -624,6 +630,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
public
void
flowExecute
(
Long
id
,
String
instanceId
,
String
operate
,
String
comment
,
String
nextTaskId
)
{
String
lockKey
=
CommonServiceImpl
.
buildJgExecuteLockKey
(
instanceId
);
RLock
lock
=
redissonClient
.
getLock
(
lockKey
);
...
...
@@ -725,10 +732,10 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
// 完成时 下一步骤可执行人清空
jgChangeRegistrationName
.
setNextExecuteUserIds
(
""
);
jgChangeRegistrationName
.
setNextTaskId
(
nextTaskId
);
// 修改业务信息
updateInfoOther
(
jgChangeRegistrationName
);
// 更新代办
updateTaskModel
(
jgChangeRegistrationName
,
operate
);
TaskV2Model
taskV2Model
=
updateTaskModel
(
jgChangeRegistrationName
,
operate
);
// 修改业务信息
updateInfoOther
(
taskV2Model
,
jgChangeRegistrationName
);
}
// 保存redis最新流程数据
commonService
.
saveExecuteFlowData2Redis
(
jgChangeRegistrationName
.
getInstanceId
(),
this
.
buildInstanceRuntimeData
(
jgChangeRegistrationName
));
...
...
@@ -769,7 +776,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
return
commonService
.
getDictionaryCodeByName
(
auditStatus
);
}
public
void
updateInfoOther
(
JgChangeRegistrationName
jgChangeRegistrationName
)
{
public
void
updateInfoOther
(
TaskV2Model
taskV2Model
,
JgChangeRegistrationName
jgChangeRegistrationName
)
{
// LambdaQueryWrapper<JgChangeRegistrationNameEq> wrapper = new LambdaQueryWrapper<>();
// wrapper.eq(JgChangeRegistrationNameEq::getNameChangeRegistrationId, jgChangeRegistrationName.getSequenceNbr());
// List<String> collect = jgChangeRegistrationNameEqService.list(wrapper).stream().map(JgChangeRegistrationNameEq::getEquId).collect(Collectors.toList());
...
...
@@ -846,6 +853,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
lambda
.
in
(
JgUseRegistrationManage:
:
getSequenceNbr
,
collect
);
JgUseRegistrationManage
jgUseRegistrationManage
=
new
JgUseRegistrationManage
();
jgUseRegistrationManage
.
setUseUnitName
(
jgChangeRegistrationName
.
getNewUseUnitName
());
jgUseRegistrationManage
.
setAuditPassDate
(
new
Date
());
jgUseRegistrationManageService
.
update
(
jgUseRegistrationManage
,
lambda
);
// 业务流水生成
...
...
@@ -874,6 +882,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
jgCertificateChangeRecord
.
setUseUnitName
(
jgChangeRegistrationName
.
getUseUnitName
());
jgCertificateChangeRecord
.
setEquCategory
(!
ObjectUtils
.
isEmpty
(
object
.
get
(
"equCategoryCode"
))
?
object
.
get
(
"equCategoryCode"
).
toString
()
:
null
);
jgCertificateChangeRecord
.
setReceiveCompanyCode
(
jgChangeRegistrationName
.
getReceiveOrgCode
());
jgCertificateChangeRecord
.
setRoutePath
(
taskV2Model
.
getRoutePath
());
// 保存证流水信息
jgCertificateChangeRecordService
.
save
(
jgCertificateChangeRecord
);
// 生成证下设备流水信息
...
...
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/JgChangeRegistrationReformServiceImpl.java
View file @
453be66d
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
453be66d
...
...
@@ -129,19 +129,19 @@
"type"
:
"108"
,
"pageType"
:
"draft"
,
"name"
:
"更名变更登记-暂存打开"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1739168596900212738&roleIds={roleIds}&userId={userId}&
form
Type=edit"
"url"
:
"/mixuap?appId=1742358052905971713&id=1739168596900212738&roleIds={roleIds}&userId={userId}&
page
Type=edit"
},
{
"type"
:
"108"
,
"pageType"
:
"look"
,
"name"
:
"更名变更登记-查看"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1739186702624256001&roleIds={roleIds}&userId={userId}&
form
Type=detail"
"url"
:
"/mixuap?appId=1742358052905971713&id=1739186702624256001&roleIds={roleIds}&userId={userId}&
page
Type=detail"
},
{
"type"
:
"108"
,
"pageType"
:
"edit"
,
"name"
:
"更名变更登记"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1739186702624256001&roleIds={roleIds}&userId={userId}&
form
Type=edit"
"url"
:
"/mixuap?appId=1742358052905971713&id=1739186702624256001&roleIds={roleIds}&userId={userId}&
page
Type=edit"
},
{
"type"
:
"109"
,
...
...
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