Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
66cc4779
Commit
66cc4779
authored
Oct 28, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-chw' into dev-chw
parents
f194fbeb
1f51556f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
9 deletions
+27
-9
BranchCompanyMapper.xml
...e-admin/src/main/resources/mapper/BranchCompanyMapper.xml
+1
-0
Vehicle.java
...c/main/java/com/xxfc/platform/vehicle/entity/Vehicle.java
+4
-0
VehicleExtensionVO.java
...com/xxfc/platform/vehicle/pojo/vo/VehicleExtensionVO.java
+1
-1
VehicleApplyBiz.java
...n/java/com/xxfc/platform/vehicle/biz/VehicleApplyBiz.java
+9
-2
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+2
-2
VehicleExtensionBiz.java
...va/com/xxfc/platform/vehicle/biz/VehicleExtensionBiz.java
+3
-1
VehicleExtensionMapper.xml
...rver/src/main/resources/mapper/VehicleExtensionMapper.xml
+7
-3
No files found.
ace-modules/ace-admin/src/main/resources/mapper/BranchCompanyMapper.xml
View file @
66cc4779
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
</foreach>
</foreach>
</if>
</if>
</where>
</where>
GROUP BY c.id
<choose>
<choose>
<when
test=
"lon != null and lat != null"
>
<when
test=
"lon != null and lat != null"
>
order by distance asc
order by distance asc
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/Vehicle.java
View file @
66cc4779
...
@@ -325,4 +325,8 @@ public class Vehicle {
...
@@ -325,4 +325,8 @@ public class Vehicle {
@ApiModelProperty
(
"扩展信息list"
)
@ApiModelProperty
(
"扩展信息list"
)
private
String
extensionList
;
private
String
extensionList
;
@Transient
@ApiModelProperty
(
"申请id"
)
private
Integer
vehicleApplyId
;
}
}
\ No newline at end of file
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleExtensionVO.java
View file @
66cc4779
...
@@ -25,7 +25,7 @@ public class VehicleExtensionVO extends VehicleExtension {
...
@@ -25,7 +25,7 @@ public class VehicleExtensionVO extends VehicleExtension {
private
Integer
isParentSelected
;
private
Integer
isParentSelected
;
@ApiModelProperty
(
"客户是否多选:0-否,1-是"
)
@ApiModelProperty
(
"客户是否多选:0-否,1-是"
)
private
Integer
isMore
;
private
Integer
is
Input
More
;
public
List
<
VehicleExtensionVO
>
children
;
public
List
<
VehicleExtensionVO
>
children
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleApplyBiz.java
View file @
66cc4779
...
@@ -45,10 +45,10 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
...
@@ -45,10 +45,10 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
throw
new
BaseException
(
"参数不能为空"
,
ResultCode
.
FAILED_CODE
);
throw
new
BaseException
(
"参数不能为空"
,
ResultCode
.
FAILED_CODE
);
}
}
String
vehicleId
=
StringUtils
.
isBlank
(
vehicle
.
getId
())
?
""
:
vehicle
.
getId
();
String
vehicleId
=
StringUtils
.
isBlank
(
vehicle
.
getId
())
?
""
:
vehicle
.
getId
();
List
<
Vehicle
>
list
=
vehicleBiz
.
getListByExample
(
vehicleId
,
vehicle
.
getName
());
/*
List<Vehicle> list=vehicleBiz.getListByExample(vehicleId,vehicle.getName());
if (list.size() > 0){
if (list.size() > 0){
throw new BaseException("公司名称不能重复",ResultCode.FAILED_CODE);
throw new BaseException("公司名称不能重复",ResultCode.FAILED_CODE);
}
}
*/
VehicleApply
vehicleApply
=
new
VehicleApply
();
VehicleApply
vehicleApply
=
new
VehicleApply
();
BeanUtils
.
copyProperties
(
vehicle
,
vehicleApply
);
BeanUtils
.
copyProperties
(
vehicle
,
vehicleApply
);
Integer
formType
=
2
;
Integer
formType
=
2
;
...
@@ -69,6 +69,13 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
...
@@ -69,6 +69,13 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
vehicleApply
.
setVehicleId
(
vehicleId
);
vehicleApply
.
setVehicleId
(
vehicleId
);
vehicleApply
.
setId
(
null
);
vehicleApply
.
setId
(
null
);
insertSelective
(
vehicleApply
);
insertSelective
(
vehicleApply
);
Integer
vehicleApplyId
=
vehicle
.
getVehicleApplyId
()
==
null
?
0
:
vehicle
.
getVehicleApplyId
();
if
(
vehicleApplyId
>
0
){
VehicleApply
vehicleApply1
=
new
VehicleApply
();
vehicleApply1
.
setId
(
vehicleApplyId
);
vehicleApply1
.
setIsDel
(
1
);
updateSelectiveById
(
vehicleApply1
);
}
return
vehicleApply
;
return
vehicleApply
;
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
66cc4779
...
@@ -1609,10 +1609,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -1609,10 +1609,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
public
String
addOrUpd
(
VehicleApply
vehicleApply
){
public
String
addOrUpd
(
VehicleApply
vehicleApply
){
String
vehicleId
=
StringUtils
.
isBlank
(
vehicleApply
.
getVehicleId
())
?
""
:
vehicleApply
.
getVehicleId
();
String
vehicleId
=
StringUtils
.
isBlank
(
vehicleApply
.
getVehicleId
())
?
""
:
vehicleApply
.
getVehicleId
();
List
<
Vehicle
>
list
=
getListByExample
(
vehicleId
,
vehicleApply
.
getName
());
/*
List<Vehicle> list=getListByExample(vehicleId,vehicleApply.getName());
if (list.size() > 0){
if (list.size() > 0){
throw new BaseException("公司名称不能重复", ResultCode.FAILED_CODE);
throw new BaseException("公司名称不能重复", ResultCode.FAILED_CODE);
}
}
*/
Vehicle
vehicle
=
JSONUtil
.
toBean
(
vehicleApply
.
getChangeJson
(),
Vehicle
.
class
);
Vehicle
vehicle
=
JSONUtil
.
toBean
(
vehicleApply
.
getChangeJson
(),
Vehicle
.
class
);
if
(
StringUtils
.
isNotBlank
(
vehicleId
)){
if
(
StringUtils
.
isNotBlank
(
vehicleId
)){
vehicle
.
setExtensionList
(
null
);
vehicle
.
setExtensionList
(
null
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleExtensionBiz.java
View file @
66cc4779
...
@@ -116,7 +116,9 @@ public class VehicleExtensionBiz extends BaseBiz<VehicleEextensionMapper, Vehicl
...
@@ -116,7 +116,9 @@ public class VehicleExtensionBiz extends BaseBiz<VehicleEextensionMapper, Vehicl
}
else
{
}
else
{
VehicleApply
vehicleApply
=
vehicleApplyBiz
.
selectById
(
extensionFindDTO
.
getVehicleApplyId
());
VehicleApply
vehicleApply
=
vehicleApplyBiz
.
selectById
(
extensionFindDTO
.
getVehicleApplyId
());
extensionFindDTO
.
setGoodsType
(
vehicleApply
.
getGoodsType
());
extensionFindDTO
.
setGoodsType
(
vehicleApply
.
getGoodsType
());
extensionFindDTO
.
setCataIds
(
Arrays
.
asList
(
vehicleApply
.
getExtensionList
().
split
(
","
)).
parallelStream
().
map
(
s
->
Integer
.
valueOf
(
s
)).
collect
(
Collectors
.
toList
()));
if
(
StringUtils
.
isNotBlank
(
vehicleApply
.
getExtensionList
())){
extensionFindDTO
.
setCataIds
(
Arrays
.
asList
(
vehicleApply
.
getExtensionList
().
split
(
","
)).
parallelStream
().
map
(
s
->
Integer
.
valueOf
(
s
)).
collect
(
Collectors
.
toList
()));
}
}
}
extensionFindDTO
.
setParentId
(
0
);
extensionFindDTO
.
setParentId
(
0
);
List
<
VehicleExtensionVO
>
vehicleExtensionVOS
=
mapper
.
selectListByPlatCata
(
extensionFindDTO
);
List
<
VehicleExtensionVO
>
vehicleExtensionVOS
=
mapper
.
selectListByPlatCata
(
extensionFindDTO
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleExtensionMapper.xml
View file @
66cc4779
...
@@ -87,15 +87,19 @@
...
@@ -87,15 +87,19 @@
SELECT
SELECT
c.id,
c.id,
c.`name` as cataName,
c.`name` as cataName,
c.`is_
more` as is
More,
c.`is_
input_more` as isInput
More,
<choose>
<choose>
<when
test=
"vehicleId != null and vehicleId != ''"
>
<when
test=
"vehicleId != null and vehicleId != ''"
>
IF(e.cata_id is NULL,0,1) as isSelected,
IF(e.cata_id is NULL,0,1) as isSelected,
IF(e1.cata_id is NULL,0,1) as isParentSelected
IF(e1.cata_id is NULL,0,1) as isParentSelected
</when>
</when>
<when
test=
"cataIds != null and cataIds.size() > 0"
>
IF(e.cata_id is NULL,0,1) as isSelected,
IF(e1.cata_id is NULL,0,1) as isParentSelected
</when>
<otherwise>
<otherwise>
IF(c2.id is NULL,0,1)
as isSelected,
0
as isSelected,
IF(c1.parent_id is NULL,0,1)
as isParentSelected
0
as isParentSelected
</otherwise>
</otherwise>
</choose>
</choose>
...
...
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