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 7de201fb
authored
May 27, 2021
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]试驾服务
1 parent
acdf1313
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
src/main/java/cn/com/glsx/admin/modules/model/VehicleApproDto.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleDocService.java
src/main/resources/mapper/ApprovalMapper.xml
src/main/resources/mapper/VehicleDocMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/VehicleApproDto.java
View file @
7de201f
...
@@ -31,8 +31,9 @@ public class VehicleApproDto extends BaseAreaDto {
...
@@ -31,8 +31,9 @@ public class VehicleApproDto extends BaseAreaDto {
private
String
modelName
;
private
String
modelName
;
private
String
vehicleType
;
private
String
vehicleType
;
private
String
approvalStatus
;
private
String
approvalStatus
;
private
String
approvalResult
;
private
String
configDesc
;
private
String
configDesc
;
private
int
submitStatus
;
private
String
submitStatus
;
private
Integer
status
;
private
Integer
status
;
private
String
remark
;
private
String
remark
;
private
String
saleManager
;
private
String
saleManager
;
...
@@ -40,4 +41,5 @@ public class VehicleApproDto extends BaseAreaDto {
...
@@ -40,4 +41,5 @@ public class VehicleApproDto extends BaseAreaDto {
private
String
velRemark
;
private
String
velRemark
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
submitTime
;
private
Date
submitTime
;
private
boolean
isbutton
;
}
}
src/main/java/cn/com/glsx/admin/modules/service/VehicleDocService.java
View file @
7de201f
...
@@ -108,9 +108,14 @@ public class VehicleDocService {
...
@@ -108,9 +108,14 @@ public class VehicleDocService {
List
<
VehicleApproDto
>
vehicleDtoPageInfo
=
vehicleDocMapper
.
search
(
vehicleDocSearch
);
List
<
VehicleApproDto
>
vehicleDtoPageInfo
=
vehicleDocMapper
.
search
(
vehicleDocSearch
);
vehicleDtoPageInfo
.
forEach
(
index
->{
vehicleDtoPageInfo
.
forEach
(
index
->{
if
(
index
.
getStatus
()==
null
||
index
.
getStatus
()==
ApprovalStatusEnum
.
APPROVAL_STATUS_REJECT
.
getCode
()){
if
(
index
.
getStatus
()==
null
||
index
.
getStatus
()==
ApprovalStatusEnum
.
APPROVAL_STATUS_REJECT
.
getCode
()){
index
.
set
SubmitStatus
(
0
);
index
.
set
Isbutton
(
true
);
}
else
{
}
else
{
index
.
setSubmitStatus
(
1
);
index
.
setIsbutton
(
false
);
}
if
(
index
.
getStatus
()==
null
){
index
.
setSubmitStatus
(
"0"
);
}
else
{
index
.
setSubmitStatus
(
"1"
);
}
}
});
});
organizaService
.
drawOrganization
(
vehicleDtoPageInfo
);
organizaService
.
drawOrganization
(
vehicleDtoPageInfo
);
...
...
src/main/resources/mapper/ApprovalMapper.xml
View file @
7de201f
...
@@ -81,8 +81,8 @@
...
@@ -81,8 +81,8 @@
t1.sale_manager as saleManager,
t1.sale_manager as saleManager,
t1.sale_manager_phone as saleManagerPhone,
t1.sale_manager_phone as saleManagerPhone,
t1.remark as velRemark,
t1.remark as velRemark,
t
6.dict_label AS
approvalStatus,
t
5.status as
approvalStatus,
if(t6.dict_label=null,"未提交","已提交") as submitStatus
,
(select dict_label from t_dict_data where dict_value=t5.status and dict_type = 'approval_status') AS approvalResult
,
t5.remark as remark,
t5.remark as remark,
t5.created_date as submitTime
t5.created_date as submitTime
FROM
FROM
...
@@ -137,8 +137,8 @@
...
@@ -137,8 +137,8 @@
and app.status=#{search.approvalStatus}
and app.status=#{search.approvalStatus}
</if>
</if>
<if
test=
"search.keywords !=null and search.keywords != ''"
>
<if
test=
"search.keywords !=null and search.keywords != ''"
>
and (
t4
.shop_name like concat('%',#{search.keywords},'%')
and (
shop
.shop_name like concat('%',#{search.keywords},'%')
or
t4
.shop_code like concat('%',#{search.keywords},'%')
or
shop
.shop_code like concat('%',#{search.keywords},'%')
or tvd.fence_name like concat('%',#{search.keywords},'%')
or tvd.fence_name like concat('%',#{search.keywords},'%')
)
)
</if>
</if>
...
...
src/main/resources/mapper/VehicleDocMapper.xml
View file @
7de201f
...
@@ -69,11 +69,11 @@
...
@@ -69,11 +69,11 @@
<if
test=
"search.approvalStatus !=null and search.approvalStatus != ''"
>
<if
test=
"search.approvalStatus !=null and search.approvalStatus != ''"
>
and t5.status=#{search.approvalStatus}
and t5.status=#{search.approvalStatus}
</if>
</if>
<if
test=
"search.submitStatus ==0"
>
and t6.dict_label is null
</if>
<if
test=
"search.submitStatus ==1"
>
<if
test=
"search.submitStatus ==1"
>
and t6.dict_label is not null
and t5.id is not null
</if>
<if
test=
"search.submitStatus ==0"
>
and t5.id is null
</if>
</if>
<if
test=
"search.keywords !=null and search.keywords != ''"
>
<if
test=
"search.keywords !=null and search.keywords != ''"
>
and (t4.shop_name like concat('%',#{search.keywords},'%')
and (t4.shop_name like concat('%',#{search.keywords},'%')
...
...
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