Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 157fb021
authored
Jul 17, 2026
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
春节备份
1 parent
1e2b22bf
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
234 additions
and
231 deletions
src/main/java/com/subsidy/common/configure/WebLogAspect.java
src/main/java/com/subsidy/controller/OssController.java
src/main/java/com/subsidy/controller/SignInRecordController.java
src/main/java/com/subsidy/jobs/DudaoJob.java
src/main/java/com/subsidy/jobs/PushJob.java
src/main/java/com/subsidy/jobs/RenSheJuJob.java
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
src/main/java/com/subsidy/service/impl/DudaoServiceImpl.java
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
src/main/java/com/subsidy/util/ConstantUtils.java
src/main/java/com/subsidy/util/OSSUtils.java
src/main/java/com/subsidy/util/VodUtil.java
src/main/resources/application-dev.properties
src/main/resources/application-prod.properties
src/main/resources/application.properties
src/main/resources/mapper/DudaoMapper.xml
src/main/resources/mapper/MemberMapper.xml
src/main/resources/mapper/OprMemDictMapper.xml
src/main/resources/mapper/SignInRecordMapper.xml
src/main/java/com/subsidy/common/configure/WebLogAspect.java
View file @
157fb02
...
@@ -30,9 +30,9 @@ public class WebLogAspect {
...
@@ -30,9 +30,9 @@ public class WebLogAspect {
public
void
logBeforeController
(
JoinPoint
joinPoint
)
{
public
void
logBeforeController
(
JoinPoint
joinPoint
)
{
//
RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes();
RequestAttributes
requestAttributes
=
RequestContextHolder
.
getRequestAttributes
();
//这个RequestContextHolder是Springmvc提供来获得请求的东西
//这个RequestContextHolder是Springmvc提供来获得请求的东西
//
HttpServletRequest request = ((ServletRequestAttributes)requestAttributes).getRequest();
HttpServletRequest
request
=
((
ServletRequestAttributes
)
requestAttributes
).
getRequest
();
// 记录下请求内容
// 记录下请求内容
// logger.info("####requestUrl : " + request.getRequestURL().toString());
// logger.info("####requestUrl : " + request.getRequestURL().toString());
...
...
src/main/java/com/subsidy/controller/OssController.java
View file @
157fb02
...
@@ -29,10 +29,10 @@ import java.util.List;
...
@@ -29,10 +29,10 @@ import java.util.List;
@RequestMapping
(
"/oss"
)
@RequestMapping
(
"/oss"
)
public
class
OssController
{
public
class
OssController
{
public
static
final
String
keyId
=
"LTAI5t
PAH7P7WQVeowo517BE
"
;
public
static
final
String
keyId
=
"LTAI5t
LUBG4B6QxhHrhddc7p
"
;
public
static
final
String
secret
=
"
0ueqhIfdAZyw5lWlBVSLpAxTtx37RY
"
;
public
static
final
String
secret
=
"
eber38QGHZixTQ6bFfrd80kbg67jIP
"
;
@Value
(
"${spring.profiles.active}"
)
@Value
(
"${spring.profiles.active}"
)
...
...
src/main/java/com/subsidy/controller/SignInRecordController.java
View file @
157fb02
...
@@ -62,7 +62,7 @@ public class SignInRecordController {
...
@@ -62,7 +62,7 @@ public class SignInRecordController {
@PostMapping
(
"signInStatus"
)
@PostMapping
(
"signInStatus"
)
@ApiOperation
(
"判断学生当天有没有打卡 {memberId 学生id}"
)
@ApiOperation
(
"判断学生当天有没有打卡 {memberId 学生id}"
)
//
@LoginRequired
@LoginRequired
@TimeRequired
@TimeRequired
public
ResponseVO
signInStatus
(
@RequestBody
SignInRecordDO
signInRecordDO
)
{
public
ResponseVO
signInStatus
(
@RequestBody
SignInRecordDO
signInRecordDO
)
{
return
ResponseData
.
generateCreatedResponse
(
0
,
signInRecordService
.
signInStatus
(
signInRecordDO
));
return
ResponseData
.
generateCreatedResponse
(
0
,
signInRecordService
.
signInStatus
(
signInRecordDO
));
...
...
src/main/java/com/subsidy/jobs/DudaoJob.java
View file @
157fb02
package
com
.
subsidy
.
jobs
;
//
package com.subsidy.jobs;
//
import
com.subsidy.service.DudaoService
;
//
import com.subsidy.service.DudaoService;
import
org.springframework.beans.factory.annotation.Autowired
;
//
import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
//
import org.springframework.beans.factory.annotation.Value;
import
org.springframework.scheduling.annotation.Scheduled
;
//
import org.springframework.scheduling.annotation.Scheduled;
import
org.springframework.stereotype.Component
;
//
import org.springframework.stereotype.Component;
//
import
java.io.IOException
;
//
import java.io.IOException;
//
/**
/
//
**
* 企业职工线上培训
//
* 企业职工线上培训
*/
//
*/
@Component
//
@Component
public
class
DudaoJob
{
//
public class DudaoJob {
//
@Value
(
"${spring.profiles.active}"
)
//
@Value("${spring.profiles.active}")
private
String
env
;
//
private String env;
//
@Autowired
//
@Autowired
private
DudaoService
dudaoService
;
//
private DudaoService dudaoService;
//
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
public
void
classBaseInfo
()
throws
IOException
{
//
public void classBaseInfo() throws IOException {
if
(
"prod"
.
equals
(
env
)){
//
if ("prod".equals(env)){
dudaoService
.
classBaseInfo
();
//
dudaoService.classBaseInfo();
}
//
}
}
//
}
//
@Scheduled
(
cron
=
"0 5 2 * * ?"
)
//
@Scheduled(cron = "0 5 2 * * ?")
public
void
classHourBehavior
()
throws
IOException
{
//
public void classHourBehavior() throws IOException {
if
(
"prod"
.
equals
(
env
)){
//
if ("prod".equals(env)){
dudaoService
.
classHourBehavior
();
//
dudaoService.classHourBehavior();
}
//
}
}
//
}
//
@Scheduled
(
cron
=
"0 10 2 * * ?"
)
//
@Scheduled(cron = "0 10 2 * * ?")
public
void
uploadChapterBehavior
()
throws
IOException
{
//
public void uploadChapterBehavior() throws IOException {
if
(
"prod"
.
equals
(
env
)){
//
if ("prod".equals(env)){
dudaoService
.
uploadChapterBehavior
();
//
dudaoService.uploadChapterBehavior();
}
//
}
}
//
}
//
@Scheduled
(
cron
=
"0 15 2 * * ?"
)
//
@Scheduled(cron = "0 15 2 * * ?")
public
void
uploadClassAnswerQuestionBehavior
()
throws
IOException
{
//
public void uploadClassAnswerQuestionBehavior() throws IOException {
if
(
"prod"
.
equals
(
env
)){
//
if ("prod".equals(env)){
dudaoService
.
uploadClassAnswerQuestionBehavior
();
//
dudaoService.uploadClassAnswerQuestionBehavior();
}
//
}
}
//
}
//
@Scheduled
(
cron
=
"0 20 2 * * ?"
)
//
@Scheduled(cron = "0 20 2 * * ?")
public
void
uploadClassCode
()
throws
IOException
{
//
public void uploadClassCode()throws IOException {
if
(
"prod"
.
equals
(
env
)){
//
if ("prod".equals(env)){
dudaoService
.
uploadClassCode
();
//
dudaoService.uploadClassCode();
}
//
}
}
//
}
//
}
//
}
src/main/java/com/subsidy/jobs/PushJob.java
View file @
157fb02
package
com
.
subsidy
.
jobs
;
//
package com.subsidy.jobs;
//
import
com.subsidy.service.PushDataService
;
//
import com.subsidy.service.PushDataService;
import
com.subsidy.service.impl.PushDataServiceImpl
;
//
import com.subsidy.service.impl.PushDataServiceImpl;
import
org.springframework.beans.factory.annotation.Autowired
;
//
import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
//
import org.springframework.beans.factory.annotation.Value;
import
org.springframework.scheduling.annotation.Scheduled
;
//
import org.springframework.scheduling.annotation.Scheduled;
import
org.springframework.stereotype.Component
;
//
import org.springframework.stereotype.Component;
//
import
java.io.IOException
;
//
import java.io.IOException;
//
/**
/
//
**
* 核对数据定时任务
//
* 核对数据定时任务
*/
//
*/
@Component
//
@Component
public
class
PushJob
{
//
public class PushJob {
//
@Value
(
"${spring.profiles.active}"
)
//
@Value("${spring.profiles.active}")
private
String
env
;
//
private String env;
//
@Autowired
//
@Autowired
private
PushDataService
pushDataService
;
//
private PushDataService pushDataService;
//
/**
//
/**
* POST-4:学时
//
* POST-4:学时
*/
//
*/
@Scheduled
(
cron
=
"0 0 4 * * ?"
)
//
@Scheduled(cron = "0 0 4 * * ?")
public
void
post4
()
throws
IOException
{
//
public void post4() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
//
if ("prod".equals(env)) {
pushDataService
.
post4
();
//
pushDataService.post4();
}
//
}
}
//
}
//
/**
//
/**
* POST-5: 考试
//
* POST-5: 考试
*/
//
*/
@Scheduled
(
cron
=
"0 10 4 * * ?"
)
//
@Scheduled(cron = "0 10 4 * * ?")
public
void
post5
()
throws
IOException
{
//
public void post5() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
//
if ("prod".equals(env)) {
pushDataService
.
post5
();
//
pushDataService.post5();
}
//
}
}
//
}
//
/**
//
/**
* POST-6: 答疑
//
* POST-6: 答疑
*/
//
*/
@Scheduled
(
cron
=
"0 20 4 * * ?"
)
//
@Scheduled(cron = "0 20 4 * * ?")
public
void
post6
()
throws
IOException
{
//
public void post6() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
//
if ("prod".equals(env)) {
pushDataService
.
post6
();
//
pushDataService.post6();
}
//
}
}
//
}
//
/**
//
/**
* POST-7:人脸
//
* POST-7:人脸
*/
//
*/
@Scheduled
(
cron
=
"0 30 4 * * ?"
)
//
@Scheduled(cron = "0 30 4 * * ?")
public
void
post7
()
throws
IOException
{
//
public void post7() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
//
if ("prod".equals(env)) {
pushDataService
.
post7
();
//
pushDataService.post7();
}
//
}
}
//
}
//
//
/**
//
/**
* 定时发短信
//
* 定时发短信
*/
//
*/
@Scheduled
(
cron
=
"0 0 9 * * ?"
)
//
@Scheduled(cron = "0 0 9 * * ?")
public
void
sendWarning
(){
//
public void sendWarning(){
pushDataService
.
sendWarning
();
//
pushDataService.sendWarning();
}
//
}
//
//
//
//
//
}
//
}
src/main/java/com/subsidy/jobs/RenSheJuJob.java
View file @
157fb02
...
@@ -64,65 +64,65 @@ public class RenSheJuJob {
...
@@ -64,65 +64,65 @@ public class RenSheJuJob {
private
String
env
;
private
String
env
;
/**
// /**
// * POST-3:班级基本信息信息采集接口
//// * POST-3:班级基本信息信息采集接口
//// */
// @Scheduled(cron = "0 0 1 * * ?")
// public void classBaseInfo() throws IOException {
// if ("prod".equals(env)) {
// renSheJuService.classBaseInfo();
// }
// }
//
// /**
// * POST-4:学时信息采集接口
// */
// */
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
// @Scheduled(cron = "0 5 1 * * ?")
public
void
classBaseInfo
()
throws
IOException
{
// public void classHourBehavior() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
// if ("prod".equals(env)) {
renSheJuService
.
classBaseInfo
();
// renSheJuService.classHourBehavior();
}
// }
}
// }
//
/**
// /**
* POST-4:学时信息采集接口
// * POST-5:考试信息采集接口
*/
// */
@Scheduled
(
cron
=
"0 5 1 * * ?"
)
// @Scheduled(cron = "0 10 1 * * ?")
public
void
classHourBehavior
()
throws
IOException
{
// public void uploadChapterBehavior() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
// if ("prod".equals(env)) {
renSheJuService
.
classHourBehavior
();
// renSheJuService.uploadChapterBehavior();
}
// }
}
// }
//
/**
// /**
* POST-5:考试信息采集接口
// * POST-6:答疑辅导采集接口
*/
// */
@Scheduled
(
cron
=
"0 10 1 * * ?"
)
// @Scheduled(cron = "0 15 1 * * ?")
public
void
uploadChapterBehavior
()
throws
IOException
{
// public void uploadClassAnswerQuestionBehavior() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
// if ("prod".equals(env)) {
renSheJuService
.
uploadChapterBehavior
();
// renSheJuService.uploadClassAnswerQuestionBehavior();
}
// }
}
// }
//
/**
// /**
* POST-6:答疑辅导采集接口
// * POST-7 班级活跃度/实名认证照片信息采集接口
*/
// */
@Scheduled
(
cron
=
"0 15 1 * * ?"
)
// @Scheduled(cron = "0 20 1 * * ?")
public
void
uploadClassAnswerQuestionBehavior
()
throws
IOException
{
// public void uploadImage() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
// if ("prod".equals(env)) {
renSheJuService
.
uploadClassAnswerQuestionBehavior
();
// renSheJuService.uploadImage();
}
// }
}
// }
//
/**
// /**
* POST-7 班级活跃度/实名认证照片信息采集接口
// * POST-8 获取培训待绑定的(班级编号,项目编号)列表
*/
// */
@Scheduled
(
cron
=
"0 20 1 * * ?"
)
// @Scheduled(cron = "0 25 1 * * ?")
public
void
uploadImage
()
throws
IOException
{
// public void getClassCodeByPrivateKey() throws IOException {
if
(
"prod"
.
equals
(
env
))
{
// if ("prod".equals(env)) {
renSheJuService
.
uploadImage
();
// renSheJuService.getClassCodeByPrivateKey();
}
// }
}
// }
/**
* POST-8 获取培训待绑定的(班级编号,项目编号)列表
*/
@Scheduled
(
cron
=
"0 25 1 * * ?"
)
public
void
getClassCodeByPrivateKey
()
throws
IOException
{
if
(
"prod"
.
equals
(
env
))
{
renSheJuService
.
getClassCodeByPrivateKey
();
}
}
// /**
// /**
// * POST-8 上下游班级数据绑定接口
// * POST-8 上下游班级数据绑定接口
...
...
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
View file @
157fb02
...
@@ -187,6 +187,8 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
...
@@ -187,6 +187,8 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
}
}
if
(
null
!=
administerDO1
)
{
if
(
null
!=
administerDO1
)
{
//加密
if
(
administerDO1
.
getPassword
().
equals
(
administerDO
.
getPassword
()))
{
if
(
administerDO1
.
getPassword
().
equals
(
administerDO
.
getPassword
()))
{
String
token
=
JwtUtil
.
generateToken
(
administerDO1
.
getId
(),
ConstantUtils
.
ADMINISTER_TERMINATE
);
String
token
=
JwtUtil
.
generateToken
(
administerDO1
.
getId
(),
ConstantUtils
.
ADMINISTER_TERMINATE
);
//登录成功,记录日志
//登录成功,记录日志
...
...
src/main/java/com/subsidy/service/impl/DudaoServiceImpl.java
View file @
157fb02
...
@@ -56,7 +56,7 @@ public class DudaoServiceImpl implements DudaoService {
...
@@ -56,7 +56,7 @@ public class DudaoServiceImpl implements DudaoService {
return
new
RensheResponseVO
();
return
new
RensheResponseVO
();
}
}
public
RensheResponseVO
classBaseInfo
()
throws
IOException
{
public
RensheResponseVO
classBaseInfo
()
throws
IOException
{
OkHttpClient
client
=
new
OkHttpClient
().
newBuilder
()
OkHttpClient
client
=
new
OkHttpClient
().
newBuilder
()
.
build
();
.
build
();
...
@@ -83,7 +83,7 @@ public class DudaoServiceImpl implements DudaoService {
...
@@ -83,7 +83,7 @@ public class DudaoServiceImpl implements DudaoService {
List
<
Long
>
imageClassIds
=
dudaoMapper
.
imageClassIds
(
"0"
);
List
<
Long
>
imageClassIds
=
dudaoMapper
.
imageClassIds
(
"0"
);
Set
<
Long
>
classIds
=
new
HashSet
<>();
Set
<
Long
>
classIds
=
new
HashSet
<>();
// classIds.add(
488
L);
// classIds.add(
535
L);
vodClassIds
.
stream
().
forEach
(
x
->
classIds
.
add
(
x
));
vodClassIds
.
stream
().
forEach
(
x
->
classIds
.
add
(
x
));
examClassIds
.
stream
().
forEach
(
x
->
classIds
.
add
(
x
));
examClassIds
.
stream
().
forEach
(
x
->
classIds
.
add
(
x
));
...
@@ -176,7 +176,7 @@ public class DudaoServiceImpl implements DudaoService {
...
@@ -176,7 +176,7 @@ public class DudaoServiceImpl implements DudaoService {
List
<
Long
>
vodClassIds
=
dudaoMapper
.
vodClassIds
(
"0"
);
List
<
Long
>
vodClassIds
=
dudaoMapper
.
vodClassIds
(
"0"
);
// List<Long> vodClassIds = new ArrayList<>();
// List<Long> vodClassIds = new ArrayList<>();
// vodClassIds.add(
488
L);
// vodClassIds.add(
535
L);
List
<
DailyStudyInfoVO
>
result
=
new
ArrayList
<>();
List
<
DailyStudyInfoVO
>
result
=
new
ArrayList
<>();
...
@@ -307,7 +307,7 @@ public class DudaoServiceImpl implements DudaoService {
...
@@ -307,7 +307,7 @@ public class DudaoServiceImpl implements DudaoService {
List
<
Long
>
classIds
=
dudaoMapper
.
dailyExamBasic
(
"0"
);
List
<
Long
>
classIds
=
dudaoMapper
.
dailyExamBasic
(
"0"
);
// List<Long>classIds = new ArrayList<>();
// List<Long>classIds = new ArrayList<>();
// classIds.add(
488
L);
// classIds.add(
535
L);
try
{
try
{
if
(
classIds
.
size
()
>
0
)
{
if
(
classIds
.
size
()
>
0
)
{
...
...
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
View file @
157fb02
...
@@ -737,7 +737,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
...
@@ -737,7 +737,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
CheckStatusVO
checkStatusVO
=
new
CheckStatusVO
();
CheckStatusVO
checkStatusVO
=
new
CheckStatusVO
();
MemberDO
memberDO1
=
this
.
baseMapper
.
selectById
(
memberDO
.
getId
());
MemberDO
memberDO1
=
this
.
baseMapper
.
selectById
(
memberDO
.
getId
());
if
(
memberDO1
.
getFirstLogin
()
==
1
)
{
if
(
null
!=
memberDO1
.
getFirstLogin
()
&&
memberDO1
.
getFirstLogin
()
==
1
)
{
checkStatusVO
.
setSMSStatus
(
true
);
checkStatusVO
.
setSMSStatus
(
true
);
}
else
{
}
else
{
checkStatusVO
.
setSMSStatus
(
false
);
checkStatusVO
.
setSMSStatus
(
false
);
...
...
src/main/java/com/subsidy/util/ConstantUtils.java
View file @
157fb02
...
@@ -65,12 +65,12 @@ public class ConstantUtils {
...
@@ -65,12 +65,12 @@ public class ConstantUtils {
/**
/**
* 短信 RAM账号AccessKey ID
* 短信 RAM账号AccessKey ID
*/
*/
public
static
final
String
ACCESS_KEY_ID
=
"LTAI5t
PAH7P7WQVeowo517BE
"
;
public
static
final
String
ACCESS_KEY_ID
=
"LTAI5t
LUBG4B6QxhHrhddc7p
"
;
/**
/**
* 短信 RAM账号AccessKey Secret
* 短信 RAM账号AccessKey Secret
*/
*/
public
static
final
String
SECRET
=
"
0ueqhIfdAZyw5lWlBVSLpAxTtx37RY
"
;
public
static
final
String
SECRET
=
"
eber38QGHZixTQ6bFfrd80kbg67jIP
"
;
/**
/**
* 腾讯云点播视频转码模板
* 腾讯云点播视频转码模板
...
...
src/main/java/com/subsidy/util/OSSUtils.java
View file @
157fb02
...
@@ -17,10 +17,10 @@ import java.util.UUID;
...
@@ -17,10 +17,10 @@ import java.util.UUID;
public
class
OSSUtils
{
public
class
OSSUtils
{
// @Value("${aliyun.oss.accessKeyId}")
// @Value("${aliyun.oss.accessKeyId}")
private
static
String
accessKeyId
=
"LTAI5t
PAH7P7WQVeowo517BE
"
;
private
static
String
accessKeyId
=
"LTAI5t
LUBG4B6QxhHrhddc7p
"
;
// @Value("${aliyun.oss.accessKeySecret}")
// @Value("${aliyun.oss.accessKeySecret}")
private
static
String
secretAccessKey
=
"
0ueqhIfdAZyw5lWlBVSLpAxTtx37RY
"
;
private
static
String
secretAccessKey
=
"
eber38QGHZixTQ6bFfrd80kbg67jIP
"
;
// @Value("${aliyun.oss.endpoint}")
// @Value("${aliyun.oss.endpoint}")
private
static
String
endPoint
=
"oss-cn-beijing.aliyuncs.com"
;
private
static
String
endPoint
=
"oss-cn-beijing.aliyuncs.com"
;
...
...
src/main/java/com/subsidy/util/VodUtil.java
View file @
157fb02
...
@@ -120,4 +120,5 @@ public class VodUtil {
...
@@ -120,4 +120,5 @@ public class VodUtil {
throw
new
HttpException
(
99999
,
e
.
getMessage
());
throw
new
HttpException
(
99999
,
e
.
getMessage
());
}
}
}
}
}
}
src/main/resources/application-dev.properties
View file @
157fb02
...
@@ -2,21 +2,21 @@
...
@@ -2,21 +2,21 @@
spring.server.port
=
23457
spring.server.port
=
23457
# 数据源配置
# 数据源配置
#spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.url
=
jdbc:mysql://116.62.57.92:3306/subsidy_new?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
##spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
##spring.datasource.username=ykadmin_new
##spring.datasource.password=youkedb608@good
#spring.datasource.username=devloper
#spring.datasource.password=dev@1553$
# 数据源配置
spring.datasource.url
=
jdbc:mysql://139.224.253.21:3306/subsidy_new?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.type
=
com.alibaba.druid.pool.DruidDataSource
spring.datasource.type
=
com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-
name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-
name
=
com.mysql.cj.jdbc.Driver
spring.datasource.username
=
root
#spring.datasource.username=ykadmin_new
spring.datasource.password
=
ykhladmin302
#spring.datasource.password=youkedb608@good
spring.datasource.username
=
devloper
spring.datasource.password
=
dev@1553$
# 数据源配置
#spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy_new?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=root
#spring.datasource.password=ykhladmin302
spring.datasource.druid.initialSize
=
5
spring.datasource.druid.initialSize
=
5
spring.datasource.druid.minIdle
=
5
spring.datasource.druid.minIdle
=
5
...
...
src/main/resources/application-prod.properties
View file @
157fb02
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
spring.server.port
=
23459
spring.server.port
=
23459
# 数据源配置
# 数据源配置
spring.datasource.url
=
jdbc:mysql://rm-uf69w46mo6agw0ahao.mysql.rds.aliyuncs.com:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.url=jdbc:mysql://rm-uf69w46mo6agw0ahao.mysql.rds.aliyuncs.com:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.url
=
jdbc:mysql://rm-uf62202s176hufw8x0o.mysql.rds.aliyuncs.com:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.type
=
com.alibaba.druid.pool.DruidDataSource
spring.datasource.type
=
com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-
name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-
name
=
com.mysql.cj.jdbc.Driver
spring.datasource.username
=
ykadmin_new
spring.datasource.username
=
ykadmin_new
...
...
src/main/resources/application.properties
View file @
157fb02
...
@@ -42,8 +42,8 @@ spring.cache.ehcache.config=classpath:ehcache.xml
...
@@ -42,8 +42,8 @@ spring.cache.ehcache.config=classpath:ehcache.xml
# 阿里云短信
# 阿里云短信
sms.product
=
Dysmsapi
sms.product
=
Dysmsapi
sms.domain
=
dysmsapi.aliyuncs.com
sms.domain
=
dysmsapi.aliyuncs.com
sms.accessKeyId
=
LTAI5t
PAH7P7WQVeowo517BE
sms.accessKeyId
=
LTAI5t
LUBG4B6QxhHrhddc7p
sms.accessKeySecret
=
0ueqhIfdAZyw5lWlBVSLpAxTtx37RY
sms.accessKeySecret
=
eber38QGHZixTQ6bFfrd80kbg67jIP
#wechat.app-id=wx7785293ff5e31f14
#wechat.app-id=wx7785293ff5e31f14
#wechat.app-secret=25d57cad61fc1b45b3afa46d4c35e8f6
#wechat.app-secret=25d57cad61fc1b45b3afa46d4c35e8f6
#wechat.agentId=1000008
#wechat.agentId=1000008
...
...
src/main/resources/mapper/DudaoMapper.xml
View file @
157fb02
...
@@ -437,7 +437,7 @@
...
@@ -437,7 +437,7 @@
WHERE
WHERE
t1.delete_date IS NULL
t1.delete_date IS NULL
AND DATE_FORMAT( DATE_ADD( t1.create_date,interval 1 day), '%Y-%m-%d' ) = DATE_FORMAT( NOW(), '%Y-%m-%d' )
AND DATE_FORMAT( DATE_ADD( t1.create_date,interval 1 day), '%Y-%m-%d' ) = DATE_FORMAT( NOW(), '%Y-%m-%d' )
and class_id = #{classId}
and
t1.
class_id = #{classId}
</select>
</select>
<select
id=
"classVodName"
parameterType=
"long"
resultType=
"string"
>
<select
id=
"classVodName"
parameterType=
"long"
resultType=
"string"
>
...
...
src/main/resources/mapper/MemberMapper.xml
View file @
157fb02
...
@@ -403,7 +403,7 @@
...
@@ -403,7 +403,7 @@
<select
id=
"getMemberListBySignInRecord"
resultType=
"com.subsidy.model.MemberDO"
>
<select
id=
"getMemberListBySignInRecord"
resultType=
"com.subsidy.model.MemberDO"
>
SELECT
SELECT
m.*
distinct
m.*
FROM
FROM
member m
member m
LEFT JOIN class_member_mapping cmm ON cmm.member_id = m.id
LEFT JOIN class_member_mapping cmm ON cmm.member_id = m.id
...
@@ -413,8 +413,7 @@
...
@@ -413,8 +413,7 @@
AND m.delete_date IS NULL
AND m.delete_date IS NULL
AND cmm.delete_date IS NULL
AND cmm.delete_date IS NULL
AND s.signInCount is null
AND s.signInCount is null
GROUP BY
m.id
</select>
</select>
<select
id=
"getUnfinishedMemberList"
resultType=
"com.subsidy.model.MemberDO"
>
<select
id=
"getUnfinishedMemberList"
resultType=
"com.subsidy.model.MemberDO"
>
...
...
src/main/resources/mapper/OprMemDictMapper.xml
View file @
157fb02
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
AND opr_type = "登录"
AND opr_type = "登录"
and delete_date IS NULL
and delete_date IS NULL
GROUP BY
GROUP BY
user_id
user_id
,opr_type
ORDER BY
ORDER BY
create_date DESC
create_date DESC
) t1
) t1
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
AND opr_type = "登出"
AND opr_type = "登出"
and delete_date is null
and delete_date is null
GROUP BY
GROUP BY
user_id
user_id
,opr_type
ORDER BY
ORDER BY
create_date DESC
create_date DESC
) t2 ON t1.user_id = t2.user_id
) t2 ON t1.user_id = t2.user_id
...
@@ -263,7 +263,7 @@
...
@@ -263,7 +263,7 @@
delete_date IS NULL
delete_date IS NULL
AND DATE_FORMAT( create_date, '%Y-%m-%d' ) = DATE_FORMAT( now(), '%Y-%m-%d' )
AND DATE_FORMAT( create_date, '%Y-%m-%d' ) = DATE_FORMAT( now(), '%Y-%m-%d' )
GROUP BY
GROUP BY
member_id
member_id
,ip_address
) t3 ON t1.member_id = t3.member_id
) t3 ON t1.member_id = t3.member_id
</select>
</select>
...
...
src/main/resources/mapper/SignInRecordMapper.xml
View file @
157fb02
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
and t3.delete_date is null
and t3.delete_date is null
and t3.id = #{id}
and t3.id = #{id}
<if
test=
"courseName != null and courseName !=''"
>
<if
test=
"courseName != null and courseName !=''"
>
AND t.course_name like concat('%',#{courseName} ,'%')
AND t
2
.course_name like concat('%',#{courseName} ,'%')
</if>
</if>
<if
test=
"className != null and className !=''"
>
<if
test=
"className != null and className !=''"
>
and t.class_name like concat('%',#{className} ,'%')
and t.class_name like concat('%',#{className} ,'%')
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment