Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
daea1aca
Commit
daea1aca
authored
Apr 12, 2021
by
wzp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
346e6661
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
TBoxOperation.java
...ava/cn/wisenergy/chnmuseum/party/model/TBoxOperation.java
+13
-0
TBoxOperationMapper.xml
src/main/resources/mapper/TBoxOperationMapper.xml
+8
-4
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/model/TBoxOperation.java
View file @
daea1aca
...
@@ -9,6 +9,7 @@ import lombok.experimental.Accessors;
...
@@ -9,6 +9,7 @@ import lombok.experimental.Accessors;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
/**
/**
...
@@ -75,4 +76,16 @@ public class TBoxOperation implements Serializable {
...
@@ -75,4 +76,16 @@ public class TBoxOperation implements Serializable {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
areaName
;
private
String
areaName
;
@ApiModelProperty
(
"是否永久用户"
)
@TableField
(
exist
=
false
)
private
Boolean
permanent
;
@ApiModelProperty
(
"生效日期"
)
@TableField
(
exist
=
false
)
private
LocalDate
effectiveDate
;
@ApiModelProperty
(
"失效日期"
)
@TableField
(
exist
=
false
)
private
LocalDate
exiredDate
;
}
}
src/main/resources/mapper/TBoxOperationMapper.xml
View file @
daea1aca
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"organ_name"
property=
"organName"
/>
<result
column=
"organ_name"
property=
"organName"
/>
<result
column=
"area_name"
property=
"areaName"
/>
<result
column=
"area_name"
property=
"areaName"
/>
<result
column=
"permanent"
property=
"permanent"
/>
<result
column=
"effective_date"
property=
"effectiveDate"
/>
<result
column=
"exired_date"
property=
"exiredDate"
/>
</resultMap>
</resultMap>
<!-- 通用查询结果列 -->
<!-- 通用查询结果列 -->
...
@@ -33,13 +36,15 @@
...
@@ -33,13 +36,15 @@
<if
test=
"areaId!= null and areaId != '' "
>
<if
test=
"areaId!= null and areaId != '' "
>
and r.area_id like concat(#{areaId}, '%')
and r.area_id like concat(#{areaId}, '%')
</if>
</if>
order by b.create_time desc
</select>
</select>
<select
id=
"selectBoxPage"
resultMap=
"BaseResultMap"
>
<select
id=
"selectBoxPage"
resultMap=
"BaseResultMap"
>
select b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,u.user_name organ_name,a.full_name area_name
select b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,u.user_name organ_name,a.full_name area_name,u.permanent permanent,
u.effective_date effective_date,u.exired_date exired_date
from t_box_operation b
from t_box_operation b
left join t_organ o on b.organ_id = o.id
left join t_organ o on b.organ_id = o.id
left join t_user u on u.org_id = b.organ_id and u.type = '3'
left join t_user u on u.org_id = b.organ_id and u.type = '3'
and u.is_deleted = false
left join t_area a on u.area_id = a.id
left join t_area a on u.area_id = a.id
where 1=1
where 1=1
<if
test=
"user.orgId!= null and user.orgId != '' "
>
<if
test=
"user.orgId!= null and user.orgId != '' "
>
...
@@ -54,8 +59,6 @@
...
@@ -54,8 +59,6 @@
<if
test=
"user.areaName != null and user.areaName != '' "
>
<if
test=
"user.areaName != null and user.areaName != '' "
>
and b.area_id LIKE concat(#{user.areaName}, '%')
and b.area_id LIKE concat(#{user.areaName}, '%')
</if>
</if>
and u.is_deleted = false
and u.type = 3
order by b.create_time desc
order by b.create_time desc
</select>
</select>
...
@@ -77,6 +80,7 @@
...
@@ -77,6 +80,7 @@
<if
test=
"tBoxOperation.areaName != null and tBoxOperation.areaName != '' "
>
<if
test=
"tBoxOperation.areaName != null and tBoxOperation.areaName != '' "
>
and b.area_id LIKE concat(#{tBoxOperation.areaName}, '%')
and b.area_id LIKE concat(#{tBoxOperation.areaName}, '%')
</if>
</if>
order by b.create_time desc
</select>
</select>
</mapper>
</mapper>
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