add dao 4 appraise order
Showing
8 changed files
with
487 additions
and
0 deletions
1 | +package com.yohoufo.dal.order; | ||
2 | + | ||
3 | +import com.yohoufo.dal.order.model.AppraiseOrderGoods; | ||
4 | + | ||
5 | +public interface AppraiseOrderGoodsMapper { | ||
6 | + | ||
7 | + int insert(AppraiseOrderGoods record); | ||
8 | + | ||
9 | + int insertSelective(AppraiseOrderGoods record); | ||
10 | + | ||
11 | + AppraiseOrderGoods selectByPrimaryKey(Integer id); | ||
12 | + | ||
13 | + int updateByPrimaryKeySelective(AppraiseOrderGoods record); | ||
14 | + | ||
15 | + int updateByPrimaryKey(AppraiseOrderGoods record); | ||
16 | +} |
1 | +package com.yohoufo.dal.order; | ||
2 | + | ||
3 | +import com.yohoufo.dal.order.model.AppraiseOrder; | ||
4 | + | ||
5 | +public interface AppraiseOrderMapper { | ||
6 | + | ||
7 | + int insert(AppraiseOrder record); | ||
8 | + | ||
9 | + int insertSelective(AppraiseOrder record); | ||
10 | + | ||
11 | + AppraiseOrder selectByPrimaryKey(Integer id); | ||
12 | + | ||
13 | + int updateByPrimaryKeySelective(AppraiseOrder record); | ||
14 | + | ||
15 | + int updateByPrimaryKey(AppraiseOrder record); | ||
16 | +} |
1 | +package com.yohoufo.dal.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.yohoufo.dal.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.yohoufo.dal.order.AppraiseOrderGoodsMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.yohoufo.dal.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 | + <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.AppraiseOrderGoods" useGeneratedKeys="true"> | ||
23 | + insert into appraise_order_goods (order_code, product_id, product_name, | ||
24 | + product_code, image_url) | ||
25 | + values (#{orderCode,jdbcType=BIGINT}, #{productId,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, | ||
26 | + #{productCode,jdbcType=VARCHAR}, #{imageUrl,jdbcType=VARCHAR}) | ||
27 | + </insert> | ||
28 | + | ||
29 | + <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.AppraiseOrderGoods" useGeneratedKeys="true"> | ||
30 | + insert into appraise_order_goods | ||
31 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
32 | + <if test="orderCode != null"> | ||
33 | + order_code, | ||
34 | + </if> | ||
35 | + <if test="productId != null"> | ||
36 | + product_id, | ||
37 | + </if> | ||
38 | + <if test="productName != null"> | ||
39 | + product_name, | ||
40 | + </if> | ||
41 | + <if test="productCode != null"> | ||
42 | + product_code, | ||
43 | + </if> | ||
44 | + <if test="imageUrl != null"> | ||
45 | + image_url, | ||
46 | + </if> | ||
47 | + </trim> | ||
48 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
49 | + <if test="orderCode != null"> | ||
50 | + #{orderCode,jdbcType=BIGINT}, | ||
51 | + </if> | ||
52 | + <if test="productId != null"> | ||
53 | + #{productId,jdbcType=INTEGER}, | ||
54 | + </if> | ||
55 | + <if test="productName != null"> | ||
56 | + #{productName,jdbcType=VARCHAR}, | ||
57 | + </if> | ||
58 | + <if test="productCode != null"> | ||
59 | + #{productCode,jdbcType=VARCHAR}, | ||
60 | + </if> | ||
61 | + <if test="imageUrl != null"> | ||
62 | + #{imageUrl,jdbcType=VARCHAR}, | ||
63 | + </if> | ||
64 | + </trim> | ||
65 | + </insert> | ||
66 | + <update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.AppraiseOrderGoods"> | ||
67 | + update appraise_order_goods | ||
68 | + <set> | ||
69 | + <if test="orderCode != null"> | ||
70 | + order_code = #{orderCode,jdbcType=BIGINT}, | ||
71 | + </if> | ||
72 | + <if test="productId != null"> | ||
73 | + product_id = #{productId,jdbcType=INTEGER}, | ||
74 | + </if> | ||
75 | + <if test="productName != null"> | ||
76 | + product_name = #{productName,jdbcType=VARCHAR}, | ||
77 | + </if> | ||
78 | + <if test="productCode != null"> | ||
79 | + product_code = #{productCode,jdbcType=VARCHAR}, | ||
80 | + </if> | ||
81 | + <if test="imageUrl != null"> | ||
82 | + image_url = #{imageUrl,jdbcType=VARCHAR}, | ||
83 | + </if> | ||
84 | + </set> | ||
85 | + where id = #{id,jdbcType=INTEGER} | ||
86 | + </update> | ||
87 | + <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.AppraiseOrderGoods"> | ||
88 | + update appraise_order_goods | ||
89 | + set order_code = #{orderCode,jdbcType=BIGINT}, | ||
90 | + product_id = #{productId,jdbcType=INTEGER}, | ||
91 | + product_name = #{productName,jdbcType=VARCHAR}, | ||
92 | + product_code = #{productCode,jdbcType=VARCHAR}, | ||
93 | + image_url = #{imageUrl,jdbcType=VARCHAR} | ||
94 | + where id = #{id,jdbcType=INTEGER} | ||
95 | + </update> | ||
96 | +</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.yohoufo.dal.order.AppraiseOrderMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.yohoufo.dal.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 | + <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.AppraiseOrder" useGeneratedKeys="true"> | ||
31 | + insert into appraise_order (uid, order_code, client_type, | ||
32 | + payment, amount, ship_fee, | ||
33 | + status, create_time, update_time, | ||
34 | + is_del, channel_no) | ||
35 | + values (#{uid,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{clientType,jdbcType=TINYINT}, | ||
36 | + #{payment,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL}, #{shipFee,jdbcType=DECIMAL}, | ||
37 | + #{status,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, | ||
38 | + #{isDel,jdbcType=TINYINT}, #{channelNo,jdbcType=VARCHAR}) | ||
39 | + </insert> | ||
40 | + <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.AppraiseOrder" useGeneratedKeys="true"> | ||
41 | + insert into appraise_order | ||
42 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
43 | + <if test="uid != null"> | ||
44 | + uid, | ||
45 | + </if> | ||
46 | + <if test="orderCode != null"> | ||
47 | + order_code, | ||
48 | + </if> | ||
49 | + <if test="clientType != null"> | ||
50 | + client_type, | ||
51 | + </if> | ||
52 | + <if test="payment != null"> | ||
53 | + payment, | ||
54 | + </if> | ||
55 | + <if test="amount != null"> | ||
56 | + amount, | ||
57 | + </if> | ||
58 | + <if test="shipFee != null"> | ||
59 | + ship_fee, | ||
60 | + </if> | ||
61 | + <if test="status != null"> | ||
62 | + status, | ||
63 | + </if> | ||
64 | + <if test="createTime != null"> | ||
65 | + create_time, | ||
66 | + </if> | ||
67 | + <if test="updateTime != null"> | ||
68 | + update_time, | ||
69 | + </if> | ||
70 | + <if test="isDel != null"> | ||
71 | + is_del, | ||
72 | + </if> | ||
73 | + <if test="channelNo != null"> | ||
74 | + channel_no, | ||
75 | + </if> | ||
76 | + </trim> | ||
77 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
78 | + <if test="uid != null"> | ||
79 | + #{uid,jdbcType=INTEGER}, | ||
80 | + </if> | ||
81 | + <if test="orderCode != null"> | ||
82 | + #{orderCode,jdbcType=BIGINT}, | ||
83 | + </if> | ||
84 | + <if test="clientType != null"> | ||
85 | + #{clientType,jdbcType=TINYINT}, | ||
86 | + </if> | ||
87 | + <if test="payment != null"> | ||
88 | + #{payment,jdbcType=TINYINT}, | ||
89 | + </if> | ||
90 | + <if test="amount != null"> | ||
91 | + #{amount,jdbcType=DECIMAL}, | ||
92 | + </if> | ||
93 | + <if test="shipFee != null"> | ||
94 | + #{shipFee,jdbcType=DECIMAL}, | ||
95 | + </if> | ||
96 | + <if test="status != null"> | ||
97 | + #{status,jdbcType=TINYINT}, | ||
98 | + </if> | ||
99 | + <if test="createTime != null"> | ||
100 | + #{createTime,jdbcType=INTEGER}, | ||
101 | + </if> | ||
102 | + <if test="updateTime != null"> | ||
103 | + #{updateTime,jdbcType=INTEGER}, | ||
104 | + </if> | ||
105 | + <if test="isDel != null"> | ||
106 | + #{isDel,jdbcType=TINYINT}, | ||
107 | + </if> | ||
108 | + <if test="channelNo != null"> | ||
109 | + #{channelNo,jdbcType=VARCHAR}, | ||
110 | + </if> | ||
111 | + </trim> | ||
112 | + </insert> | ||
113 | + <update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.AppraiseOrder"> | ||
114 | + update appraise_order | ||
115 | + <set> | ||
116 | + <if test="uid != null"> | ||
117 | + uid = #{uid,jdbcType=INTEGER}, | ||
118 | + </if> | ||
119 | + <if test="orderCode != null"> | ||
120 | + order_code = #{orderCode,jdbcType=BIGINT}, | ||
121 | + </if> | ||
122 | + <if test="clientType != null"> | ||
123 | + client_type = #{clientType,jdbcType=TINYINT}, | ||
124 | + </if> | ||
125 | + <if test="payment != null"> | ||
126 | + payment = #{payment,jdbcType=TINYINT}, | ||
127 | + </if> | ||
128 | + <if test="amount != null"> | ||
129 | + amount = #{amount,jdbcType=DECIMAL}, | ||
130 | + </if> | ||
131 | + <if test="shipFee != null"> | ||
132 | + ship_fee = #{shipFee,jdbcType=DECIMAL}, | ||
133 | + </if> | ||
134 | + <if test="status != null"> | ||
135 | + status = #{status,jdbcType=TINYINT}, | ||
136 | + </if> | ||
137 | + <if test="createTime != null"> | ||
138 | + create_time = #{createTime,jdbcType=INTEGER}, | ||
139 | + </if> | ||
140 | + <if test="updateTime != null"> | ||
141 | + update_time = #{updateTime,jdbcType=INTEGER}, | ||
142 | + </if> | ||
143 | + <if test="isDel != null"> | ||
144 | + is_del = #{isDel,jdbcType=TINYINT}, | ||
145 | + </if> | ||
146 | + <if test="channelNo != null"> | ||
147 | + channel_no = #{channelNo,jdbcType=VARCHAR}, | ||
148 | + </if> | ||
149 | + </set> | ||
150 | + where id = #{id,jdbcType=INTEGER} | ||
151 | + </update> | ||
152 | + <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.AppraiseOrder"> | ||
153 | + update appraise_order | ||
154 | + set uid = #{uid,jdbcType=INTEGER}, | ||
155 | + order_code = #{orderCode,jdbcType=BIGINT}, | ||
156 | + client_type = #{clientType,jdbcType=TINYINT}, | ||
157 | + payment = #{payment,jdbcType=TINYINT}, | ||
158 | + amount = #{amount,jdbcType=DECIMAL}, | ||
159 | + ship_fee = #{shipFee,jdbcType=DECIMAL}, | ||
160 | + status = #{status,jdbcType=TINYINT}, | ||
161 | + create_time = #{createTime,jdbcType=INTEGER}, | ||
162 | + update_time = #{updateTime,jdbcType=INTEGER}, | ||
163 | + is_del = #{isDel,jdbcType=TINYINT}, | ||
164 | + channel_no = #{channelNo,jdbcType=VARCHAR} | ||
165 | + where id = #{id,jdbcType=INTEGER} | ||
166 | + </update> | ||
167 | +</mapper> |
@@ -113,6 +113,8 @@ datasources: | @@ -113,6 +113,8 @@ datasources: | ||
113 | - com.yohoufo.dal.order.SellerOrderStatsConfigMapper | 113 | - com.yohoufo.dal.order.SellerOrderStatsConfigMapper |
114 | - com.yohoufo.dal.order.SellerOrderStatsResultMapper | 114 | - com.yohoufo.dal.order.SellerOrderStatsResultMapper |
115 | - com.yohoufo.dal.order.AlipayBlackUserMapper | 115 | - com.yohoufo.dal.order.AlipayBlackUserMapper |
116 | + - com.yohoufo.dal.order.AppraiseOrderMapper | ||
117 | + - com.yohoufo.dal.order.AppraiseOrderGoodsMapper | ||
116 | 118 | ||
117 | ufo_promotion: | 119 | ufo_promotion: |
118 | servers: | 120 | servers: |
@@ -112,6 +112,8 @@ datasources: | @@ -112,6 +112,8 @@ datasources: | ||
112 | - com.yohoufo.dal.order.SellerOrderStatsConfigMapper | 112 | - com.yohoufo.dal.order.SellerOrderStatsConfigMapper |
113 | - com.yohoufo.dal.order.SellerOrderStatsResultMapper | 113 | - com.yohoufo.dal.order.SellerOrderStatsResultMapper |
114 | - com.yohoufo.dal.order.AlipayBlackUserMapper | 114 | - com.yohoufo.dal.order.AlipayBlackUserMapper |
115 | + - com.yohoufo.dal.order.AppraiseOrderMapper | ||
116 | + - com.yohoufo.dal.order.AppraiseOrderGoodsMapper | ||
115 | 117 | ||
116 | ufo_promotion: | 118 | ufo_promotion: |
117 | servers: | 119 | servers: |
-
Please register or login to post a comment