- 修改 order 改为 orders
This commit is contained in:
parent
96cd884e89
commit
940d3e312f
@ -1,7 +1,7 @@
|
|||||||
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 @@
|
|||||||
</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 @@
|
|||||||
<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 @@
|
|||||||
<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 @@
|
|||||||
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user