Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 55677a2a
authored
Jun 02, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
围栏审核状态
1 parent
40b7134d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/model/ElectricFenceDTO.java
src/main/java/cn/com/glsx/admin/modules/model/export/ElectricFenceExport.java
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
src/main/resources/mapper/ElectricFenceMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/ElectricFenceDTO.java
View file @
55677a2
package
cn
.
com
.
glsx
.
admin
.
modules
.
model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
ElectricFenceDTO
extends
BaseAreaDto
{
public
class
ElectricFenceDTO
extends
BaseAreaDto
{
private
Long
fenceId
;
private
String
shopName
;
...
...
@@ -18,4 +17,8 @@ public class ElectricFenceDTO extends BaseAreaDto{
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createdDate
;
private
Integer
approvalStatus
;
private
String
approvalResult
;
private
String
approvalRemark
;
}
src/main/java/cn/com/glsx/admin/modules/model/export/ElectricFenceExport.java
View file @
55677a2
...
...
@@ -42,4 +42,13 @@ public class ElectricFenceExport extends BaseAreaDto {
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createdDate
;
@ExcelIgnore
private
Integer
approvalStatus
;
@ExcelProperty
(
value
=
"审核结果"
,
index
=
9
)
private
String
approvalResult
;
@ExcelProperty
(
value
=
"审核备注"
,
index
=
10
)
private
String
approvalRemark
;
}
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
View file @
55677a2
...
...
@@ -77,6 +77,7 @@ public class ElectricFenceService {
organizaService
.
drawOrganization
(
list
);
list
.
forEach
(
index
->
{
index
.
setBizFenceType
(
BizFenceTypeEnum
.
getNameByCode
(
Integer
.
valueOf
(
index
.
getBizFenceType
())));
index
.
setApprovalResult
(
ApprovalStatusEnum
.
getValueByCode
(
index
.
getApprovalStatus
()));
});
return
new
PageInfo
<>(
list
);
}
...
...
@@ -86,6 +87,7 @@ public class ElectricFenceService {
organizaService
.
drawOrganization
(
list
);
list
.
forEach
(
index
->
{
index
.
setBizFenceType
(
BizFenceTypeEnum
.
getNameByCode
(
Integer
.
valueOf
(
index
.
getBizFenceType
())));
index
.
setApprovalResult
(
ApprovalStatusEnum
.
getValueByCode
(
index
.
getApprovalStatus
()));
});
return
list
;
}
...
...
src/main/resources/mapper/ElectricFenceMapper.xml
View file @
55677a2
...
...
@@ -85,10 +85,14 @@
ttds.shop_level shopLevel,
tef.created_date createdDate,
tef.created_by createdBy,
biz_fence_type as bizFenceType
tef.biz_fence_type as bizFenceType,
ta.status approvalStatus,
ta.remark approvalRemark
from t_electric_fence tef
left join t_user tu on tu.id = tef.created_by
left join t_trial_drive_shop ttds on ttds.fence_id = tef.id
left join t_electric_fence_copy tefc on tefc.fence_id = tef.id
left join t_approval ta on ta.biz_id = tefc.id and ta.biz_type = 1
where tef.del_flag = 0
and tef.biz_fence_type = 12
<if
test=
"term != null and term !=''"
>
...
...
@@ -111,10 +115,14 @@
ttds.shop_level shopLevel,
tef.created_date createdDate,
tef.created_by createdBy,
tef.biz_fence_type bizFenceType
tef.biz_fence_type bizFenceType,
ta.status approvalStatus,
ta.remark approvalRemark
from t_electric_fence tef
left join t_user tu on tu.id = tef.created_by
left join t_trial_drive_shop ttds on ttds.fence_id = tef.id
left join t_electric_fence_copy tefc on tefc.fence_id = tef.id
left join t_approval ta on ta.biz_id = tefc.id and ta.biz_type = 1
where tef.del_flag = 0
and tef.biz_fence_type = 12
<if
test=
"term != null and term !=''"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment