Authored by mali

鉴定服务

package com.yoho.order.dal;
import com.yoho.order.model.AppraiseOrderGoods;
public interface AppraiseOrderGoodsMapper {
AppraiseOrderGoods selectByPrimaryKey(Integer id);
int updateByPrimaryKey(AppraiseOrderGoods record);
}
\ No newline at end of file
... ...
package com.yoho.order.dal;
import com.yoho.order.model.AppraiseOrder;
public interface AppraiseOrderMapper {
int insert(AppraiseOrder record);
int insertSelective(AppraiseOrder record);
AppraiseOrder selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(AppraiseOrder record);
int updateByPrimaryKey(AppraiseOrder record);
}
\ No newline at end of file
... ...
package com.yoho.order.model;
import java.math.BigDecimal;
public class AppraiseOrder {
private Integer id;
private Integer uid;
private Long orderCode;
private Byte clientType;
private Byte payment;
private BigDecimal amount;
private BigDecimal shipFee;
private Byte status;
private Integer createTime;
private Integer updateTime;
private Byte isDel;
private String channelNo;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUid() {
return uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public Long getOrderCode() {
return orderCode;
}
public void setOrderCode(Long orderCode) {
this.orderCode = orderCode;
}
public Byte getClientType() {
return clientType;
}
public void setClientType(Byte clientType) {
this.clientType = clientType;
}
public Byte getPayment() {
return payment;
}
public void setPayment(Byte payment) {
this.payment = payment;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public BigDecimal getShipFee() {
return shipFee;
}
public void setShipFee(BigDecimal shipFee) {
this.shipFee = shipFee;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public Integer getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Integer updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public String getChannelNo() {
return channelNo;
}
public void setChannelNo(String channelNo) {
this.channelNo = channelNo == null ? null : channelNo.trim();
}
}
\ No newline at end of file
... ...
package com.yoho.order.model;
public class AppraiseOrderGoods {
private Integer id;
private Long orderCode;
private Integer productId;
private String productName;
private String productCode;
private String imageUrl;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Long getOrderCode() {
return orderCode;
}
public void setOrderCode(Long orderCode) {
this.orderCode = orderCode;
}
public Integer getProductId() {
return productId;
}
public void setProductId(Integer productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName == null ? null : productName.trim();
}
public String getProductCode() {
return productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode == null ? null : productCode.trim();
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl == null ? null : imageUrl.trim();
}
}
\ 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.yoho.order.dal.AppraiseOrderGoodsMapper">
<resultMap id="BaseResultMap" type="com.yoho.order.model.AppraiseOrderGoods">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="order_code" jdbcType="BIGINT" property="orderCode" />
<result column="product_id" jdbcType="INTEGER" property="productId" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="product_code" jdbcType="VARCHAR" property="productCode" />
<result column="image_url" jdbcType="VARCHAR" property="imageUrl" />
</resultMap>
<sql id="Base_Column_List">
id, order_code, product_id, product_name, product_code, image_url
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from appraise_order_goods
where id = #{id,jdbcType=INTEGER}
</select>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.order.model.AppraiseOrderGoods">
update appraise_order_goods
<set>
<if test="orderCode != null">
order_code = #{orderCode,jdbcType=BIGINT},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=INTEGER},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="productCode != null">
product_code = #{productCode,jdbcType=VARCHAR},
</if>
<if test="imageUrl != null">
image_url = #{imageUrl,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.order.model.AppraiseOrderGoods">
update appraise_order_goods
set order_code = #{orderCode,jdbcType=BIGINT},
product_id = #{productId,jdbcType=INTEGER},
product_name = #{productName,jdbcType=VARCHAR},
product_code = #{productCode,jdbcType=VARCHAR},
image_url = #{imageUrl,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ 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.yoho.order.dal.AppraiseOrderMapper">
<resultMap id="BaseResultMap" type="com.yoho.order.model.AppraiseOrder">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="uid" jdbcType="INTEGER" property="uid" />
<result column="order_code" jdbcType="BIGINT" property="orderCode" />
<result column="client_type" jdbcType="TINYINT" property="clientType" />
<result column="payment" jdbcType="TINYINT" property="payment" />
<result column="amount" jdbcType="DECIMAL" property="amount" />
<result column="ship_fee" jdbcType="DECIMAL" property="shipFee" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="create_time" jdbcType="INTEGER" property="createTime" />
<result column="update_time" jdbcType="INTEGER" property="updateTime" />
<result column="is_del" jdbcType="TINYINT" property="isDel" />
<result column="channel_no" jdbcType="VARCHAR" property="channelNo" />
</resultMap>
<sql id="Base_Column_List">
id, uid, order_code, client_type, payment, amount, ship_fee, status, create_time,
update_time, is_del, channel_no
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from appraise_order
where id = #{id,jdbcType=INTEGER}
</select>
<update id="updateByPrimaryKey" parameterType="com.yoho.order.model.AppraiseOrder">
update appraise_order
set uid = #{uid,jdbcType=INTEGER},
order_code = #{orderCode,jdbcType=BIGINT},
client_type = #{clientType,jdbcType=TINYINT},
payment = #{payment,jdbcType=TINYINT},
amount = #{amount,jdbcType=DECIMAL},
ship_fee = #{shipFee,jdbcType=DECIMAL},
status = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=INTEGER},
is_del = #{isDel,jdbcType=TINYINT},
channel_no = #{channelNo,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
... ...