Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
bigdata_analysis_recommend
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
总经办-KinPeng-金鹏
bigdata_analysis_recommend
Commits
0d91357d
提交
0d91357d
authored
9月 22, 2021
作者:
peji
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
1861a0d6
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
92 行增加
和
8 行删除
+92
-8
Constant.java
src/main/java/cn/com/acadsoc/core/common/model/Constant.java
+25
-0
TextbookController.java
...va/cn/com/acadsoc/core/controller/TextbookController.java
+1
-1
TextbookDaoImpl.java
...in/java/cn/com/acadsoc/core/dao/impl/TextbookDaoImpl.java
+16
-1
TextbookShuntLog.java
...main/java/cn/com/acadsoc/core/model/TextbookShuntLog.java
+49
-6
TextbookServiceImpl.java
...cn/com/acadsoc/core/service/impl/TextbookServiceImpl.java
+1
-0
没有找到文件。
src/main/java/cn/com/acadsoc/core/common/model/Constant.java
0 → 100644
浏览文件 @
0d91357d
package
cn
.
com
.
acadsoc
.
core
.
common
.
model
;
public
class
Constant
{
public
static
class
ReturnStatusCode
{
public
static
final
Integer
SUCCESS
=
20000
;
// 成功
public
static
final
Integer
TOKEN_INVALID
=
40001
;
//token无效
public
static
final
Integer
TOKEN_NULL
=
40002
;
// token is null
public
static
final
Integer
PARAM_NULL
=
40003
;
//必要参数为空
public
static
final
Integer
FILE_ILLEGAL
=
40004
;
//文件不合法
public
static
final
Integer
ERROR
=
40005
;
//内部错误
public
static
final
Integer
USER_NO_EXISTS
=
41001
;
//用户不存在
public
static
final
Integer
USER_REPEAT
=
41002
;
//存在多个相同的用户名
public
static
final
Integer
REPEAT
=
41003
;
//xxx已存在
public
static
final
Integer
UNAUTHORIZED
=
41004
;
//xxx已存在
}
}
src/main/java/cn/com/acadsoc/core/controller/TextbookController.java
浏览文件 @
0d91357d
...
@@ -16,7 +16,7 @@ public class TextbookController {
...
@@ -16,7 +16,7 @@ public class TextbookController {
private
TextbookService
textbookService
;
private
TextbookService
textbookService
;
@RequestMapping
(
"/GetCatIDByUserInterest"
)
@RequestMapping
(
"/GetCatIDByUserInterest"
)
public
void
getCatIDByUserInterest
(){
public
void
getCatIDByUserInterest
(
String
uid
){
List
<
Map
<
String
,
Object
>>
list
=
textbookService
.
getTextbookByGrade
(
"1"
);
List
<
Map
<
String
,
Object
>>
list
=
textbookService
.
getTextbookByGrade
(
"1"
);
for
(
Map
<
String
,
Object
>
stringObjectMap
:
list
)
{
for
(
Map
<
String
,
Object
>
stringObjectMap
:
list
)
{
System
.
out
.
println
(
stringObjectMap
);
System
.
out
.
println
(
stringObjectMap
);
...
...
src/main/java/cn/com/acadsoc/core/dao/impl/TextbookDaoImpl.java
浏览文件 @
0d91357d
...
@@ -20,7 +20,22 @@ public class TextbookDaoImpl implements TextbookDao {
...
@@ -20,7 +20,22 @@ public class TextbookDaoImpl implements TextbookDao {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getTextbookByGrade
(
String
grade
)
{
public
List
<
Map
<
String
,
Object
>>
getTextbookByGrade
(
String
grade
)
{
String
sql
=
"select * from temp.temp_recommend_list_all"
;
String
sql
=
"SELECT ds.uid,multi_dept_source_name,user_level,a.CLID,b.*,b.CatID as `试课教材ID`,b.SID as `试课课件ID`\n"
+
"FROM dm.dm_api_tag_student ds\n"
+
"LEFT JOIN (\n"
+
"\t\t\tSELECT uid,CLID as `试课ID`, status as `试课状态`,allocationtime as `约课时间`, ClassTime `试课时间` ,CLID,\n"
+
"\t\t\tFROM src.src_a1_class_courselesson_all WHERE uid = '9474704' and status != -1\n"
+
") a ON ds.hash_uid = a.uid\n"
+
"LEFT JOIN src.src_a1_uc_usersubject_all b ON a.CLID = b.CLID\n"
+
"where hash_uid = '9474704' "
;
return
jdbcTemplate
.
queryForList
(
sql
);
return
jdbcTemplate
.
queryForList
(
sql
);
}
}
/*SELECT ds.uid,multi_dept_source_name,user_level,a.CLID,b.*,b.CatID as `试课教材ID`,b.SID as `试课课件ID`
FROM dm.dm_api_tag_student ds
LEFT JOIN (
SELECT uid,CLID as `试课ID`, status as `试课状态`,allocationtime as `约课时间`, ClassTime `试课时间` ,CLID,
FROM src.src_a1_class_courselesson_all WHERE uid = '9474704' and status != -1
) a ON ds.hash_uid = a.uid
LEFT JOIN src.src_a1_uc_usersubject_all b ON a.CLID = b.CLID
where hash_uid = '9474704'*/
}
}
src/main/java/cn/com/acadsoc/core/model/TextbookShuntLog.java
浏览文件 @
0d91357d
...
@@ -3,14 +3,57 @@ package cn.com.acadsoc.core.model;
...
@@ -3,14 +3,57 @@ package cn.com.acadsoc.core.model;
public
class
TextbookShuntLog
{
public
class
TextbookShuntLog
{
private
String
uid
;
private
String
uid
;
private
String
source_type_name
;
private
String
userLevel
;
private
String
grade
;
//用户兴趣
private
String
grade
;
//用户兴趣
private
String
tCatId
;
//推荐教材ID
private
String
tSid
;
//推荐课件ID
private
String
requestUser
;
//请求方,APP,admin后台
private
String
type
;
//所有教材,推荐教材
private
String
first_allocation_time
;
//试课
public
String
getUid
()
{
private
String
first_trial_time
;
//约课
return
uid
;
private
String
catid
;
//推荐教材ID
}
private
String
sid
;
//推荐课件ID
public
void
setUid
(
String
uid
)
{
this
.
uid
=
uid
;
}
public
String
getGrade
()
{
return
grade
;
}
public
void
setGrade
(
String
grade
)
{
this
.
grade
=
grade
;
}
public
String
gettCatId
()
{
return
tCatId
;
}
public
void
settCatId
(
String
tCatId
)
{
this
.
tCatId
=
tCatId
;
}
public
String
gettSid
()
{
return
tSid
;
}
public
void
settSid
(
String
tSid
)
{
this
.
tSid
=
tSid
;
}
public
String
getRequestUser
()
{
return
requestUser
;
}
public
void
setRequestUser
(
String
requestUser
)
{
this
.
requestUser
=
requestUser
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
}
}
src/main/java/cn/com/acadsoc/core/service/impl/TextbookServiceImpl.java
浏览文件 @
0d91357d
...
@@ -16,6 +16,7 @@ public class TextbookServiceImpl implements TextbookService {
...
@@ -16,6 +16,7 @@ public class TextbookServiceImpl implements TextbookService {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getTextbookByGrade
(
String
grade
)
{
public
List
<
Map
<
String
,
Object
>>
getTextbookByGrade
(
String
grade
)
{
return
textbookDao
.
getTextbookByGrade
(
grade
);
return
textbookDao
.
getTextbookByGrade
(
grade
);
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论