Commit 2f34cc748b9e880e57293d30bb55be83343da6bd
1 parent
fce5e6f1
去掉xml中数据库的前缀
Showing
4 changed files
with
7 additions
and
7 deletions
etrade-coupon/src/main/resources/com/diligrp/etrade/dao/mapper/CouponBindUserDao.xml
... | ... | @@ -364,7 +364,7 @@ |
364 | 364 | order by cbu.coupon_no desc |
365 | 365 | </select> |
366 | 366 | <update id="updateByCustomerId" parameterType="com.diligrp.etrade.coupon.model.CouponBindUserDo"> |
367 | - UPDATE `dili_etrade`.`coupon_bind_user` | |
367 | + UPDATE `coupon_bind_user` | |
368 | 368 | SET `customer_name` = #{customerName}, |
369 | 369 | `customer_certificate_type` = #{customerCertificateType}, |
370 | 370 | `customer_certificate_no` = #{customerCertificateNo}, | ... | ... |
etrade-coupon/src/main/resources/com/diligrp/etrade/dao/mapper/CouponTemplateDao.xml
... | ... | @@ -37,7 +37,7 @@ |
37 | 37 | template_no LIKE concat(#{key},'%') |
38 | 38 | </select> |
39 | 39 | <insert id="insert" parameterType="com.diligrp.etrade.coupon.domain.CouponTemplateDto"> |
40 | - INSERT INTO `dili_etrade`.`coupon_template` ( | |
40 | + INSERT INTO `coupon_template` ( | |
41 | 41 | `template_no`, |
42 | 42 | `template_name`, |
43 | 43 | `valid_type`, |
... | ... | @@ -106,7 +106,7 @@ |
106 | 106 | ct.id = #{id} |
107 | 107 | </select> |
108 | 108 | <update id="updateById" parameterType="com.diligrp.etrade.coupon.model.CouponTemplateDo"> |
109 | - UPDATE `dili_etrade`.`coupon_template` | |
109 | + UPDATE `coupon_template` | |
110 | 110 | SET |
111 | 111 | `state` = #{state}, |
112 | 112 | `version` = #{version}+1, | ... | ... |
etrade-shop/src/main/resources/com/diligrp/etrade/dao/mapper/ShopApproveMainProductMapper.xml
... | ... | @@ -65,11 +65,11 @@ |
65 | 65 | </insert> |
66 | 66 | |
67 | 67 | <delete id="deleteByApproveId"> |
68 | - DELETE FROM `dili_etrade`.`shop_approve_main_product` WHERE `approve_id` = #{approveId} | |
68 | + DELETE FROM `shop_approve_main_product` WHERE `approve_id` = #{approveId} | |
69 | 69 | </delete> |
70 | 70 | |
71 | 71 | <select id="selectShopApproveMainProducts" resultType="com.diligrp.etrade.shop.model.ShopApproveMainProduct"> |
72 | - SELECT id,shop_id,approve_id,market_id,category_id,category_name,level, top_category_id, top_category_name FROM `dili_etrade`.`shop_approve_main_product` | |
72 | + SELECT id,shop_id,approve_id,market_id,category_id,category_name,level, top_category_id, top_category_name FROM `shop_approve_main_product` | |
73 | 73 | WHERE `shop_id` = #{shopId} |
74 | 74 | |
75 | 75 | <if test="approveId != null"> | ... | ... |
etrade-shop/src/main/resources/com/diligrp/etrade/dao/mapper/ShopMainProductMapper.xml
... | ... | @@ -4,13 +4,13 @@ |
4 | 4 | |
5 | 5 | |
6 | 6 | <select id="selectShopMainProducts" resultType="com.diligrp.etrade.shop.domain.response.ShopMainProductVo"> |
7 | - SELECT id,shop_id,market_id,category_id,category_name,level, top_category_id, top_category_name FROM `dili_etrade`.`shop_main_product` | |
7 | + SELECT id,shop_id,market_id,category_id,category_name,level, top_category_id, top_category_name FROM `shop_main_product` | |
8 | 8 | WHERE `shop_id` = #{shopId} |
9 | 9 | </select> |
10 | 10 | |
11 | 11 | |
12 | 12 | <delete id="deleteByShopId"> |
13 | - DELETE FROM `dili_etrade`.`shop_main_product` WHERE `shop_id` = #{shopId} | |
13 | + DELETE FROM `shop_main_product` WHERE `shop_id` = #{shopId} | |
14 | 14 | </delete> |
15 | 15 | |
16 | 16 | ... | ... |