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
73cb6993
Commit
73cb6993
authored
Oct 17, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/meiteng' into meiteng
parents
57c0092f
4ea9df43
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
23 deletions
+31
-23
EducationApplication.java
src/main/java/org/rcisoft/EducationApplication.java
+2
-2
AddOrUpdateDTO.java
...java/org/rcisoft/business/bbanner/dto/AddOrUpdateDTO.java
+2
-2
BLessonPersonServiceImpl.java
...siness/blesson/service/impl/BLessonPersonServiceImpl.java
+3
-0
BRStudentChapterController.java
...studentchapter/controller/BRStudentChapterController.java
+3
-1
ValidatedResult.java
src/main/java/org/rcisoft/core/validate/ValidatedResult.java
+2
-2
SysUserServiceImpl.java
...org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
+19
-16
No files found.
src/main/java/org/rcisoft/EducationApplication.java
View file @
73cb6993
...
...
@@ -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 @
73cb6993
...
...
@@ -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/blesson/service/impl/BLessonPersonServiceImpl.java
View file @
73cb6993
...
...
@@ -118,6 +118,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
@Override
public
PersistModel
addMyLearnLesson
(
AddMyLearnLessonDTO
addMyLearnLessonDTO
)
{
List
<
BLessonPerson
>
bLessonPersons
=
bLessonPersonRepository
.
selectByPersonAndLesson
(
addMyLearnLessonDTO
);
BLessonPerson
bLessonPerson
;
int
line
=
0
;
...
...
@@ -136,6 +137,8 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
line
=
bLessonPersonRepository
.
insertBLessonPerson
(
bLessonPerson
);
//课程在学人数+1
bLessonRepository
.
personNumberPlusOne
(
addMyLearnLessonDTO
.
getLessonId
());
}
else
if
(
bLessonPersons
!=
null
&&
bLessonPersons
.
size
()>
0
){
line
=
1
;
}
return
new
PersistModel
(
line
);
}
...
...
src/main/java/org/rcisoft/business/brstudentchapter/controller/BRStudentChapterController.java
View file @
73cb6993
...
...
@@ -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 @
73cb6993
...
...
@@ -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
;
}
...
...
src/main/java/org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
View file @
73cb6993
...
...
@@ -65,21 +65,23 @@ public class SysUserServiceImpl implements SysUserService {
mtUserGetsReqDTO
.
setIds
(
list
);
List
<
MTUserInfoRspDTO
>
depart
=
mtCotactApiRequestClient
.
userGets
(
mtUserGetsReqDTO
);
StringBuffer
sb
=
new
StringBuffer
();
String
position
=
""
;
for
(
SysUser
sysUser
:
users
)
{
for
(
MTUserInfoRspDTO
mtUserInfoRspDTO
:
depart
)
{
if
(
sysUser
.
getBusinessId
().
equals
(
mtUserInfoRspDTO
.
getId
()))
{
for
(
MTUserInfoRspDTO
.
DeptsBean
deptsBean
:
mtUserInfoRspDTO
.
getDepts
())
{
for
(
MTUserInfoRspDTO
.
DeptsBean
.
PathBean
pathBean
:
deptsBean
.
getPath
())
{
if
(
null
!=
pathBean
)
sb
.
append
(
pathBean
.
getName
()
+
"-"
);
if
(
depart
!=
null
)
{
StringBuffer
sb
=
new
StringBuffer
();
String
position
=
""
;
for
(
SysUser
sysUser
:
users
)
{
for
(
MTUserInfoRspDTO
mtUserInfoRspDTO
:
depart
)
{
if
(
sysUser
.
getBusinessId
().
equals
(
mtUserInfoRspDTO
.
getId
()))
{
for
(
MTUserInfoRspDTO
.
DeptsBean
deptsBean
:
mtUserInfoRspDTO
.
getDepts
())
{
for
(
MTUserInfoRspDTO
.
DeptsBean
.
PathBean
pathBean
:
deptsBean
.
getPath
())
{
if
(
null
!=
pathBean
)
sb
.
append
(
pathBean
.
getName
()
+
"-"
);
}
position
=
deptsBean
.
getPosition
()
==
null
?
""
:
String
.
valueOf
(
deptsBean
.
getPosition
());
}
position
=
deptsBean
.
getPosition
()
==
null
?
""
:
String
.
valueOf
(
deptsBean
.
getPosition
());
sysUser
.
setDepart
(
sb
.
toString
().
substring
(
0
,
sb
.
toString
().
length
()
-
1
));
sb
=
new
StringBuffer
();
sysUser
.
setPosition
(
position
);
}
sysUser
.
setDepart
(
sb
.
toString
().
substring
(
0
,
sb
.
toString
().
length
()
-
1
));
sb
=
new
StringBuffer
();
sysUser
.
setPosition
(
position
);
}
}
}
...
...
@@ -281,14 +283,15 @@ public class SysUserServiceImpl implements SysUserService {
}
String
updateTime
=
df
.
format
(
synchronizationTime
.
getSynchronizationTime
());
List
<
GetAllRspDTO
>
userGetRspDTOList
=
mtCotactApiRequestClient
.
accountGetMyInfoList
(
corpId
,
updateTime
);
if
(
null
==
userGetRspDTOList
)
{
throw
new
ServiceException
(
ResultServiceEnums
.
ZX_FAILED
);
}
//
if (null == userGetRspDTOList) {
//
throw new ServiceException(ResultServiceEnums.ZX_FAILED);
//
}
List
<
SysUser
>
personnelsList
=
new
ArrayList
<>();
int
line
=
0
;
if
(
null
!=
userGetRspDTOList
)
{
for
(
GetAllRspDTO
userInfo
:
userGetRspDTOList
)
{
SysUser
personnels
=
new
SysUser
();
UserUtil
.
setCurrentPersistOperation
(
personnels
);
personnels
.
setCorpId
(
corpId
);
personnels
.
setBusinessId
(
userInfo
.
getId
());
//id
personnels
.
setName
(
userInfo
.
getName
());
//姓名
...
...
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