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
bd0ceaed
Commit
bd0ceaed
authored
Oct 24, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
d05277a0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
BLessonController.java
...cisoft/business/blesson/controller/BLessonController.java
+2
-2
BLessonPersonRepository.java
...rcisoft/business/blesson/dao/BLessonPersonRepository.java
+5
-1
BLessonPerson.java
...va/org/rcisoft/business/blesson/entity/BLessonPerson.java
+3
-2
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+8
-2
No files found.
src/main/java/org/rcisoft/business/blesson/controller/BLessonController.java
View file @
bd0ceaed
...
...
@@ -554,10 +554,10 @@ public class BLessonController extends PaginationController<BLesson> {
@ApiImplicitParam
(
name
=
"lessonId"
,
value
=
"培训课id"
,
required
=
true
,
dataType
=
"varchar"
)
@GetMapping
(
value
=
"/toTraining"
)
public
Result
toTraining
(
CurUser
curUser
,
String
lessonId
)
{
return
Result
.
builder
(
new
PersistModel
(
1
),
return
Result
.
builder
(
new
PersistModel
(
bLessonService
.
toTraining
(
curUser
,
lessonId
)
),
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_ERROR
,
bLessonService
.
toTraining
(
curUser
,
lessonId
)
);
lessonId
);
}
@ApiOperation
(
value
=
"632 单一查询我参加培训的信息"
,
notes
=
"单一查询我参加培训的信息"
,
response
=
BLesson
.
class
)
...
...
src/main/java/org/rcisoft/business/blesson/dao/BLessonPersonRepository.java
View file @
bd0ceaed
...
...
@@ -254,6 +254,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
* @return
*/
@Select
(
"select * from b_lesson_person where lesson_id = #{lessonId} and person_id = #{personId} and del_flag != 1 "
)
@ResultMap
(
value
=
"BaseResultMap"
)
BLessonPerson
getAppointInTraining
(
@Param
(
"lessonId"
)
String
lessonId
,
@Param
(
"personId"
)
String
personId
);
...
...
@@ -273,8 +274,11 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
* 更新 报名状态、报名时间、培训状态
* @return
*/
@Update
(
"update b_lesson_person set apply_date=#{applyDate},is_apply =#{isAppl
a
y},train_is_sign = #{trainIsSign} "
+
@Update
(
"update b_lesson_person set apply_date=#{applyDate},is_apply =#{isApply},train_is_sign = #{trainIsSign} "
+
"where lesson_id= #{lessonId} and person_id=#{personId} and del_flag != 1 "
)
int
updateLessonPersonByUserId
(
BLessonPerson
lessonPerson
);
// @Insert("")
// int insertLessonPerson(BLessonPerson lessonPerson);
}
src/main/java/org/rcisoft/business/blesson/entity/BLessonPerson.java
View file @
bd0ceaed
...
...
@@ -14,6 +14,7 @@ import javax.persistence.Entity;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
javax.validation.constraints.NotBlank
;
import
java.util.Date
;
@Entity
@Table
(
name
=
"b_lesson_person"
)
...
...
@@ -70,10 +71,10 @@ public class BLessonPerson extends IdEntity<BLessonPerson> {
private
String
trainIsSign
;
@ApiModelProperty
(
value
=
"报名日期"
)
private
String
applyDate
;
private
Date
applyDate
;
@ApiModelProperty
(
value
=
"签到日期"
)
private
String
signDate
;
private
Date
signDate
;
//-----------------------------
@ApiModelProperty
(
value
=
"课程名称"
)
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
bd0ceaed
...
...
@@ -825,15 +825,21 @@ public class BLessonServiceImpl implements BLessonService {
log
.
info
(
"-----------该培训已报名-------------"
);
return
1
;
}
UserUtil
.
setCurrentMergeOperation
(
person
);
person
.
setTrainIsSign
(
"0"
);
person
.
setApplyDate
(
new
Date
());
person
.
setIsApply
(
"1"
);
return
bLessonPersonRepository
.
updateLessonPersonByUserId
(
person
);
}
else
{
UserUtil
.
setCurrentPersistOperation
(
bLessonPerson
);
bLessonPerson
.
setPersonId
(
curUser
.
getUserId
());
bLessonPerson
.
setLessonId
(
lessonId
);
bLessonPerson
.
setIsAppoint
(
"0"
);
bLessonPerson
.
setIsApply
(
"1"
);
return
bLessonPersonRepository
.
insertSelective
(
bLessonPerson
);
bLessonPerson
.
setTrainIsSign
(
"0"
);
bLessonPerson
.
setApplyDate
(
new
Date
());
bLessonPerson
.
setRemarks
(
""
);
//插入 用户id 、培训id、指派状态、报名状态、培训状态、报名时间 、通用字段
return
bLessonPersonRepository
.
insert
(
bLessonPerson
);
}
}
...
...
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