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
4ea9df43
Commit
4ea9df43
authored
Oct 17, 2019
by
王淑君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改更新视频进度
parent
ec319629
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
EducationApplication.java
src/main/java/org/rcisoft/EducationApplication.java
+2
-2
AddOrUpdateDTO.java
...java/org/rcisoft/business/bbanner/dto/AddOrUpdateDTO.java
+2
-2
BRStudentChapterController.java
...studentchapter/controller/BRStudentChapterController.java
+3
-1
ValidatedResult.java
src/main/java/org/rcisoft/core/validate/ValidatedResult.java
+2
-2
No files found.
src/main/java/org/rcisoft/EducationApplication.java
View file @
4ea9df43
...
...
@@ -15,8 +15,8 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* Created by lcy on 17/8/9.
*/
@EnableDiscoveryClient
//
@EnableEurekaClient
//
@EnableDiscoveryClient
@EnableEurekaClient
@EnableFeignClients
@SpringBootApplication
@EnableTransactionManagement
...
...
src/main/java/org/rcisoft/business/bbanner/dto/AddOrUpdateDTO.java
View file @
4ea9df43
...
...
@@ -12,11 +12,11 @@ public class AddOrUpdateDTO {
@ApiModelProperty
(
value
=
"BannerId"
,
required
=
false
,
dataType
=
"varchar"
)
private
String
businessId
;
@NotBlank
@NotBlank
(
message
=
"标题不能为空"
)
@ApiModelProperty
(
value
=
"标题"
,
required
=
true
,
dataType
=
"varchar"
)
private
String
title
;
@NotBlank
@NotBlank
(
message
=
"图片未上传"
)
@ApiModelProperty
(
value
=
"图片地址"
,
required
=
true
,
dataType
=
"varchar"
)
private
String
imageUrl
;
...
...
src/main/java/org/rcisoft/business/brstudentchapter/controller/BRStudentChapterController.java
View file @
4ea9df43
...
...
@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiImplicitParams;
import
io.swagger.annotations.ApiOperation
;
import
org.rcisoft.business.brstudentchapter.dto.BRStudentChapterDto
;
import
org.rcisoft.common.controller.PaginationController
;
import
org.rcisoft.sys.user.bean.CurUser
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -41,7 +42,8 @@ public class BRStudentChapterController extends PaginationController<BRStudentCh
@ApiOperation
(
value
=
"1201 添加/更新学生端观看章节进度"
,
notes
=
"添加/更新"
)
//@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PostMapping
(
value
=
"/add"
)
public
Result
addOrUpdate
(
@Valid
BRStudentChapterDto
brStudentChapterDto
,
BindingResult
bindingResult
)
{
public
Result
addOrUpdate
(
CurUser
curUser
,
@Valid
BRStudentChapterDto
brStudentChapterDto
,
BindingResult
bindingResult
)
{
brStudentChapterDto
.
setStudentId
(
curUser
.
getUserId
());
PersistModel
data
=
bRStudentChapterServiceImpl
.
save
(
brStudentChapterDto
);
return
Result
.
builder
(
data
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
...
...
src/main/java/org/rcisoft/core/validate/ValidatedResult.java
View file @
4ea9df43
...
...
@@ -61,10 +61,10 @@ public class ValidatedResult implements Serializable{
while
(
var3
.
hasNext
())
{
FieldError
fieldError
=
(
FieldError
)
var3
.
next
();
this
.
errorsMap
.
put
(
fieldError
.
getField
(),
new
String
[]{
fieldError
.
getDefaultMessage
(),
fieldError
.
getCode
()});
this
.
errorsMap
.
put
(
" "
,
new
String
[]{
fieldError
.
getDefaultMessage
()});
// this.errorsMap.put(fieldError.getField(), new String[]{fieldError.getDefaultMessage(), fieldError.getCode()});
}
}
return
this
.
errorsMap
;
}
...
...
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