Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jgjy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jgjy
Commits
b209085f
提交
b209085f
authored
4月 23, 2019
作者:
lvwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
8c7b8dca
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
4 行删除
+12
-4
FgRecommendController.java
...g/sysuser/controller/recommend/FgRecommendController.java
+3
-1
FgRecommendMapper.java
...m/zrqx/fg/sysuser/mapper/recommend/FgRecommendMapper.java
+3
-1
FgRecommendService.java
...zrqx/fg/sysuser/service/recommend/FgRecommendService.java
+3
-1
FgRecommendServiceImpl.java
.../fg/sysuser/service/recommend/FgRecommendServiceImpl.java
+3
-1
没有找到文件。
com.zrqx.fg.sysuser/src/main/java/com/zrqx/fg/sysuser/controller/recommend/FgRecommendController.java
浏览文件 @
b209085f
package
com
.
zrqx
.
fg
.
sysuser
.
controller
.
recommend
;
import
java.util.List
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -23,7 +25,7 @@ public class FgRecommendController {
@ApiOperation
(
"根据推荐位代码code查一定数量的列表"
)
@GetMapping
(
SysUserRequestPath
.
GET
)
public
CallBack
<
RecommendGoods
>
get
(
Integer
num
,
String
code
){
public
CallBack
<
List
<
RecommendGoods
>
>
get
(
Integer
num
,
String
code
){
return
CallBack
.
success
(
fgRecommendService
.
selectByCode
(
num
,
code
));
}
}
...
...
com.zrqx.fg.sysuser/src/main/java/com/zrqx/fg/sysuser/mapper/recommend/FgRecommendMapper.java
浏览文件 @
b209085f
package
com
.
zrqx
.
fg
.
sysuser
.
mapper
.
recommend
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
...
...
@@ -26,6 +28,6 @@ public interface FgRecommendMapper extends BaseMapper<Recommend>{
+
" ORDER BY sort ASC "
+
" LIMIT #{num} "
+
" </script> "
)
RecommendGoods
selectByCode
(
@Param
(
"num"
)
Integer
num
,
@Param
(
"code"
)
String
code
);
List
<
RecommendGoods
>
selectByCode
(
@Param
(
"num"
)
Integer
num
,
@Param
(
"code"
)
String
code
);
}
com.zrqx.fg.sysuser/src/main/java/com/zrqx/fg/sysuser/service/recommend/FgRecommendService.java
浏览文件 @
b209085f
package
com
.
zrqx
.
fg
.
sysuser
.
service
.
recommend
;
import
java.util.List
;
import
com.zrqx.core.model.sysuser.recommend.Recommend
;
import
com.zrqx.core.model.sysuser.recommend.RecommendGoods
;
import
com.zrqx.core.service.BaseService
;
...
...
@@ -14,7 +16,7 @@ public interface FgRecommendService extends BaseService<Recommend, Integer>{
* @author chyj
* @date: 2019年4月22日 下午6:05:06
*/
RecommendGoods
selectByCode
(
Integer
num
,
String
code
);
List
<
RecommendGoods
>
selectByCode
(
Integer
num
,
String
code
);
}
com.zrqx.fg.sysuser/src/main/java/com/zrqx/fg/sysuser/service/recommend/FgRecommendServiceImpl.java
浏览文件 @
b209085f
package
com
.
zrqx
.
fg
.
sysuser
.
service
.
recommend
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -29,7 +31,7 @@ public class FgRecommendServiceImpl extends BaseServiceImpl<Recommend, Integer>
* @date: 2019年4月22日 下午6:05:34
*/
@Override
public
RecommendGoods
selectByCode
(
Integer
num
,
String
code
)
{
public
List
<
RecommendGoods
>
selectByCode
(
Integer
num
,
String
code
)
{
return
fgRecommendMapper
.
selectByCode
(
num
,
code
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论