Commit 2f34cc748b9e880e57293d30bb55be83343da6bd

Authored by kangtian
1 parent fce5e6f1

去掉xml中数据库的前缀

etrade-coupon/src/main/resources/com/diligrp/etrade/dao/mapper/CouponBindUserDao.xml
@@ -364,7 +364,7 @@ @@ -364,7 +364,7 @@
364 order by cbu.coupon_no desc 364 order by cbu.coupon_no desc
365 </select> 365 </select>
366 <update id="updateByCustomerId" parameterType="com.diligrp.etrade.coupon.model.CouponBindUserDo"> 366 <update id="updateByCustomerId" parameterType="com.diligrp.etrade.coupon.model.CouponBindUserDo">
367 - UPDATE `dili_etrade`.`coupon_bind_user` 367 + UPDATE `coupon_bind_user`
368 SET `customer_name` = #{customerName}, 368 SET `customer_name` = #{customerName},
369 `customer_certificate_type` = #{customerCertificateType}, 369 `customer_certificate_type` = #{customerCertificateType},
370 `customer_certificate_no` = #{customerCertificateNo}, 370 `customer_certificate_no` = #{customerCertificateNo},
etrade-coupon/src/main/resources/com/diligrp/etrade/dao/mapper/CouponTemplateDao.xml
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 template_no LIKE concat(#{key},'%') 37 template_no LIKE concat(#{key},'%')
38 </select> 38 </select>
39 <insert id="insert" parameterType="com.diligrp.etrade.coupon.domain.CouponTemplateDto"> 39 <insert id="insert" parameterType="com.diligrp.etrade.coupon.domain.CouponTemplateDto">
40 - INSERT INTO `dili_etrade`.`coupon_template` ( 40 + INSERT INTO `coupon_template` (
41 `template_no`, 41 `template_no`,
42 `template_name`, 42 `template_name`,
43 `valid_type`, 43 `valid_type`,
@@ -106,7 +106,7 @@ @@ -106,7 +106,7 @@
106 ct.id = #{id} 106 ct.id = #{id}
107 </select> 107 </select>
108 <update id="updateById" parameterType="com.diligrp.etrade.coupon.model.CouponTemplateDo"> 108 <update id="updateById" parameterType="com.diligrp.etrade.coupon.model.CouponTemplateDo">
109 - UPDATE `dili_etrade`.`coupon_template` 109 + UPDATE `coupon_template`
110 SET 110 SET
111 `state` = #{state}, 111 `state` = #{state},
112 `version` = #{version}+1, 112 `version` = #{version}+1,
etrade-shop/src/main/resources/com/diligrp/etrade/dao/mapper/ShopApproveMainProductMapper.xml
@@ -65,11 +65,11 @@ @@ -65,11 +65,11 @@
65 </insert> 65 </insert>
66 66
67 <delete id="deleteByApproveId"> 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 </delete> 69 </delete>
70 70
71 <select id="selectShopApproveMainProducts" resultType="com.diligrp.etrade.shop.model.ShopApproveMainProduct"> 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 WHERE `shop_id` = #{shopId} 73 WHERE `shop_id` = #{shopId}
74 74
75 <if test="approveId != null"> 75 <if test="approveId != null">
etrade-shop/src/main/resources/com/diligrp/etrade/dao/mapper/ShopMainProductMapper.xml
@@ -4,13 +4,13 @@ @@ -4,13 +4,13 @@
4 4
5 5
6 <select id="selectShopMainProducts" resultType="com.diligrp.etrade.shop.domain.response.ShopMainProductVo"> 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 WHERE `shop_id` = #{shopId} 8 WHERE `shop_id` = #{shopId}
9 </select> 9 </select>
10 10
11 11
12 <delete id="deleteByShopId"> 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 </delete> 14 </delete>
15 15
16 16