Authored by mali

鉴定服务

  1 +package com.yoho.order.dal;
  2 +
  3 +
  4 +import com.yoho.order.model.AppraiseOrderGoods;
  5 +
  6 +public interface AppraiseOrderGoodsMapper {
  7 +
  8 + AppraiseOrderGoods selectByPrimaryKey(Integer id);
  9 +
  10 + int updateByPrimaryKey(AppraiseOrderGoods record);
  11 +}
  1 +package com.yoho.order.dal;
  2 +
  3 +
  4 +import com.yoho.order.model.AppraiseOrder;
  5 +
  6 +public interface AppraiseOrderMapper {
  7 +
  8 + int insert(AppraiseOrder record);
  9 +
  10 + int insertSelective(AppraiseOrder record);
  11 +
  12 + AppraiseOrder selectByPrimaryKey(Integer id);
  13 +
  14 + int updateByPrimaryKeySelective(AppraiseOrder record);
  15 +
  16 + int updateByPrimaryKey(AppraiseOrder record);
  17 +}
  1 +package com.yoho.order.model;
  2 +
  3 +import java.math.BigDecimal;
  4 +
  5 +public class AppraiseOrder {
  6 + private Integer id;
  7 +
  8 + private Integer uid;
  9 +
  10 + private Long orderCode;
  11 +
  12 + private Byte clientType;
  13 +
  14 + private Byte payment;
  15 +
  16 + private BigDecimal amount;
  17 +
  18 + private BigDecimal shipFee;
  19 +
  20 + private Byte status;
  21 +
  22 + private Integer createTime;
  23 +
  24 + private Integer updateTime;
  25 +
  26 + private Byte isDel;
  27 +
  28 + private String channelNo;
  29 +
  30 + public Integer getId() {
  31 + return id;
  32 + }
  33 +
  34 + public void setId(Integer id) {
  35 + this.id = id;
  36 + }
  37 +
  38 + public Integer getUid() {
  39 + return uid;
  40 + }
  41 +
  42 + public void setUid(Integer uid) {
  43 + this.uid = uid;
  44 + }
  45 +
  46 + public Long getOrderCode() {
  47 + return orderCode;
  48 + }
  49 +
  50 + public void setOrderCode(Long orderCode) {
  51 + this.orderCode = orderCode;
  52 + }
  53 +
  54 + public Byte getClientType() {
  55 + return clientType;
  56 + }
  57 +
  58 + public void setClientType(Byte clientType) {
  59 + this.clientType = clientType;
  60 + }
  61 +
  62 + public Byte getPayment() {
  63 + return payment;
  64 + }
  65 +
  66 + public void setPayment(Byte payment) {
  67 + this.payment = payment;
  68 + }
  69 +
  70 + public BigDecimal getAmount() {
  71 + return amount;
  72 + }
  73 +
  74 + public void setAmount(BigDecimal amount) {
  75 + this.amount = amount;
  76 + }
  77 +
  78 + public BigDecimal getShipFee() {
  79 + return shipFee;
  80 + }
  81 +
  82 + public void setShipFee(BigDecimal shipFee) {
  83 + this.shipFee = shipFee;
  84 + }
  85 +
  86 + public Byte getStatus() {
  87 + return status;
  88 + }
  89 +
  90 + public void setStatus(Byte status) {
  91 + this.status = status;
  92 + }
  93 +
  94 + public Integer getCreateTime() {
  95 + return createTime;
  96 + }
  97 +
  98 + public void setCreateTime(Integer createTime) {
  99 + this.createTime = createTime;
  100 + }
  101 +
  102 + public Integer getUpdateTime() {
  103 + return updateTime;
  104 + }
  105 +
  106 + public void setUpdateTime(Integer updateTime) {
  107 + this.updateTime = updateTime;
  108 + }
  109 +
  110 + public Byte getIsDel() {
  111 + return isDel;
  112 + }
  113 +
  114 + public void setIsDel(Byte isDel) {
  115 + this.isDel = isDel;
  116 + }
  117 +
  118 + public String getChannelNo() {
  119 + return channelNo;
  120 + }
  121 +
  122 + public void setChannelNo(String channelNo) {
  123 + this.channelNo = channelNo == null ? null : channelNo.trim();
  124 + }
  125 +}
  1 +package com.yoho.order.model;
  2 +
  3 +public class AppraiseOrderGoods {
  4 + private Integer id;
  5 +
  6 + private Long orderCode;
  7 +
  8 + private Integer productId;
  9 +
  10 + private String productName;
  11 +
  12 + private String productCode;
  13 +
  14 + private String imageUrl;
  15 +
  16 + public Integer getId() {
  17 + return id;
  18 + }
  19 +
  20 + public void setId(Integer id) {
  21 + this.id = id;
  22 + }
  23 +
  24 + public Long getOrderCode() {
  25 + return orderCode;
  26 + }
  27 +
  28 + public void setOrderCode(Long orderCode) {
  29 + this.orderCode = orderCode;
  30 + }
  31 +
  32 + public Integer getProductId() {
  33 + return productId;
  34 + }
  35 +
  36 + public void setProductId(Integer productId) {
  37 + this.productId = productId;
  38 + }
  39 +
  40 + public String getProductName() {
  41 + return productName;
  42 + }
  43 +
  44 + public void setProductName(String productName) {
  45 + this.productName = productName == null ? null : productName.trim();
  46 + }
  47 +
  48 + public String getProductCode() {
  49 + return productCode;
  50 + }
  51 +
  52 + public void setProductCode(String productCode) {
  53 + this.productCode = productCode == null ? null : productCode.trim();
  54 + }
  55 +
  56 + public String getImageUrl() {
  57 + return imageUrl;
  58 + }
  59 +
  60 + public void setImageUrl(String imageUrl) {
  61 + this.imageUrl = imageUrl == null ? null : imageUrl.trim();
  62 + }
  63 +}
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.yoho.order.dal.AppraiseOrderGoodsMapper">
  4 + <resultMap id="BaseResultMap" type="com.yoho.order.model.AppraiseOrderGoods">
  5 + <id column="id" jdbcType="INTEGER" property="id" />
  6 + <result column="order_code" jdbcType="BIGINT" property="orderCode" />
  7 + <result column="product_id" jdbcType="INTEGER" property="productId" />
  8 + <result column="product_name" jdbcType="VARCHAR" property="productName" />
  9 + <result column="product_code" jdbcType="VARCHAR" property="productCode" />
  10 + <result column="image_url" jdbcType="VARCHAR" property="imageUrl" />
  11 + </resultMap>
  12 + <sql id="Base_Column_List">
  13 + id, order_code, product_id, product_name, product_code, image_url
  14 + </sql>
  15 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  16 + select
  17 + <include refid="Base_Column_List" />
  18 + from appraise_order_goods
  19 + where id = #{id,jdbcType=INTEGER}
  20 + </select>
  21 +
  22 +
  23 + <update id="updateByPrimaryKeySelective" parameterType="com.yoho.order.model.AppraiseOrderGoods">
  24 + update appraise_order_goods
  25 + <set>
  26 + <if test="orderCode != null">
  27 + order_code = #{orderCode,jdbcType=BIGINT},
  28 + </if>
  29 + <if test="productId != null">
  30 + product_id = #{productId,jdbcType=INTEGER},
  31 + </if>
  32 + <if test="productName != null">
  33 + product_name = #{productName,jdbcType=VARCHAR},
  34 + </if>
  35 + <if test="productCode != null">
  36 + product_code = #{productCode,jdbcType=VARCHAR},
  37 + </if>
  38 + <if test="imageUrl != null">
  39 + image_url = #{imageUrl,jdbcType=VARCHAR},
  40 + </if>
  41 + </set>
  42 + where id = #{id,jdbcType=INTEGER}
  43 + </update>
  44 + <update id="updateByPrimaryKey" parameterType="com.yoho.order.model.AppraiseOrderGoods">
  45 + update appraise_order_goods
  46 + set order_code = #{orderCode,jdbcType=BIGINT},
  47 + product_id = #{productId,jdbcType=INTEGER},
  48 + product_name = #{productName,jdbcType=VARCHAR},
  49 + product_code = #{productCode,jdbcType=VARCHAR},
  50 + image_url = #{imageUrl,jdbcType=VARCHAR}
  51 + where id = #{id,jdbcType=INTEGER}
  52 + </update>
  53 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.yoho.order.dal.AppraiseOrderMapper">
  4 + <resultMap id="BaseResultMap" type="com.yoho.order.model.AppraiseOrder">
  5 + <id column="id" jdbcType="INTEGER" property="id" />
  6 + <result column="uid" jdbcType="INTEGER" property="uid" />
  7 + <result column="order_code" jdbcType="BIGINT" property="orderCode" />
  8 + <result column="client_type" jdbcType="TINYINT" property="clientType" />
  9 + <result column="payment" jdbcType="TINYINT" property="payment" />
  10 + <result column="amount" jdbcType="DECIMAL" property="amount" />
  11 + <result column="ship_fee" jdbcType="DECIMAL" property="shipFee" />
  12 + <result column="status" jdbcType="TINYINT" property="status" />
  13 + <result column="create_time" jdbcType="INTEGER" property="createTime" />
  14 + <result column="update_time" jdbcType="INTEGER" property="updateTime" />
  15 + <result column="is_del" jdbcType="TINYINT" property="isDel" />
  16 + <result column="channel_no" jdbcType="VARCHAR" property="channelNo" />
  17 + </resultMap>
  18 + <sql id="Base_Column_List">
  19 + id, uid, order_code, client_type, payment, amount, ship_fee, status, create_time,
  20 + update_time, is_del, channel_no
  21 + </sql>
  22 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  23 + select
  24 + <include refid="Base_Column_List" />
  25 + from appraise_order
  26 + where id = #{id,jdbcType=INTEGER}
  27 + </select>
  28 +
  29 +
  30 + <update id="updateByPrimaryKey" parameterType="com.yoho.order.model.AppraiseOrder">
  31 + update appraise_order
  32 + set uid = #{uid,jdbcType=INTEGER},
  33 + order_code = #{orderCode,jdbcType=BIGINT},
  34 + client_type = #{clientType,jdbcType=TINYINT},
  35 + payment = #{payment,jdbcType=TINYINT},
  36 + amount = #{amount,jdbcType=DECIMAL},
  37 + ship_fee = #{shipFee,jdbcType=DECIMAL},
  38 + status = #{status,jdbcType=TINYINT},
  39 + create_time = #{createTime,jdbcType=INTEGER},
  40 + update_time = #{updateTime,jdbcType=INTEGER},
  41 + is_del = #{isDel,jdbcType=TINYINT},
  42 + channel_no = #{channelNo,jdbcType=VARCHAR}
  43 + where id = #{id,jdbcType=INTEGER}
  44 + </update>
  45 +</mapper>