提交 940d3e31 authored 作者: sin's avatar sin

- 修改 order 改为 orders

上级 96cd884e
spring: spring:
# datasource # datasource
datasource: datasource:
url: jdbc:mysql://180.167.213.26:13306/mall_orders?useSSL=false&useUnicode=true&characterEncoding=UTF-8 url: jdbc:mysql://180.167.213.26:13306/mall_order?useSSL=false&useUnicode=true&characterEncoding=UTF-8
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
username: root username: root
password: ${MALL_MYSQL_PASSWORD} password: ${MALL_MYSQL_PASSWORD}
......
...@@ -67,13 +67,13 @@ ...@@ -67,13 +67,13 @@
</sql> </sql>
<update id="updateById" parameterType="OrderDO"> <update id="updateById" parameterType="OrderDO">
UPDATE `order` UPDATE `orders`
<include refid="updateFieldSql" /> <include refid="updateFieldSql" />
WHERE id = #{id} WHERE id = #{id}
</update> </update>
<update id="updateByIdAndStatus"> <update id="updateByIdAndStatus">
UPDATE `order` UPDATE `orders`
<set> <set>
<if test="updateObj.payAmount != null"> <if test="updateObj.payAmount != null">
, pay_amount = #{updateObj.payAmount} , pay_amount = #{updateObj.payAmount}
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<select id="selectById" resultType="cn.iocoder.mall.order.biz.dataobject.OrderDO"> <select id="selectById" resultType="cn.iocoder.mall.order.biz.dataobject.OrderDO">
SELECT SELECT
<include refid="FIELDS" /> <include refid="FIELDS" />
FROM `order` FROM `orders`
WHERE id = #{id} WHERE id = #{id}
</select> </select>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<select id="selectPageCount" resultType="java.lang.Integer"> <select id="selectPageCount" resultType="java.lang.Integer">
SELECT SELECT
COUNT(*) COUNT(*)
FROM `order` FROM `orders`
<where> <where>
<include refid="selectWhere" /> <include refid="selectWhere" />
</where> </where>
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<select id="selectPage" resultType="cn.iocoder.mall.order.biz.dataobject.OrderDO"> <select id="selectPage" resultType="cn.iocoder.mall.order.biz.dataobject.OrderDO">
SELECT SELECT
<include refid="FIELDS" /> <include refid="FIELDS" />
FROM `order` FROM `orders`
<where> <where>
<include refid="selectWhere" /> <include refid="selectWhere" />
</where> </where>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论