Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
55000586
Commit
55000586
authored
Jul 23, 2018
by
Junling Bu
Browse files
chore: 数据库中goods表的desc字段调整成detail,因为desc是数据库关键字
parent
147c836d
Changes
6
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/goods/create.vue
View file @
55000586
...
...
@@ -81,7 +81,7 @@
</el-form-item>
<el-form-item
label=
"商品详细介绍"
>
<editor
:init=
"editorInit"
v-model=
"goods.de
sc
"
></editor>
<editor
:init=
"editorInit"
v-model=
"goods.de
tail
"
></editor>
</el-form-item>
</el-form>
</el-card>
...
...
litemall-admin/src/views/goods/edit.vue
View file @
55000586
...
...
@@ -81,7 +81,7 @@
</el-form-item>
<el-form-item
label=
"商品详细介绍"
>
<editor
:init=
"editorInit"
v-model=
"goods.de
sc
"
></editor>
<editor
:init=
"editorInit"
v-model=
"goods.de
tail
"
></editor>
</el-form-item>
</el-form>
</el-card>
...
...
litemall-admin/src/views/goods/list.vue
View file @
55000586
...
...
@@ -52,12 +52,12 @@
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"详情"
prop=
"de
sc
"
>
<el-table-column
align=
"center"
label=
"详情"
prop=
"de
tail
"
>
<
template
slot-scope=
"scope"
>
<el-dialog
title=
"商品详情"
:visible.sync=
"de
sc
DialogVisible"
>
<div
v-html=
"
desc
Detail"
></div>
<el-dialog
title=
"商品详情"
:visible.sync=
"de
tail
DialogVisible"
>
<div
v-html=
"
goods
Detail"
></div>
</el-dialog>
<el-button
type=
"primary"
size=
"mini"
@
click=
"showDe
sc
(scope.row.de
sc
)"
>
查看
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"showDe
tail
(scope.row.de
tail
)"
>
查看
</el-button>
</
template
>
</el-table-column>
...
...
@@ -145,8 +145,8 @@ export default {
sort
:
'
add_time
'
,
order
:
'
desc
'
},
desc
Detail
:
''
,
de
sc
DialogVisible
:
false
,
goods
Detail
:
''
,
de
tail
DialogVisible
:
false
,
downloadLoading
:
false
}
},
...
...
@@ -184,9 +184,9 @@ export default {
handleUpdate
(
row
)
{
this
.
$router
.
push
({
path
:
'
/goods/edit
'
,
query
:
{
id
:
row
.
id
}})
},
showDe
sc
(
desc
)
{
this
.
desc
Detail
=
de
sc
this
.
de
sc
DialogVisible
=
true
showDe
tail
(
detail
)
{
this
.
goods
Detail
=
de
tail
this
.
de
tail
DialogVisible
=
true
},
handleDelete
(
row
)
{
deleteGoods
(
row
).
then
(
response
=>
{
...
...
@@ -204,7 +204,7 @@ export default {
this
.
downloadLoading
=
true
import
(
'
@/vendor/Export2Excel
'
).
then
(
excel
=>
{
const
tHeader
=
[
'
商品ID
'
,
'
商品编号
'
,
'
名称
'
,
'
专柜价格
'
,
'
当前价格
'
,
'
是否新品
'
,
'
是否热品
'
,
'
是否在售
'
,
'
首页主图
'
,
'
宣传图片列表
'
,
'
商品介绍
'
,
'
详细介绍
'
,
'
商品图片
'
,
'
商品单位
'
,
'
关键字
'
,
'
类目ID
'
,
'
品牌商ID
'
]
const
filterVal
=
[
'
id
'
,
'
goodsSn
'
,
'
name
'
,
'
counterPrice
'
,
'
retailPrice
'
,
'
isNew
'
,
'
isHot
'
,
'
isOnSale
'
,
'
listPicUrl
'
,
'
gallery
'
,
'
brief
'
,
'
de
sc
'
,
'
picUrl
'
,
'
goodsUnit
'
,
'
keywords
'
,
'
categoryId
'
,
'
brandId
'
]
const
filterVal
=
[
'
id
'
,
'
goodsSn
'
,
'
name
'
,
'
counterPrice
'
,
'
retailPrice
'
,
'
isNew
'
,
'
isHot
'
,
'
isOnSale
'
,
'
listPicUrl
'
,
'
gallery
'
,
'
brief
'
,
'
de
tail
'
,
'
picUrl
'
,
'
goodsUnit
'
,
'
keywords
'
,
'
categoryId
'
,
'
brandId
'
]
excel
.
export_json_to_excel2
(
tHeader
,
this
.
list
,
filterVal
,
'
商品信息
'
)
this
.
downloadLoading
=
false
})
...
...
litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGoods.java
View file @
55000586
...
...
@@ -189,11 +189,11 @@ public class LitemallGoods {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_goods.de
sc
* This field corresponds to the database column litemall_goods.de
tail
*
* @mbg.generated
*/
private
String
de
sc
;
private
String
de
tail
;
/**
* This method was generated by MyBatis Generator.
...
...
@@ -629,26 +629,26 @@ public class LitemallGoods {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_goods.de
sc
* This method returns the value of the database column litemall_goods.de
tail
*
* @return the value of litemall_goods.de
sc
* @return the value of litemall_goods.de
tail
*
* @mbg.generated
*/
public
String
getDe
sc
()
{
return
de
sc
;
public
String
getDe
tail
()
{
return
de
tail
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_goods.de
sc
* This method sets the value of the database column litemall_goods.de
tail
*
* @param de
sc
the value for litemall_goods.de
sc
* @param de
tail
the value for litemall_goods.de
tail
*
* @mbg.generated
*/
public
void
setDe
sc
(
String
de
sc
)
{
this
.
de
sc
=
de
sc
;
public
void
setDe
tail
(
String
de
tail
)
{
this
.
de
tail
=
de
tail
;
}
/**
...
...
@@ -681,7 +681,7 @@ public class LitemallGoods {
sb
.
append
(
", retailPrice="
).
append
(
retailPrice
);
sb
.
append
(
", addTime="
).
append
(
addTime
);
sb
.
append
(
", deleted="
).
append
(
deleted
);
sb
.
append
(
", de
sc
="
).
append
(
de
sc
);
sb
.
append
(
", de
tail
="
).
append
(
de
tail
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
@@ -722,7 +722,7 @@ public class LitemallGoods {
&&
(
this
.
getRetailPrice
()
==
null
?
other
.
getRetailPrice
()
==
null
:
this
.
getRetailPrice
().
equals
(
other
.
getRetailPrice
()))
&&
(
this
.
getAddTime
()
==
null
?
other
.
getAddTime
()
==
null
:
this
.
getAddTime
().
equals
(
other
.
getAddTime
()))
&&
(
this
.
getDeleted
()
==
null
?
other
.
getDeleted
()
==
null
:
this
.
getDeleted
().
equals
(
other
.
getDeleted
()))
&&
(
this
.
getDe
sc
()
==
null
?
other
.
getDe
sc
()
==
null
:
this
.
getDe
sc
().
equals
(
other
.
getDe
sc
()));
&&
(
this
.
getDe
tail
()
==
null
?
other
.
getDe
tail
()
==
null
:
this
.
getDe
tail
().
equals
(
other
.
getDe
tail
()));
}
/**
...
...
@@ -753,7 +753,7 @@ public class LitemallGoods {
result
=
prime
*
result
+
((
getRetailPrice
()
==
null
)
?
0
:
getRetailPrice
().
hashCode
());
result
=
prime
*
result
+
((
getAddTime
()
==
null
)
?
0
:
getAddTime
().
hashCode
());
result
=
prime
*
result
+
((
getDeleted
()
==
null
)
?
0
:
getDeleted
().
hashCode
());
result
=
prime
*
result
+
((
getDe
sc
()
==
null
)
?
0
:
getDe
sc
().
hashCode
());
result
=
prime
*
result
+
((
getDe
tail
()
==
null
)
?
0
:
getDe
tail
().
hashCode
());
return
result
;
}
...
...
@@ -794,7 +794,7 @@ public class LitemallGoods {
retailPrice
(
"retail_price"
,
"retailPrice"
,
"DECIMAL"
),
addTime
(
"add_time"
,
"addTime"
,
"TIMESTAMP"
),
deleted
(
"deleted"
,
"deleted"
,
"BIT"
),
de
sc
(
"desc
"
,
"de
sc
"
,
"LONGVARCHAR"
);
de
tail
(
"detail
"
,
"de
tail
"
,
"LONGVARCHAR"
);
/**
* This field was generated by MyBatis Generator.
...
...
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.xml
View file @
55000586
...
...
@@ -30,7 +30,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result
column=
"de
sc
"
jdbcType=
"LONGVARCHAR"
property=
"de
sc
"
/>
<result
column=
"de
tail
"
jdbcType=
"LONGVARCHAR"
property=
"de
tail
"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -150,7 +150,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
`
de
sc`
de
tail
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"org.linlinjava.litemall.db.domain.LitemallGoodsExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
...
...
@@ -209,7 +209,7 @@
<otherwise>
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, brief, is_on_sale,
sort_order, pic_url, is_new, is_hot, unit, counter_price, retail_price, add_time,
deleted,
`
de
sc`
deleted, de
tail
</otherwise>
</choose>
from litemall_goods
...
...
@@ -274,7 +274,7 @@
<otherwise>
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, brief, is_on_sale,
sort_order, pic_url, is_new, is_hot, unit, counter_price, retail_price, add_time,
deleted,
`
de
sc`
deleted, de
tail
</otherwise>
</choose>
from litemall_goods
...
...
@@ -312,14 +312,14 @@
sort_order, pic_url, is_new,
is_hot, unit, counter_price,
retail_price, add_time, deleted,
`
de
sc`
)
de
tail
)
values (#{goodsSn,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER},
#{brandId,jdbcType=INTEGER}, #{gallery,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler},
#{keywords,jdbcType=VARCHAR}, #{brief,jdbcType=VARCHAR}, #{isOnSale,jdbcType=BIT},
#{sortOrder,jdbcType=SMALLINT}, #{picUrl,jdbcType=VARCHAR}, #{isNew,jdbcType=BIT},
#{isHot,jdbcType=BIT}, #{unit,jdbcType=VARCHAR}, #{counterPrice,jdbcType=DECIMAL},
#{retailPrice,jdbcType=DECIMAL}, #{addTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT},
#{de
sc
,jdbcType=LONGVARCHAR})
#{de
tail
,jdbcType=LONGVARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"org.linlinjava.litemall.db.domain.LitemallGoods"
>
<!--
...
...
@@ -382,8 +382,8 @@
<if
test=
"deleted != null"
>
deleted,
</if>
<if
test=
"de
sc
!= null"
>
`
de
sc`
,
<if
test=
"de
tail
!= null"
>
de
tail
,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -438,8 +438,8 @@
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
<if
test=
"de
sc
!= null"
>
#{de
sc
,jdbcType=LONGVARCHAR},
<if
test=
"de
tail
!= null"
>
#{de
tail
,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
...
...
@@ -514,8 +514,8 @@
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
<if
test=
"record.de
sc
!= null"
>
`
de
sc`
= #{record.de
sc
,jdbcType=LONGVARCHAR},
<if
test=
"record.de
tail
!= null"
>
de
tail
= #{record.de
tail
,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
...
...
@@ -546,7 +546,7 @@
retail_price = #{record.retailPrice,jdbcType=DECIMAL},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
`
de
sc`
= #{record.de
sc
,jdbcType=LONGVARCHAR}
de
tail
= #{record.de
tail
,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -637,8 +637,8 @@
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
<if
test=
"de
sc
!= null"
>
`
de
sc`
= #{de
sc
,jdbcType=LONGVARCHAR},
<if
test=
"de
tail
!= null"
>
de
tail
= #{de
tail
,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
...
...
@@ -666,7 +666,7 @@
retail_price = #{retailPrice,jdbcType=DECIMAL},
add_time = #{addTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
`
de
sc`
= #{de
sc
,jdbcType=LONGVARCHAR}
de
tail
= #{de
tail
,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"org.linlinjava.litemall.db.domain.LitemallGoods"
>
...
...
@@ -746,7 +746,7 @@
<otherwise>
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, brief, is_on_sale,
sort_order, pic_url, is_new, is_hot, unit, counter_price, retail_price, add_time,
deleted,
`
de
sc`
deleted, de
tail
</otherwise>
</choose>
from litemall_goods
...
...
litemall-wx/pages/goods/goods.js
View file @
55000586
...
...
@@ -85,7 +85,7 @@ Page({
});
}
WxParse
.
wxParse
(
'
goodsDetail
'
,
'
html
'
,
res
.
data
.
info
.
de
sc
,
that
);
WxParse
.
wxParse
(
'
goodsDetail
'
,
'
html
'
,
res
.
data
.
info
.
de
tail
,
that
);
that
.
getGoodsRelated
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment