初始化仓库
parent
f56163e112
commit
42ee237c55
|
@ -14,6 +14,7 @@ import java.util.Date;
|
||||||
@TableName(value = "sys_car_log",autoResultMap = true)
|
@TableName(value = "sys_car_log",autoResultMap = true)
|
||||||
public class SysCarLog {
|
public class SysCarLog {
|
||||||
|
|
||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
private String carVin;
|
private String carVin;
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
|
|
@ -15,4 +15,5 @@ public class SysCarReq {
|
||||||
private String carMotorModel;
|
private String carMotorModel;
|
||||||
private String carBatteryManufacturer;
|
private String carBatteryManufacturer;
|
||||||
private String carBatteryModel;
|
private String carBatteryModel;
|
||||||
|
private String state;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.muyu.service.impl;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.muyu.domain.SysCar;
|
import com.muyu.domain.SysCar;
|
||||||
import com.muyu.domain.req.SysCarReq;
|
import com.muyu.domain.req.SysCarReq;
|
||||||
|
|
||||||
import com.muyu.domain.resp.SysCarVo;
|
import com.muyu.domain.resp.SysCarVo;
|
||||||
import com.muyu.mapper.SysCarMapper;
|
import com.muyu.mapper.SysCarMapper;
|
||||||
import com.muyu.service.SysCarService;
|
import com.muyu.service.SysCarService;
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.muyu.mapper.SysCarMapper">
|
<mapper namespace="com.muyu.mapper.SysCarMapper">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectSysCarVoById" resultType="com.muyu.domain.resp.SysCarVo">
|
||||||
|
SELECT * ,car_type.type_name,tb_fence.fence_name
|
||||||
|
FROM `sys_car`
|
||||||
|
LEFT JOIN car_type ON sys_car.car_type_id=car_type.id
|
||||||
|
LEFT JOIN tb_fence ON sys_car.fence_id=tb_fence.fence_id
|
||||||
|
where sys_car.id=#{id}
|
||||||
|
</select>
|
||||||
<select id="selectSysCarVoList" resultType="com.muyu.domain.resp.SysCarVo">
|
<select id="selectSysCarVoList" resultType="com.muyu.domain.resp.SysCarVo">
|
||||||
SELECT * ,car_type.type_name,tb_fence.fence_name
|
SELECT * ,car_type.type_name,tb_fence.fence_name
|
||||||
FROM `sys_car`
|
FROM `sys_car`
|
||||||
|
@ -29,13 +39,4 @@
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectSysCarVoById" resultType="com.muyu.domain.resp.SysCarVo">
|
|
||||||
SELECT * ,car_type.type_name,tb_fence.fence_name
|
|
||||||
FROM `sys_car`
|
|
||||||
LEFT JOIN car_type ON sys_car.car_type_id=car_type.id
|
|
||||||
LEFT JOIN tb_fence ON sys_car.fence_id=tb_fence.fence_id
|
|
||||||
where sys_car.id=#{id}
|
|
||||||
</select>
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue