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
cb1baca7
Commit
cb1baca7
authored
May 09, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):使用登记添加使用单位过滤条件
parent
50cabcdc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
JgMaintenanceContractDto.java
...amos/boot/module/jg/api/dto/JgMaintenanceContractDto.java
+2
-0
JgUseRegistrationDto.java
...oin/amos/boot/module/jg/api/dto/JgUseRegistrationDto.java
+4
-0
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+7
-1
JgUseRegistrationController.java
...module/jg/biz/controller/JgUseRegistrationController.java
+3
-2
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/JgMaintenanceContractDto.java
View file @
cb1baca7
...
...
@@ -138,6 +138,8 @@ public class JgMaintenanceContractDto extends BaseDto {
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
createDate
;
@TableField
(
"instance_status"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgUseRegistrationDto.java
View file @
cb1baca7
...
...
@@ -108,8 +108,12 @@ public class JgUseRegistrationDto extends BaseDto {
private
String
dataType
;
@ApiModelProperty
(
value
=
"使用单位code"
)
private
String
unitCode
;
@ApiModelProperty
(
value
=
"使用单位code:用作接收搜索条件"
)
private
String
useUnitCode
;
private
String
isXixian
;
private
String
currentUserId
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
cb1baca7
...
...
@@ -100,13 +100,16 @@
<if
test=
"dto.useRegistrationCode != null and dto.useRegistrationCode != ''"
>
and ur.use_registration_code like concat('%',#{dto.useRegistrationCode},'%')
</if>
<if
test=
"dto.useUnitCode != null and dto.useUnitCode != ''"
>
and ur.use_unit_credit_code = #{dto.useUnitCode}
</if>
<if
test=
"roleIds != null and dto.dataType == 'supervision'"
>
<foreach
collection=
'roleIds'
item=
'role'
open=
'and ('
close=
')'
separator=
'or'
>
instance_status like concat('%',#{role},'%')
</foreach>
</if>
<if
test=
"dto.dataType == 'supervision' "
>
and ur.receive_company_code = #{dto.unit
Code}
AND ur.receive_company_code = #{dto.receiveCompany
Code}
AND ur.instance_id
<![CDATA[<>]]>
''
</if>
<if
test=
"dto.dataType == 'company' "
>
...
...
@@ -163,6 +166,9 @@
<if
test=
"dto.useRegistrationCode != null and dto.useRegistrationCode != ''"
>
and ur.use_registration_code like concat('%',#{dto.useRegistrationCode},'%')
</if>
<if
test=
"dto.useUnitCode != null and dto.useUnitCode != ''"
>
and ur.use_unit_credit_code = #{dto.useUnitCode}
</if>
GROUP BY re.equip_transfer_id
</where>
)
order by
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgUseRegistrationController.java
View file @
cb1baca7
...
...
@@ -94,17 +94,18 @@ public class JgUseRegistrationController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/getList"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getList
(
JgUseRegistrationDto
dto
,
@ApiParam
(
value
=
"排序字段"
,
required
=
false
)
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@ApiParam
(
value
=
"排序字段"
)
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
ReginParams
info
=
getSelectedOrgInfo
();
dto
.
setUnitCode
(
info
.
getCompany
().
getCompanyCode
());
dto
.
setCurrentUserId
(
info
.
getUserModel
().
getUserId
());
if
(
info
.
getCompany
().
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_COMPANY
);
dto
.
setUnitCode
(
info
.
getCompany
().
getCompanyCode
());
}
else
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_SUPERVISION
);
dto
.
setReceiveCompanyCode
(
info
.
getCompany
().
getCompanyCode
());
}
Page
<
Map
<
String
,
Object
>>
list
=
jgUseRegistrationServiceImpl
.
getList
(
dto
,
sort
,
page
,
dto
.
getRoleIds
());
list
.
getRecords
().
forEach
(
x
->
x
.
put
(
"companyType"
,
info
.
getCompany
().
getCompanyType
()));
...
...
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