Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit e07e06e4
由
zxt@theyeasy.com
编写于
Dec 27, 2017
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
商品单个查询 ,商品单个修改添加 ,增加商品 商家名称和地址
1 个父辈
7649da48
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
20 行增加
和
1 行删除
src/com/w1hd/zzhnc/model/Goods.java
src/com/w1hd/zzhnc/service/GoodsService.java
src/com/w1hd/zzhnc/model/Goods.java
查看文件 @
e07e06e
...
@@ -9,6 +9,8 @@ public class Goods {
...
@@ -9,6 +9,8 @@ public class Goods {
@Id
@Id
private
Integer
id
;
private
Integer
id
;
private
Integer
sellerId
;
private
Integer
sellerId
;
private
String
sellerName
;
private
String
sellerAddress
;
private
String
name
;
private
String
name
;
private
String
description
;
private
String
description
;
private
BigDecimal
primePrice
;
private
BigDecimal
primePrice
;
...
@@ -260,5 +262,22 @@ public class Goods {
...
@@ -260,5 +262,22 @@ public class Goods {
public
void
setDeleted
(
Boolean
deleted
)
{
public
void
setDeleted
(
Boolean
deleted
)
{
this
.
deleted
=
deleted
;
this
.
deleted
=
deleted
;
}
}
public
String
getSellerName
()
{
return
sellerName
;
}
public
void
setSellerName
(
String
sellerName
)
{
this
.
sellerName
=
sellerName
;
}
public
String
getSellerAddress
()
{
return
sellerAddress
;
}
public
void
setSellerAddress
(
String
sellerAddress
)
{
this
.
sellerAddress
=
sellerAddress
;
}
}
}
\ No newline at end of file
\ No newline at end of file
src/com/w1hd/zzhnc/service/GoodsService.java
查看文件 @
e07e06e
...
@@ -54,7 +54,7 @@ public class GoodsService {
...
@@ -54,7 +54,7 @@ public class GoodsService {
}
}
c
.
andEqualTo
(
"deleted"
,
false
);
c
.
andEqualTo
(
"deleted"
,
false
);
RowBounds
row
=
new
RowBounds
(
page
,
size
);
RowBounds
row
=
new
RowBounds
(
page
-
1
,
size
);
List
<
Goods
>
list
=
goodsDao
.
selectByExampleAndRowBounds
(
ex
,
row
);
List
<
Goods
>
list
=
goodsDao
.
selectByExampleAndRowBounds
(
ex
,
row
);
int
count
=
goodsDao
.
selectCountByExample
(
ex
);
int
count
=
goodsDao
.
selectCountByExample
(
ex
);
PageResults
<
Goods
>
pageResults
=
new
PageResults
<>();
PageResults
<
Goods
>
pageResults
=
new
PageResults
<>();
...
...
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论