提交 bbb3a69f authored 作者: zhengfg's avatar zhengfg

商品管理优化

上级 eb8c006d
...@@ -35,7 +35,11 @@ ...@@ -35,7 +35,11 @@
</select> </select>
<select id="queryList" resultMap="tbCfDescripitonMap"> <select id="queryList" resultMap="tbCfDescripitonMap">
SELECT SELECT
d.*, d.descripition_id,
d.descripition_name,
d.descripition_code,
d.goodstype_id,
d.goodstwotype_id,
t.goodstwotype_title, t.goodstwotype_title,
o.goodstype_title o.goodstype_title
FROM FROM
...@@ -57,6 +61,7 @@ ...@@ -57,6 +61,7 @@
<if test="offset != null and limit != null"> <if test="offset != null and limit != null">
limit #{offset}, #{limit} limit #{offset}, #{limit}
</if> </if>
</select> </select>
<select id="queryTotal" resultType="int"> <select id="queryTotal" resultType="int">
......
...@@ -42,7 +42,20 @@ ...@@ -42,7 +42,20 @@
<select id="queryList" resultType="com.platform.entity.TbCfStationItemEntityExtends"> <select id="queryList" resultType="com.platform.entity.TbCfStationItemEntityExtends">
SELECT SELECT
i.*, i.item_id,
i.item_code,
i.item_name,
i.item_brief,
i.item_category,
i.item_price,
i.item_url,
i.item_img,
i.platform_code,
i.platform_name,
i.enable_flag,
i.create_time,
i.item_categorytwo,
i.item_descrition_id,
d.descripition_name dname, d.descripition_name dname,
t.goodstwotype_title title, t.goodstwotype_title title,
o.goodstype_title goodtype o.goodstype_title goodtype
...@@ -60,12 +73,13 @@ ...@@ -60,12 +73,13 @@
order by ${sidx} ${order} order by ${sidx} ${order}
</when> </when>
<otherwise> <otherwise>
order by item_id desc order by i.create_time desc
</otherwise> </otherwise>
</choose> </choose>
<if test="offset != null and limit != null"> <if test="offset != null and limit != null">
limit #{offset}, #{limit} limit #{offset}, #{limit}
</if> </if>
</select> </select>
<select id="queryTotal" resultType="int"> <select id="queryTotal" resultType="int">
......
...@@ -3,10 +3,10 @@ $(function () { ...@@ -3,10 +3,10 @@ $(function () {
url: '../tbcfdescripiton/list', url: '../tbcfdescripiton/list',
colModel: [ colModel: [
{label: 'descripitionId', name: 'descripitionId', index: 'descripition_id', key: true, hidden: true}, {label: 'descripitionId', name: 'descripitionId', index: 'descripition_id', key: true, hidden: true},
{label: '品名名字', name: 'descripitionName', index: 'descripition_name', width: 80}, {label: '商品品名', name: 'descripitionName', index: 'descripition_name', width: 80},
{label: '海关编码', name: 'descripitionCode', index: 'descripition_code', width: 80}, {label: '海关编码', name: 'descripitionCode', index: 'descripition_code', width: 80},
{label: '一级分类', name: 'goodtype', index: 'goodtype', width: 80}, {label: '商品一级分类标题', name: 'goodtype', index: 'goodtype', width: 80},
{label: '二级分类', name: 'title', index: 'title', width: 80}] {label: '商品二级分类标题', name: 'title', index: 'title', width: 80}]
}); });
}); });
......
...@@ -6,8 +6,8 @@ $(function () { ...@@ -6,8 +6,8 @@ $(function () {
{label: '商品编号', name: 'itemCode', index: 'item_code', width: 80}, {label: '商品编号', name: 'itemCode', index: 'item_code', width: 80},
{label: '商品名字', name: 'itemName', index: 'item_name', width: 80}, {label: '商品名字', name: 'itemName', index: 'item_name', width: 80},
{label: '商品标题简介', name: 'itemBrief', index: 'item_brief', width: 80}, {label: '商品标题简介', name: 'itemBrief', index: 'item_brief', width: 80},
{label: '商品链接', name: 'itemUrl', index: 'item_url', width: 80}, {label: '商品链接', name: 'itemUrl', index: 'item_url', width: 80,formatter:linkFormat},
{label: '商品图片', name: 'itemImg', index: 'item_img', width: 80}, {label: '商品图片', name: 'itemImg', index: 'item_img', width: 80,formatter: imageFormat},
{label: '商品价格', name: 'itemPrice', index: 'item_price', width: 80}, {label: '商品价格', name: 'itemPrice', index: 'item_price', width: 80},
{label: '所属平台', name: 'platformCode', index: 'platform_code', width: 80}, {label: '所属平台', name: 'platformCode', index: 'platform_code', width: 80},
{label: '平台名', name: 'platformName', index: 'platform_name', width: 80}, {label: '平台名', name: 'platformName', index: 'platform_name', width: 80},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论