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 6e8ebf7a
authored
Aug 23, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增车辆-车型管理
1 parent
54f8a5e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/mapper/TenantVehicleTypeMapper.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/resources/mapper/TenantVehicleTypeMapper.xml
src/main/java/cn/com/glsx/admin/modules/mapper/TenantVehicleTypeMapper.java
View file @
6e8ebf7
...
...
@@ -38,4 +38,6 @@ public interface TenantVehicleTypeMapper extends CommonBaseMapper<TenantVehicleT
*/
int
logicDeleteByTenantId
(
@Param
(
"tenantId"
)
Long
tenantId
);
int
deleteByTenantId
(
@Param
(
"tenantId"
)
Long
tenantId
);
}
\ No newline at end of file
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
6e8ebf7
...
...
@@ -824,7 +824,7 @@ public class VehicleService {
}
});
if
(
CollectionUtils
.
isNotEmpty
(
tvTypeList
))
{
tenantVehicleTypeMapper
.
logicD
eleteByTenantId
(
typesBO
.
getTenantId
());
tenantVehicleTypeMapper
.
d
eleteByTenantId
(
typesBO
.
getTenantId
());
tenantVehicleTypeMapper
.
insertList
(
tvTypeList
);
}
...
...
src/main/resources/mapper/TenantVehicleTypeMapper.xml
View file @
6e8ebf7
...
...
@@ -49,6 +49,7 @@
)
</if>
group by tenant_id, name
order by created_date desc
</select>
<select
id=
"selectByTypeId"
resultMap=
"BaseResultMap"
>
...
...
@@ -68,7 +69,7 @@
from t_tenant_vehicle_type
where del_flag = 0
and tenant_id = #{tenantId}
group by tenant_id
, name
group by tenant_id
</select>
<select
id=
"selectBrandByTenantIds"
resultType=
"com.glsx.biz.common.base.entity.CarInfoSelected"
>
...
...
@@ -116,6 +117,7 @@
</foreach>
and series_id = #{seriesId}
group by type_id,type_name
order by type_id desc
</select>
<update
id=
"logicDeleteByTenantId"
>
...
...
@@ -123,4 +125,10 @@
set del_flag = -1
where tenant_id = #{tenantId}
</update>
<delete
id=
"deleteByTenantId"
>
delete
from t_tenant_vehicle_type
where tenant_id = #{tenantId}
</delete>
</mapper>
\ No newline at end of file
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