修改数据表名称
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsbrandinfo.GoodsBrandInfoVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsbrandinfo.GoodsBrandInfoVo">
|
||||||
select
|
select
|
||||||
*
|
*
|
||||||
from base_brand_info
|
from goods_brand_info
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo">
|
||||||
select s.*,a.goodsTypeName as categoryName ,b.brandName as brandName;
|
select s.*,a.goodsTypeName as categoryName ,b.brandName as brandName;
|
||||||
from base_category_brand s
|
from base_category_brand s
|
||||||
left join base_goods_type a on a.sid =s.ceategorySid
|
left join goods_type a on a.sid =s.ceategorySid
|
||||||
left join base_brand_info b on b.sid= s.brandSid
|
left join goods_brand_info b on b.sid= s.brandSid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
@@ -16,14 +16,14 @@
|
|||||||
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo">
|
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo">
|
||||||
select s.*,
|
select s.*,
|
||||||
s.own_spec as ownSpec
|
s.own_spec as ownSpec
|
||||||
from base_goods_sku s
|
from goods_sku s
|
||||||
where s.goodsSpuSid = #{spuSid}
|
where s.goodsSpuSid = #{spuSid}
|
||||||
</select>
|
</select>
|
||||||
<select id="getVoBySid" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo">
|
<select id="getVoBySid" resultType="com.yxt.goods.biz.goodscategorybrand.GoodsCategoryBrandVo">
|
||||||
select s.*,a.goodsTypeName as categoryName ,b.brandName as brandName;
|
select s.*,a.goodsTypeName as categoryName ,b.brandName as brandName;
|
||||||
from base_category_brand s
|
from base_category_brand s
|
||||||
left join base_goods_type a on a.sid =s.ceategorySid
|
left join goods_type a on a.sid =s.ceategorySid
|
||||||
left join base_brand_info b on b.sid= s.brandSid
|
left join goods_brand_info b on b.sid= s.brandSid
|
||||||
where s.sid = #{sid}
|
where s.sid = #{sid}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -7,14 +7,14 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsmanufacturer.GoodsManufacturerVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsmanufacturer.GoodsManufacturerVo">
|
||||||
select
|
select
|
||||||
*
|
*
|
||||||
from base_manufacturer
|
from goods_manufacturer
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="getAllTypeByUseOrgSid" resultType="com.yxt.goods.biz.goodsmanufacturer.GoodsManufacturerVo">
|
<select id="getAllTypeByUseOrgSid" resultType="com.yxt.goods.biz.goodsmanufacturer.GoodsManufacturerVo">
|
||||||
select *
|
select *
|
||||||
from base_manufacturer
|
from goods_manufacturer
|
||||||
where useOrgSid = #{useOrgSid}
|
where useOrgSid = #{useOrgSid}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodssku.GoodsSkuVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodssku.GoodsSkuVo">
|
||||||
select s.*,s.own_spec as ownSpec,a.goodsName
|
select s.*,s.own_spec as ownSpec,a.goodsName
|
||||||
from base_goods_sku s
|
from goods_sku s
|
||||||
left join base_goods_spu a on a.sid=s.goodsSpuSid
|
left join goods_spu a on a.sid=s.goodsSpuSid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
@@ -15,13 +15,13 @@
|
|||||||
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodssku.GoodsSkuVo">
|
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodssku.GoodsSkuVo">
|
||||||
select s.*,
|
select s.*,
|
||||||
s.own_spec as ownSpec
|
s.own_spec as ownSpec
|
||||||
from base_goods_sku s
|
from goods_sku s
|
||||||
where s.goodsSpuSid = #{spuSid}
|
where s.goodsSpuSid = #{spuSid}
|
||||||
</select>
|
</select>
|
||||||
<select id="getSkuBySid" resultType="com.yxt.goods.biz.goodssku.GoodsSkuVo">
|
<select id="getSkuBySid" resultType="com.yxt.goods.biz.goodssku.GoodsSkuVo">
|
||||||
select *,
|
select *,
|
||||||
s.own_spec as ownSpec
|
s.own_spec as ownSpec
|
||||||
from base_goods_sku s
|
from goods_sku s
|
||||||
where s.sid = #{sid}
|
where s.sid = #{sid}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
sku.title as goodsSkuTitle,
|
sku.title as goodsSkuTitle,
|
||||||
spu.goodsUnitSid,
|
spu.goodsUnitSid,
|
||||||
spu.goodsUnitName
|
spu.goodsUnitName
|
||||||
from base_goods_sku sku
|
from goods_sku sku
|
||||||
left join base_goods_spu spu on spu.sid = sku.goodsSpuSid
|
left join goods_spu spu on spu.sid = sku.goodsSpuSid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
@@ -54,8 +54,8 @@
|
|||||||
a.manufacturerSid,
|
a.manufacturerSid,
|
||||||
a.goodsUnitName
|
a.goodsUnitName
|
||||||
FROM
|
FROM
|
||||||
base_goods_sku s
|
goods_sku s
|
||||||
LEFT JOIN base_goods_spu a
|
LEFT JOIN goods_spu a
|
||||||
ON a.sid = s.goodsSpuSid
|
ON a.sid = s.goodsSpuSid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsskuextend.GoodsSkuExtendVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsskuextend.GoodsSkuExtendVo">
|
||||||
select
|
select
|
||||||
s.*,a.title
|
s.*,a.title
|
||||||
from base_goods_sku_extend s
|
from goods_sku_extend s
|
||||||
left join base_goods_sku a on a.sid=s.goodsSkuSid
|
left join goods_sku a on a.sid=s.goodsSkuSid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
@@ -16,13 +16,13 @@
|
|||||||
<select id="getExtendBySkuSid" resultType="com.yxt.goods.biz.goodsskuextend.GoodsSkuExtendVo">
|
<select id="getExtendBySkuSid" resultType="com.yxt.goods.biz.goodsskuextend.GoodsSkuExtendVo">
|
||||||
select
|
select
|
||||||
s.*,s.InventoryAlertUpperLimit as inventoryAlertUpperLimit,s.InventoryAlertLowerLimit as inventoryAlertLowerLimit
|
s.*,s.InventoryAlertUpperLimit as inventoryAlertUpperLimit,s.InventoryAlertLowerLimit as inventoryAlertLowerLimit
|
||||||
from base_goods_sku_extend s
|
from goods_sku_extend s
|
||||||
where s.goodsSkuSid=#{skuSid}
|
where s.goodsSkuSid=#{skuSid}
|
||||||
</select>
|
</select>
|
||||||
<select id="getExtendBySid" resultType="com.yxt.goods.biz.goodsskuextend.GoodsSkuExtendVo">
|
<select id="getExtendBySid" resultType="com.yxt.goods.biz.goodsskuextend.GoodsSkuExtendVo">
|
||||||
select
|
select
|
||||||
s.*,s.InventoryAlertUpperLimit as inventoryAlertUpperLimit,s.InventoryAlertLowerLimit as inventoryAlertLowerLimit
|
s.*,s.InventoryAlertUpperLimit as inventoryAlertUpperLimit,s.InventoryAlertLowerLimit as inventoryAlertLowerLimit
|
||||||
from base_goods_sku_extend s
|
from goods_sku_extend s
|
||||||
where s.sid=#{sid}
|
where s.sid=#{sid}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsspecgroup.GoodsSpecGroupVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsspecgroup.GoodsSpecGroupVo">
|
||||||
select s.*,a.goodsTypeName as categoryName
|
select s.*,a.goodsTypeName as categoryName
|
||||||
from base_spec_group s
|
from goods_spec_group s
|
||||||
left join base_goods_type a on a.sid =s.categroySid
|
left join goods_type a on a.sid =s.categroySid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
@@ -15,13 +15,13 @@
|
|||||||
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodsspecgroup.GoodsSpecGroupVo">
|
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodsspecgroup.GoodsSpecGroupVo">
|
||||||
select s.*,
|
select s.*,
|
||||||
s.own_spec as ownSpec
|
s.own_spec as ownSpec
|
||||||
from base_goods_sku s
|
from goods_sku s
|
||||||
where s.goodsSpuSid = #{spuSid}
|
where s.goodsSpuSid = #{spuSid}
|
||||||
</select>
|
</select>
|
||||||
<select id="getVoBySid" resultType="com.yxt.goods.biz.goodsspecgroup.GoodsSpecGroupVo">
|
<select id="getVoBySid" resultType="com.yxt.goods.biz.goodsspecgroup.GoodsSpecGroupVo">
|
||||||
select s.*,a.goodsTypeName as categoryName
|
select s.*,a.goodsTypeName as categoryName
|
||||||
from base_spec_group s
|
from goods_spec_group s
|
||||||
left join base_goods_type a on a.sid =s.categroySid
|
left join goods_type a on a.sid =s.categroySid
|
||||||
where s.sid = #{sid}
|
where s.sid = #{sid}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsspecparam.GoodsSpecParamVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsspecparam.GoodsSpecParamVo">
|
||||||
select s.*,a.groupName,b.goodsTypeName as categoryName
|
select s.*,a.groupName,b.goodsTypeName as categoryName
|
||||||
from base_spec_param s
|
from goods_spec_param s
|
||||||
left join base_spec_group a on a.sid=s.groupSid
|
left join goods_spec_group a on a.sid=s.groupSid
|
||||||
left join base_goods_type b on b.sid =s.categorySid;
|
left join goods_type b on b.sid =s.categorySid;
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
@@ -16,14 +16,14 @@
|
|||||||
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodsspecparam.GoodsSpecParamVo">
|
<select id="getSkusBySpuSid" resultType="com.yxt.goods.biz.goodsspecparam.GoodsSpecParamVo">
|
||||||
select s.*,
|
select s.*,
|
||||||
s.own_spec as ownSpec
|
s.own_spec as ownSpec
|
||||||
from base_goods_sku s
|
from goods_sku s
|
||||||
where s.goodsSpuSid = #{spuSid}
|
where s.goodsSpuSid = #{spuSid}
|
||||||
</select>
|
</select>
|
||||||
<select id="getVoBySid" resultType="com.yxt.goods.biz.goodsspecparam.GoodsSpecParamVo">
|
<select id="getVoBySid" resultType="com.yxt.goods.biz.goodsspecparam.GoodsSpecParamVo">
|
||||||
select s.*,a.groupName,b.goodsTypeName as categoryName
|
select s.*,a.groupName,b.goodsTypeName as categoryName
|
||||||
from base_spec_param s
|
from goods_spec_param s
|
||||||
left join base_spec_group a on a.sid=s.groupSid
|
left join goods_spec_group a on a.sid=s.groupSid
|
||||||
left join base_goods_type b on b.sid =s.categorySid;
|
left join goods_type b on b.sid =s.categorySid;
|
||||||
where s.sid = #{sid}
|
where s.sid = #{sid}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -7,9 +7,9 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsspu.GoodsSpuVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsspu.GoodsSpuVo">
|
||||||
select
|
select
|
||||||
s.*,a.goodsTypeName as typeName,b.brandName as brandName,c.manufacturerName as manufacturerName
|
s.*,a.goodsTypeName as typeName,b.brandName as brandName,c.manufacturerName as manufacturerName
|
||||||
from base_goods_spu s
|
from goods_spu s
|
||||||
left join base_goods_type a on a.sid=s.goodsTypeSid
|
left join goods_type a on a.sid=s.goodsTypeSid
|
||||||
left join base_brand_info b on b.sid=s.brandSid
|
left join goods_brand_info b on b.sid=s.brandSid
|
||||||
left join base_manufacturer c on c.sid=s.manufacturerSid
|
left join base_manufacturer c on c.sid=s.manufacturerSid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
@@ -18,9 +18,9 @@
|
|||||||
<select id="initialization" resultType="com.yxt.goods.biz.goodsspu.GoodsSpuVo">
|
<select id="initialization" resultType="com.yxt.goods.biz.goodsspu.GoodsSpuVo">
|
||||||
select
|
select
|
||||||
s.*,a.goodsTypeName as typeName,b.brandName as brandName,c.manufacturerName as manufacturerName
|
s.*,a.goodsTypeName as typeName,b.brandName as brandName,c.manufacturerName as manufacturerName
|
||||||
from base_goods_spu s
|
from goods_spu s
|
||||||
left join base_goods_type a on a.sid=s.goodsTypeSid
|
left join goods_type a on a.sid=s.goodsTypeSid
|
||||||
left join base_brand_info b on b.sid=s.brandSid
|
left join goods_brand_info b on b.sid=s.brandSid
|
||||||
left join base_manufacturer c on c.sid=s.manufacturerSid
|
left join base_manufacturer c on c.sid=s.manufacturerSid
|
||||||
where s.sid=#{sid}
|
where s.sid=#{sid}
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsspudetail.BaseGoodsSpuDetailVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsspudetail.BaseGoodsSpuDetailVo">
|
||||||
select
|
select
|
||||||
s.*,a.goodsName
|
s.*,a.goodsName
|
||||||
from base_goods_spu_detail s
|
from goods_spu_detail s
|
||||||
left join base_goods_spu a on a.sid=s.goodSpuSid
|
left join goods_spu a on a.sid=s.goodSpuSid
|
||||||
|
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<select id="getSpuDetailsBySpuSid" resultType="com.yxt.goods.biz.goodsspudetail.BaseGoodsSpuDetailVo">
|
<select id="getSpuDetailsBySpuSid" resultType="com.yxt.goods.biz.goodsspudetail.BaseGoodsSpuDetailVo">
|
||||||
select
|
select
|
||||||
s.*,s.generic_spec as genericSpec,s.special_spec as specialSpec
|
s.*,s.generic_spec as genericSpec,s.special_spec as specialSpec
|
||||||
from base_goods_spu_detail s
|
from goods_spu_detail s
|
||||||
where s.goodSpuSid=#{skuSid}
|
where s.goodSpuSid=#{skuSid}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodstype.GoodsTypeVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodstype.GoodsTypeVo">
|
||||||
select
|
select
|
||||||
*
|
*
|
||||||
from base_goods_type
|
from goods_type
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<select id="listPage" resultType="com.yxt.goods.biz.goodsunit.GoodsUnitVo">
|
<select id="listPage" resultType="com.yxt.goods.biz.goodsunit.GoodsUnitVo">
|
||||||
select
|
select
|
||||||
*
|
*
|
||||||
from base_goods_unit
|
from goods_unit
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ spring:
|
|||||||
hikari:
|
hikari:
|
||||||
max-lifetime: 500000
|
max-lifetime: 500000
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://39.104.100.138:3306/yxt_base?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://39.104.100.138:3306/ss_goods?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true
|
||||||
# url: jdbc:mysql://8.130.39.13:3306/yxt_lpk_yythmall?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true
|
# url: jdbc:mysql://8.130.39.13:3306/yxt_lpk_yythmall?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true
|
||||||
username: root
|
username: root
|
||||||
# password: 1LAiGz$t1*Iw
|
# password: 1LAiGz$t1*Iw
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://127.0.0.1:3306/yxt_base?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
url: jdbc:mysql://127.0.0.1:3306/ss_goods?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
||||||
username: root
|
username: root
|
||||||
password: 1LAiGz$t1*Iw
|
password: 1LAiGz$t1*Iw
|
||||||
cloud:
|
cloud:
|
||||||
|
|||||||
Reference in New Issue
Block a user