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
efa86bef
Commit
efa86bef
authored
Dec 25, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(更名):列表查询条件
parent
dcffc5c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
JgChangeRegistrationNameDto.java
...s/boot/module/jg/api/dto/JgChangeRegistrationNameDto.java
+2
-0
JgChangeRegistrationNameMapper.xml
.../main/resources/mapper/JgChangeRegistrationNameMapper.xml
+6
-0
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+6
-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/dto/JgChangeRegistrationNameDto.java
View file @
efa86bef
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
...
...
@@ -53,6 +54,7 @@ public class JgChangeRegistrationNameDto extends BaseDto {
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"创建人"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationNameMapper.xml
View file @
efa86bef
...
...
@@ -43,6 +43,12 @@
<if
test=
"dto.applyNo != null and dto.applyNo != ''"
>
and ur.apply_no like concat('%',#{dto.applyNo},'%')
</if>
<if
test=
"dto.createDate != null"
>
AND ur.create_date >= #{dto.createDate}
</if>
<if
test=
"dto.receiveOrgCode != null and dto.receiveOrgCode != ''"
>
AND ur.receive_org_code = #{dto.receiveOrgCode}
</if>
<if
test=
"roleIds != null and dto.type == 'supervision'"
>
<foreach
collection=
'roleIds'
item=
'role'
open=
'and ('
close=
')'
separator=
'or'
>
ur.instance_status like concat('%',#{role},'%')
...
...
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 @
efa86bef
...
...
@@ -586,6 +586,12 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
public
Page
<
Map
<
String
,
Object
>>
getList
(
JgChangeRegistrationNameDto
dto
,
Page
<
Map
<
String
,
Object
>>
page
,
List
<
String
>
roleIds
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
reginParams
.
getCompany
().
getCompanyCode
();
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotBlank
(
dto
.
getReceiveOrgCode
()))
{
String
[]
receiveOrgIdList
=
dto
.
getReceiveOrgCode
().
split
(
"_"
);
if
(
receiveOrgIdList
.
length
>
1
)
{
dto
.
setReceiveOrgCode
(
receiveOrgIdList
[
0
]);
}
}
Page
<
Map
<
String
,
Object
>>
listPage
=
this
.
baseMapper
.
getListPage
(
page
,
dto
,
roleIds
,
orgCode
);
return
listPage
;
}
...
...
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