Commit 39114f9c authored by jiaorz's avatar jiaorz

新增交还车订单接口

parent 88674b24
package com.xxfc.platform.order.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import javax.persistence.*;
@Table(name = "order_vehicle_crosstown")
@Data
@RequiredArgsConstructor
public class OrderVehicaleCrosstown {
/**
* 主键id
*/
@Id
private Integer id;
/**
* 订单id
*/
@Column(name = "order_id")
private Integer orderId;
/**
* 订单号
*/
@Column(name = "order_no")
private String orderNo;
/**
* 驾驶人
*/
@Column(name = "license_name")
private String licenseName;
/**
* 驾驶人手机号
*/
@Column(name = "license_phone")
private String licensePhone;
/**
* 驾驶证照
*/
@Column(name = "license_img")
private String licenseImg;
/**
* 公里数(公里)
*/
private Integer mileage;
/**
* 公里数取证照
*/
@Column(name = "mileage_img")
private String mileageImg;
/**
* 审核状态;0-未审核;1-已审核
*/
private Boolean status;
/**
* 审核时间
*/
@Column(name = "status_time")
private Long statusTime;
/**
* 审核名称
*/
@Column(name = "status_name")
private String statusName;
/**
* 审核人id
*/
@Column(name = "status_id")
private Integer statusId;
/**
* 是否删除;0-正常;1-删除
*/
@Column(name = "is_del")
private Boolean isDel;
/**
* 取证图片
*/
private String imgs;
/**
* 备注
*/
private String remak;
/**
* 创建时间
*/
private Long crtTime;
/**
* 更新时间
*/
private Long updTime;
/**
* 钥匙图片
*/
private String vehicleKey;
/**
* 是否有扣除项
*/
private Boolean isDed;
/**
* 扣除项明细
*/
private String dedDetail;
/**
* 驾驶人身份证号
*/
private String licenseIdCard;
/**
* 1、交车, 2、还车
*/
private Integer type;
}
\ No newline at end of file
package com.xxfc.platform.order.mapper;
import com.xxfc.platform.order.entity.OrderVehicaleCrosstown;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface OrderVehicaleCrosstownMapper extends Mapper<OrderVehicaleCrosstown> {
List<OrderVehicaleCrosstown> selectByOrderId(OrderVehicaleCrosstown orderVehicaleCrosstown);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xxfc.platform.order.mapper.OrderVehicaleCrosstownMapper">
<resultMap id="BaseResultMap" type="com.xxfc.platform.order.entity.OrderVehicaleCrosstown">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="order_id" jdbcType="INTEGER" property="orderId" />
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
<result column="license_name" jdbcType="VARCHAR" property="licenseName" />
<result column="license_phone" jdbcType="VARCHAR" property="licensePhone" />
<result column="license_img" jdbcType="VARCHAR" property="licenseImg" />
<result column="mileage" jdbcType="INTEGER" property="mileage" />
<result column="mileage_img" jdbcType="VARCHAR" property="mileageImg" />
<result column="status" jdbcType="BIT" property="status" />
<result column="status_time" jdbcType="BIGINT" property="statusTime" />
<result column="status_name" jdbcType="VARCHAR" property="statusName" />
<result column="status_id" jdbcType="INTEGER" property="statusId" />
<result column="is_del" jdbcType="BIT" property="isDel" />
<result column="imgs" jdbcType="LONGVARCHAR" property="imgs" />
<result column="remak" jdbcType="LONGVARCHAR" property="remak" />
<result column="crt_time" jdbcType="BIGINT" property="crtTime" />
<result column="upd_time" jdbcType="BIGINT" property="updTime" />
<result column="vehicle_key" jdbcType="LONGVARCHAR" property="vehicleKey"/>
<result column="license_id_card" jdbcType="VARCHAR" property="licenseIdCard"/>
<result column="is_ded" jdbcType="BIT" property="isDeD" />
<result column="ded_detail" jdbcType="LONGVARCHAR" property="dedDetail" />
<result column="type" jdbcType="INTEGER" property="type"/>
</resultMap>
<select id="selectByOrderId" parameterType="com.xxfc.platform.order.entity.OrderVehicaleCrosstown" resultMap="BaseResultMap">
select *
from order_vehicle_crosstown
<where>
<if test="status != null">
and status = #{status}
</if>
<if test="type != null">
and type = #{type}
</if>
<if test="orderId != null">
and order_id = #{orderId}
</if>
<if test="orderNo != null">
and order_no = #{orderNo}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment