Commit 4f2b2053 by tyfanchz

车家智能相关功能开发

1 parent ba22447c
package com.glsx.smart.dao.entity;
import javax.persistence.*;
import lombok.Data;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-17
*/
@Data
@Table(name = "smart_device_order")
public class SmartDeviceOrder {
@Id
@Column(name = "id")
private Integer id;
/**
* 产品id
*/
@Column(name = "product_id")
private String productId;
@Column(name = "order_code")
private String orderCode;
@Column(name = "order_value")
private String orderValue;
/**
* 设备类型 1.非固定值不需要查询 2.固定值需要查询
*/
@Column(name = "order_type")
private String orderType;
}
\ No newline at end of file
package com.glsx.smart.dao.mapper;
import com.glsx.smart.dao.entity.SmartDeviceOrder;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-17
*/
@Mapper
public interface SmartDeviceOrderMapper extends tk.mybatis.mapper.common.Mapper<SmartDeviceOrder> {
}
\ No newline at end of file
package com.glsx.smart.service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-17
*/
public interface SmartDeviceOrderService{
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import com.glsx.smart.dao.mapper.SmartDeviceOrderMapper;
import com.glsx.smart.service.SmartDeviceOrderService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-17
*/
@Service
public class SmartDeviceOrderServiceImpl implements SmartDeviceOrderService{
@Resource
private SmartDeviceOrderMapper smartDeviceOrderMapper;
}
<?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.glsx.smart.dao.mapper.SmartDeviceOrderMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartDeviceOrder">
<!--@mbg.generated generated on Wed Mar 17 10:38:04 CST 2021.-->
<!--@Table smart_device_order-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="product_id" jdbcType="VARCHAR" property="productId"/>
<result column="order_code" jdbcType="VARCHAR" property="orderCode"/>
<result column="order_value" jdbcType="VARCHAR" property="orderValue"/>
<result column="order_type" jdbcType="VARCHAR" property="orderType"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated generated on Wed Mar 17 10:38:04 CST 2021.-->
id, product_id, order_code, order_value, order_type
</sql>
</mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!