Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
f30244a9
Commit
f30244a9
authored
Dec 02, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
d7563250
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
9 deletions
+37
-9
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+2
-2
BReleaseValueController.java
...ess/breleasevalue/controller/BReleaseValueController.java
+1
-0
BReleaseValueRepository.java
...t/business/breleasevalue/dao/BReleaseValueRepository.java
+4
-2
ReleaseValueResDto.java
...cisoft/business/breleasevalue/dto/ReleaseValueResDto.java
+5
-0
BReleaseValueService.java
.../business/breleasevalue/service/BReleaseValueService.java
+8
-0
BReleaseValueServiceImpl.java
.../breleasevalue/service/impl/BReleaseValueServiceImpl.java
+8
-3
messageTask.java
src/main/java/org/rcisoft/core/task/messageTask.java
+6
-0
application-mt.yml
src/main/resources/application-mt.yml
+2
-2
application-test.yml
src/main/resources/application-test.yml
+1
-0
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
f30244a9
...
@@ -1154,7 +1154,7 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -1154,7 +1154,7 @@ public class BLessonServiceImpl implements BLessonService {
}
}
Date
newDate
=
new
Date
();
Date
newDate
=
new
Date
();
if
(
newDate
.
before
(
bLesson
.
getApplyStartDate
())||
bLesson
.
get
Train
OverDate
().
before
(
newDate
)){
if
(
newDate
.
before
(
bLesson
.
getApplyStartDate
())||
bLesson
.
get
Apply
OverDate
().
before
(
newDate
)){
throw
new
ServiceException
(
ResultServiceEnums
.
NOT_APPLY_DATE
);
throw
new
ServiceException
(
ResultServiceEnums
.
NOT_APPLY_DATE
);
}
}
...
@@ -1184,7 +1184,7 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -1184,7 +1184,7 @@ public class BLessonServiceImpl implements BLessonService {
if
(
userInfo
==
null
){
if
(
userInfo
==
null
){
throw
new
ServiceException
(
ResultServiceEnums
.
COMPANY_NOT_EXISTS
);
throw
new
ServiceException
(
ResultServiceEnums
.
COMPANY_NOT_EXISTS
);
}
}
if
(
bLesson
.
getValueConsume
()
!=
null
&&
bLesson
.
getValueConsume
()
!=
0
&&
Integer
.
parseInt
(
userInfo
.
getValue
())
<
bLesson
.
getValueConsume
()){
if
(
bLesson
.
getValueConsume
()
!=
null
&&
bLesson
.
getValueConsume
()
!=
0
&&
Integer
.
parseInt
(
userInfo
.
getValue
())
<
bLesson
.
getValueConsume
()
&&
!
curUser
.
getUserId
().
equals
(
bLesson
.
getLecturerId
())
){
throw
new
ServiceException
(
ResultServiceEnums
.
VALUE_NOT_ENOUGH
);
throw
new
ServiceException
(
ResultServiceEnums
.
VALUE_NOT_ENOUGH
);
}
}
int
line
=
bLessonPersonRepository
.
updateByPrimaryKeySelective
(
person
);
int
line
=
bLessonPersonRepository
.
updateByPrimaryKeySelective
(
person
);
...
...
src/main/java/org/rcisoft/business/breleasevalue/controller/BReleaseValueController.java
View file @
f30244a9
...
@@ -46,6 +46,7 @@ public class BReleaseValueController extends PaginationController<BReleaseValue>
...
@@ -46,6 +46,7 @@ public class BReleaseValueController extends PaginationController<BReleaseValue>
@ApiOperation
(
value
=
"1501 分页查询积分管理"
,
notes
=
"根据条件分页查询"
,
response
=
BReleaseValue
.
class
)
@ApiOperation
(
value
=
"1501 分页查询积分管理"
,
notes
=
"根据条件分页查询"
,
response
=
BReleaseValue
.
class
)
@GetMapping
(
value
=
"/queryByPagination"
)
@GetMapping
(
value
=
"/queryByPagination"
)
public
Result
queryByPagination
(
CurUser
curUser
,
@Valid
ReleaseValueResDto
dto
,
BindingResult
br
)
{
public
Result
queryByPagination
(
CurUser
curUser
,
@Valid
ReleaseValueResDto
dto
,
BindingResult
br
)
{
bReleaseValueServiceImpl
.
setReleaseValueResDtoIds
(
dto
);
bReleaseValueServiceImpl
.
queryByPagination
(
getPaginationUtility
(),
dto
);
bReleaseValueServiceImpl
.
queryByPagination
(
getPaginationUtility
(),
dto
);
GridModel
gridModel
=
getGridModelResponse
();
GridModel
gridModel
=
getGridModelResponse
();
return
Result
.
builder
(
new
PersistModel
(
1
),
return
Result
.
builder
(
new
PersistModel
(
1
),
...
...
src/main/java/org/rcisoft/business/breleasevalue/dao/BReleaseValueRepository.java
View file @
f30244a9
...
@@ -26,7 +26,9 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
...
@@ -26,7 +26,9 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
" where del_flag != 1 and flag = 1 "
+
" where del_flag != 1 and flag = 1 "
+
" and corp_id = #{corpId} "
+
" and corp_id = #{corpId} "
+
"<if test=\"title!=null and title != ''\"> and title like concat('%',#{title},'%') </if> "
+
"<if test=\"title!=null and title != ''\"> and title like concat('%',#{title},'%') </if> "
+
"<if test=\"id!=null and id != ''\"> and business_id = #{id} </if> "
+
"<if test=\"ids!=null and ids.size() > 0\"> and business_id in "
+
" <foreach item='item' index='index' collection='ids' open='(' separator=',' close=')'> #{item} </foreach> "
+
"</if> "
+
"<if test=\"lessonValueStart!=null and lessonValueStart != ''\"> and lesson_value >= #{lessonValueStart} </if> "
+
"<if test=\"lessonValueStart!=null and lessonValueStart != ''\"> and lesson_value >= #{lessonValueStart} </if> "
+
"<if test=\"lessonValueEnd!=null and lessonValueEnd != ''\"> and lesson_value <= #{lessonValueEnd} </if> "
+
"<if test=\"lessonValueEnd!=null and lessonValueEnd != ''\"> and lesson_value <= #{lessonValueEnd} </if> "
+
"<if test=\"trainValueStart!=null and trainValueStart != ''\"> and train_value >= #{trainValueStart} </if> "
+
"<if test=\"trainValueStart!=null and trainValueStart != ''\"> and train_value >= #{trainValueStart} </if> "
+
...
@@ -184,7 +186,7 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
...
@@ -184,7 +186,7 @@ public interface BReleaseValueRepository extends BaseMapper<BReleaseValue> {
"and su.name like concat('%',#{name},'%')"
+
"and su.name like concat('%',#{name},'%')"
+
"and rv.corp_id = #{corpId}"
+
"and rv.corp_id = #{corpId}"
+
"</script>"
)
"</script>"
)
String
getReleaseId
(
@Param
(
"name"
)
String
name
,
@Param
(
"corpId"
)
String
corpId
);
List
<
String
>
getReleaseId
(
@Param
(
"name"
)
String
name
,
@Param
(
"corpId"
)
String
corpId
);
@Select
(
"<script>"
+
@Select
(
"<script>"
+
"select rv.lesson_value lessonValue, rv.train_value trainValue "
+
"select rv.lesson_value lessonValue, rv.train_value trainValue "
+
...
...
src/main/java/org/rcisoft/business/breleasevalue/dto/ReleaseValueResDto.java
View file @
f30244a9
...
@@ -3,6 +3,8 @@ package org.rcisoft.business.breleasevalue.dto;
...
@@ -3,6 +3,8 @@ package org.rcisoft.business.breleasevalue.dto;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
@Data
@Data
public
class
ReleaseValueResDto
{
public
class
ReleaseValueResDto
{
...
@@ -39,4 +41,7 @@ public class ReleaseValueResDto {
...
@@ -39,4 +41,7 @@ public class ReleaseValueResDto {
@ApiModelProperty
(
value
=
"不用传"
)
@ApiModelProperty
(
value
=
"不用传"
)
public
String
id
;
public
String
id
;
@ApiModelProperty
(
value
=
"不用传"
)
public
List
<
String
>
ids
;
}
}
src/main/java/org/rcisoft/business/breleasevalue/service/BReleaseValueService.java
View file @
f30244a9
...
@@ -22,6 +22,14 @@ public interface BReleaseValueService {
...
@@ -22,6 +22,14 @@ public interface BReleaseValueService {
*/
*/
PersistModel
save
(
BReleaseValueDto
bReleaseValueDto
);
PersistModel
save
(
BReleaseValueDto
bReleaseValueDto
);
/**
* 设置人员id
* @param dto
* @return
*/
ReleaseValueResDto
setReleaseValueResDtoIds
(
ReleaseValueResDto
dto
);
/**
/**
* 分页查询发布积分组
* 分页查询发布积分组
* @param pageUtil
* @param pageUtil
...
...
src/main/java/org/rcisoft/business/breleasevalue/service/impl/BReleaseValueServiceImpl.java
View file @
f30244a9
...
@@ -77,11 +77,16 @@ public class BReleaseValueServiceImpl implements BReleaseValueService {
...
@@ -77,11 +77,16 @@ public class BReleaseValueServiceImpl implements BReleaseValueService {
}
}
@Override
@Override
public
List
<
BReleaseValue
>
queryByPagination
(
PageUtil
pageUtil
,
ReleaseValueResDto
dto
)
{
public
ReleaseValueResDto
setReleaseValueResDtoIds
(
ReleaseValueResDto
dto
)
{
if
(
dto
.
getName
()
!=
null
&&
!
""
.
equals
(
dto
.
getName
())){
if
(
dto
.
getName
()
!=
null
&&
!
""
.
equals
(
dto
.
getName
())){
String
id
=
bReleaseValueRepository
.
getReleaseId
(
dto
.
name
,
dto
.
getCorpId
());
List
<
String
>
ids
=
bReleaseValueRepository
.
getReleaseId
(
dto
.
name
,
dto
.
getCorpId
());
dto
.
setId
(
id
);
dto
.
setIds
(
ids
);
}
return
dto
;
}
}
@Override
public
List
<
BReleaseValue
>
queryByPagination
(
PageUtil
pageUtil
,
ReleaseValueResDto
dto
)
{
List
<
BReleaseValue
>
list
=
bReleaseValueRepository
.
queryBReleaseValues
(
dto
);
List
<
BReleaseValue
>
list
=
bReleaseValueRepository
.
queryBReleaseValues
(
dto
);
return
list
;
return
list
;
}
}
...
...
src/main/java/org/rcisoft/core/task/messageTask.java
View file @
f30244a9
...
@@ -16,6 +16,7 @@ import org.rcisoft.common.util.outClient.MTNotificationApiRequestClient;
...
@@ -16,6 +16,7 @@ import org.rcisoft.common.util.outClient.MTNotificationApiRequestClient;
import
org.rcisoft.core.enums.MessageEnum
;
import
org.rcisoft.core.enums.MessageEnum
;
import
org.rcisoft.core.enums.UrlTypeEnum
;
import
org.rcisoft.core.enums.UrlTypeEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Propagation
;
...
@@ -25,6 +26,11 @@ import java.util.Date;
...
@@ -25,6 +26,11 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
@Component
@Component
@ConditionalOnProperty
(
prefix
=
"eduJob"
,
name
=
{
"messageTask"
},
havingValue
=
"true"
)
@Slf4j
@Slf4j
public
class
messageTask
{
public
class
messageTask
{
...
...
src/main/resources/application-mt.yml
View file @
f30244a9
...
@@ -97,9 +97,9 @@ global:
...
@@ -97,9 +97,9 @@ global:
eduJob
:
eduJob
:
taskInterval
:
0 0/5 * * * ?
taskInterval
:
0 0/5 * * * ?
trainBegin
:
true
trainBegin
:
true
#培训设置为缺勤定时任务
sec
:
300
#培训结束后 多少秒 之内的报名人员设置为缺勤
sec
:
300
#培训结束后 多少秒 之内的报名人员设置为缺勤
messageTask
:
true
#发送通知定时任务
libreoffice
:
libreoffice
:
ip
:
mt_libre
ip
:
mt_libre
port
:
8997
port
:
8997
...
...
src/main/resources/application-test.yml
View file @
f30244a9
...
@@ -99,6 +99,7 @@ eduJob:
...
@@ -99,6 +99,7 @@ eduJob:
taskInterval
:
0 0/5 * * * ?
taskInterval
:
0 0/5 * * * ?
trainBegin
:
true
trainBegin
:
true
sec
:
300
#培训结束后 多少秒 之内的报名人员设置为缺勤
sec
:
300
#培训结束后 多少秒 之内的报名人员设置为缺勤
messageTask
:
true
libreoffice
:
libreoffice
:
ip
:
mt_libre
ip
:
mt_libre
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment