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
606bb93a
Commit
606bb93a
authored
Oct 26, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
8b76969a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
1 deletion
+34
-1
VehicleVO.java
...ain/java/com/xxfc/platform/vehicle/pojo/vo/VehicleVO.java
+7
-0
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+4
-0
VehicleManageApplyBiz.java
.../com/xxfc/platform/vehicle/biz/VehicleManageApplyBiz.java
+16
-0
VehicleMapper.java
.../java/com/xxfc/platform/vehicle/mapper/VehicleMapper.java
+5
-0
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+2
-1
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleVO.java
View file @
606bb93a
...
@@ -24,6 +24,13 @@ public class VehicleVO extends Vehicle {
...
@@ -24,6 +24,13 @@ public class VehicleVO extends Vehicle {
@ApiModelProperty
(
"所属店铺名称"
)
@ApiModelProperty
(
"所属店铺名称"
)
private
String
companyName
;
private
String
companyName
;
@ApiModelProperty
(
"所属店铺联系人"
)
private
String
companyLeader
;
@ApiModelProperty
(
"所属店铺联系电话"
)
private
String
companyLeaderContact
;
@ApiModelProperty
(
"经营店铺名称"
)
@ApiModelProperty
(
"经营店铺名称"
)
private
String
manageCompanyName
;
private
String
manageCompanyName
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
606bb93a
...
@@ -1777,6 +1777,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -1777,6 +1777,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
return
mapper
.
countByCompamyId
(
companyId
);
return
mapper
.
countByCompamyId
(
companyId
);
}
}
public
int
setState
(
String
vehicleId
,
Integer
state
){
return
mapper
.
setState
(
vehicleId
,
state
);
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleManageApplyBiz.java
View file @
606bb93a
...
@@ -6,6 +6,7 @@ import com.xxfc.platform.vehicle.entity.Area;
...
@@ -6,6 +6,7 @@ import com.xxfc.platform.vehicle.entity.Area;
import
com.xxfc.platform.vehicle.entity.VehicleManageApply
;
import
com.xxfc.platform.vehicle.entity.VehicleManageApply
;
import
com.xxfc.platform.vehicle.mapper.VehicleManageApplyMapper
;
import
com.xxfc.platform.vehicle.mapper.VehicleManageApplyMapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example
;
...
@@ -15,6 +16,10 @@ import java.util.List;
...
@@ -15,6 +16,10 @@ import java.util.List;
public
class
VehicleManageApplyBiz
extends
BaseBiz
<
VehicleManageApplyMapper
,
VehicleManageApply
>
{
public
class
VehicleManageApplyBiz
extends
BaseBiz
<
VehicleManageApplyMapper
,
VehicleManageApply
>
{
@Autowired
VehicleBiz
vehicleBiz
;
public
List
<
VehicleManageApply
>
getManageApply
(
VehicleManageApply
vehicleManageApply
){
public
List
<
VehicleManageApply
>
getManageApply
(
VehicleManageApply
vehicleManageApply
){
...
@@ -40,4 +45,15 @@ public class VehicleManageApplyBiz extends BaseBiz<VehicleManageApplyMapper, Veh
...
@@ -40,4 +45,15 @@ public class VehicleManageApplyBiz extends BaseBiz<VehicleManageApplyMapper, Veh
}
}
public
void
applyManage
(
VehicleManageApply
vehicleManageApply
){
Integer
type
=
vehicleManageApply
.
getType
()
==
null
?
1
:
vehicleManageApply
.
getType
();
if
(
type
==
2
){
vehicleBiz
.
setState
(
vehicleManageApply
.
getVehicleId
(),
2
);
}
}
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/mapper/VehicleMapper.java
View file @
606bb93a
...
@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.pojo.dto.VehiclePlanDto;
...
@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.pojo.dto.VehiclePlanDto;
import
com.xxfc.platform.vehicle.pojo.vo.UsableVeicleVO
;
import
com.xxfc.platform.vehicle.pojo.vo.UsableVeicleVO
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleVO
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleVO
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Update
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.data.repository.query.Param
;
import
tk.mybatis.mapper.common.Mapper
;
import
tk.mybatis.mapper.common.Mapper
;
...
@@ -72,4 +73,8 @@ public interface VehicleMapper extends Mapper<Vehicle> {
...
@@ -72,4 +73,8 @@ public interface VehicleMapper extends Mapper<Vehicle> {
@Select
(
"SELECT goods_type FROM vehicle WHERE subordinate_branch=#{commpanyId} AND is_del=0 GROUP BY goods_type"
)
@Select
(
"SELECT goods_type FROM vehicle WHERE subordinate_branch=#{commpanyId} AND is_del=0 GROUP BY goods_type"
)
List
<
Integer
>
goodTypes
(
@Param
(
"commpanyId"
)
Integer
commpanyId
);
List
<
Integer
>
goodTypes
(
@Param
(
"commpanyId"
)
Integer
commpanyId
);
@Update
(
"update vehicle set state=#{state} WHERE id=#{vehicleId} "
)
int
setState
(
@Param
(
"vehicleId"
)
String
vehicleId
,
@Param
(
"state"
)
Integer
state
);
}
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
606bb93a
...
@@ -1297,7 +1297,8 @@
...
@@ -1297,7 +1297,8 @@
v.*,
v.*,
b.cn_name as brandName,
b.cn_name as brandName,
c.`name` categoryName,
c.`name` categoryName,
bc.`name` as companyName,
bc.`leader` as companyLeader,
bc.`leader_contact_info` as companyLeaderContact,
bc1.`name` as manageCompanyName,
bc1.`name` as manageCompanyName,
bc2.`name` as parkCompanyName
bc2.`name` as parkCompanyName
FROM vehicle v
FROM vehicle v
...
...
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