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
fd132ba3
Commit
fd132ba3
authored
Jan 25, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.改造变更登记新增转办历史人接口。
2.列表新增根据转办历史人接口数据过滤。
parent
e92f7294
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
29 deletions
+37
-29
JgChangeRegistrationReform.java
...boot/module/jg/api/entity/JgChangeRegistrationReform.java
+5
-1
JgChangeRegistrationReformMapper.java
...odule/jg/api/mapper/JgChangeRegistrationReformMapper.java
+1
-1
JgChangeRegistrationReformMapper.xml
...ain/resources/mapper/JgChangeRegistrationReformMapper.xml
+0
-0
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+31
-27
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/entity/JgChangeRegistrationReform.java
View file @
fd132ba3
...
@@ -241,5 +241,9 @@ public class JgChangeRegistrationReform extends BaseEntity {
...
@@ -241,5 +241,9 @@ public class JgChangeRegistrationReform extends BaseEntity {
*/
*/
@TableField
(
"next_execute_user_ids"
)
@TableField
(
"next_execute_user_ids"
)
private
String
nextExecuteUserIds
;
private
String
nextExecuteUserIds
;
/*
* 历史转办人
*/
@TableField
(
value
=
"transfer_to_user_ids"
)
private
String
transferToUserIds
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgChangeRegistrationReformMapper.java
View file @
fd132ba3
...
@@ -19,7 +19,7 @@ import java.util.Map;
...
@@ -19,7 +19,7 @@ import java.util.Map;
* @date 2023-12-20
* @date 2023-12-20
*/
*/
public
interface
JgChangeRegistrationReformMapper
extends
BaseMapper
<
JgChangeRegistrationReform
>
{
public
interface
JgChangeRegistrationReformMapper
extends
BaseMapper
<
JgChangeRegistrationReform
>
{
Page
<
Map
<
String
,
Object
>>
getListPage
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"dto"
)
JgChangeRegistrationReformDto
dto
,
@Param
(
"roleIds"
)
List
<
String
>
roleIds
);
Page
<
Map
<
String
,
Object
>>
getListPage
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"dto"
)
JgChangeRegistrationReformDto
dto
,
@Param
(
"roleIds"
)
List
<
String
>
roleIds
,
@Param
(
"currentUserId"
)
String
currentUserId
);
Map
<
String
,
Object
>
getDetail
(
@Param
(
"id"
)
String
id
);
Map
<
String
,
Object
>
getDetail
(
@Param
(
"id"
)
String
id
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationReformMapper.xml
View file @
fd132ba3
This diff is collapsed.
Click to expand it.
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 @
fd132ba3
...
@@ -53,7 +53,7 @@ import java.util.stream.Collectors;
...
@@ -53,7 +53,7 @@ import java.util.stream.Collectors;
@Service
@Service
public
class
JgChangeRegistrationReformServiceImpl
extends
BaseService
<
JgChangeRegistrationReformDto
,
JgChangeRegistrationReform
,
JgChangeRegistrationReformMapper
>
implements
IJgChangeRegistrationReformService
{
public
class
JgChangeRegistrationReformServiceImpl
extends
BaseService
<
JgChangeRegistrationReformDto
,
JgChangeRegistrationReform
,
JgChangeRegistrationReformMapper
>
implements
IJgChangeRegistrationReformService
{
private
final
static
String
bussinessType
=
"改造登记"
;
private
final
static
String
bussinessType
=
"改造登记"
;
@Autowired
@Autowired
TzsServiceFeignClient
tzsServiceFeignClient
;
TzsServiceFeignClient
tzsServiceFeignClient
;
@Autowired
@Autowired
...
@@ -109,14 +109,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -109,14 +109,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
private
JgChangeRegistrationNameEqMapper
jgChangeRegistrationNameEqMapper
;
private
JgChangeRegistrationNameEqMapper
jgChangeRegistrationNameEqMapper
;
/***
/***
* @deprecated
根据查询调教获取分页对象
* @deprecated 根据查询调教获取分页对象
* @param dto 查询的dto对象
* @param dto 查询的dto对象
* @param page 分页对象
* @param page 分页对象
* @param roleIds 当前登陆人的角色id值
* @param roleIds 当前登陆人的角色id值
* @return
* @return
*/
*/
public
Page
<
Map
<
String
,
Object
>>
getList
(
JgChangeRegistrationReformDto
dto
,
Page
<
Map
<
String
,
Object
>>
page
,
List
<
String
>
roleIds
)
{
public
Page
<
Map
<
String
,
Object
>>
getList
(
JgChangeRegistrationReformDto
dto
,
Page
<
Map
<
String
,
Object
>>
page
,
List
<
String
>
roleIds
)
{
Page
<
Map
<
String
,
Object
>>
listPage
=
this
.
baseMapper
.
getListPage
(
page
,
dto
,
roleIds
);
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
currentUserId
=
reginParams
.
getUserModel
().
getUserId
();
Page
<
Map
<
String
,
Object
>>
listPage
=
this
.
baseMapper
.
getListPage
(
page
,
dto
,
roleIds
,
currentUserId
);
return
listPage
;
return
listPage
;
}
}
...
@@ -196,28 +198,28 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -196,28 +198,28 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
jgRegistrationHistory
.
setSequenceNbr
(
jgRegistrationHistoryMapper
.
getSequenceNbrByRegistratioClassAndDocumentId
(
bussinessType
,
String
.
valueOf
(
map
.
get
(
"applyNo"
))));
jgRegistrationHistory
.
setSequenceNbr
(
jgRegistrationHistoryMapper
.
getSequenceNbrByRegistratioClassAndDocumentId
(
bussinessType
,
String
.
valueOf
(
map
.
get
(
"applyNo"
))));
jgRegistrationHistoryMapper
.
updateById
(
jgRegistrationHistory
);
jgRegistrationHistoryMapper
.
updateById
(
jgRegistrationHistory
);
}
else
{
}
else
{
//暂存处理
//暂存处理
// 业务管理设备信息保存
// 业务管理设备信息保存
JgChangeRegistrationReformEq
jgChangeRegistrationReformEq
=
new
JgChangeRegistrationReformEq
();
JgChangeRegistrationReformEq
jgChangeRegistrationReformEq
=
new
JgChangeRegistrationReformEq
();
jgChangeRegistrationReformEq
.
setEquId
(
equipId
);
jgChangeRegistrationReformEq
.
setEquId
(
equipId
);
ResponseModel
<
List
<
String
>>
result
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
GZBG
.
getCode
(),
1
);
ResponseModel
<
List
<
String
>>
result
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
GZBG
.
getCode
(),
1
);
if
(!
result
.
getResult
().
isEmpty
())
{
if
(!
result
.
getResult
().
isEmpty
())
{
jgChangeRegistrationReform
.
setApplyNo
(
result
.
getResult
().
get
(
0
));
jgChangeRegistrationReform
.
setApplyNo
(
result
.
getResult
().
get
(
0
));
}
else
{
}
else
{
throw
new
BadRequest
(
"申请单编号生成失败,请稍后重试!"
);
throw
new
BadRequest
(
"申请单编号生成失败,请稍后重试!"
);
}
}
jgChangeRegistrationReform
.
setRegDate
(
new
Date
());
jgChangeRegistrationReform
.
setRegDate
(
new
Date
());
jgChangeRegistrationReform
.
setStatus
(
WorkFlowStatusEnum
.
CHANGE_SUBMIT
.
getPass
());
jgChangeRegistrationReform
.
setStatus
(
WorkFlowStatusEnum
.
CHANGE_SUBMIT
.
getPass
());
jgChangeRegistrationReform
.
setAuditStatus
(
WorkFlowStatusEnum
.
CHANGE_SUBMIT
.
getPass
());
jgChangeRegistrationReform
.
setAuditStatus
(
WorkFlowStatusEnum
.
CHANGE_SUBMIT
.
getPass
());
this
.
save
(
jgChangeRegistrationReform
);
this
.
save
(
jgChangeRegistrationReform
);
jgChangeRegistrationReformEq
.
setEquipTransferId
(
jgChangeRegistrationReform
.
getSequenceNbr
().
toString
());
jgChangeRegistrationReformEq
.
setEquipTransferId
(
jgChangeRegistrationReform
.
getSequenceNbr
().
toString
());
jgChangeRegistrationReformEqMapper
.
insert
(
jgChangeRegistrationReformEq
);
jgChangeRegistrationReformEqMapper
.
insert
(
jgChangeRegistrationReformEq
);
//当前单据id
//当前单据id
jgRegistrationHistory
.
setCurrentDocumentId
(
jgChangeRegistrationReform
.
getApplyNo
());
jgRegistrationHistory
.
setCurrentDocumentId
(
jgChangeRegistrationReform
.
getApplyNo
());
jgRegistrationHistoryMapper
.
insert
(
jgRegistrationHistory
);
jgRegistrationHistoryMapper
.
insert
(
jgRegistrationHistory
);
//暂存时生成待办数据
//暂存时生成待办数据
List
<
TaskModelDto
>
taskModelDtoList
=
Arrays
.
asList
(
getTaskModelDtoList
(
jgChangeRegistrationReform
,
null
));
List
<
TaskModelDto
>
taskModelDtoList
=
Arrays
.
asList
(
getTaskModelDtoList
(
jgChangeRegistrationReform
,
null
));
commonServiceImpl
.
buildTaskModel
(
taskModelDtoList
);
commonServiceImpl
.
buildTaskModel
(
taskModelDtoList
);
}
}
...
@@ -654,9 +656,9 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -654,9 +656,9 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
}
}
/**
/**
* @deprecated 根据监管码或者新的使用登记编码
* @param supervisoryCode
* @param supervisoryCode
* @return
* @return
* @deprecated 根据监管码或者新的使用登记编码
*/
*/
public
String
getCode
(
String
supervisoryCode
)
{
public
String
getCode
(
String
supervisoryCode
)
{
if
(!
ObjectUtils
.
isEmpty
(
supervisoryCode
)
&&
supervisoryCode
.
length
()
>
5
)
{
if
(!
ObjectUtils
.
isEmpty
(
supervisoryCode
)
&&
supervisoryCode
.
length
()
>
5
)
{
...
@@ -896,14 +898,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -896,14 +898,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
taskMessageDto
.
setSequenceNbr
(
jgChangeRegistrationReform
.
getSequenceNbr
());
taskMessageDto
.
setSequenceNbr
(
jgChangeRegistrationReform
.
getSequenceNbr
());
//设置流程下一步执行人角色
//设置流程下一步执行人角色
taskMessageDto
.
setNextExecuteIds
(
jgChangeRegistrationReform
.
getNextExecutorIds
());
taskMessageDto
.
setNextExecuteIds
(
jgChangeRegistrationReform
.
getNextExecutorIds
());
//设置nextTaskid
taskMessageDto
.
setNextTaskId
(
jgChangeRegistrationReform
.
getNextTaskId
());
return
taskMessageDto
;
return
taskMessageDto
;
}
}
/**
/**
* @deprecated 根据流程执行情况获取下一步执行公司code用于工作流过滤人员
* @param operate
* @param operate
* @param jgChangeRegistrationReform
* @param jgChangeRegistrationReform
* @return
* @return
* @deprecated 根据流程执行情况获取下一步执行公司code用于工作流过滤人员
*/
*/
private
String
getNextUserOrgCode
(
String
operate
,
JgChangeRegistrationReform
jgChangeRegistrationReform
)
{
private
String
getNextUserOrgCode
(
String
operate
,
JgChangeRegistrationReform
jgChangeRegistrationReform
)
{
if
(
"0"
.
equals
(
operate
))
{
if
(
"0"
.
equals
(
operate
))
{
...
...
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