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
5b622b92
Commit
5b622b92
authored
Nov 19, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lock_num
parent
d0d8f4dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
BPersonValueRepository.java
...oft/business/bpersonvalue/dao/BPersonValueRepository.java
+1
-0
BReleaseValueService.java
.../business/breleasevalue/service/BReleaseValueService.java
+37
-1
No files found.
src/main/java/org/rcisoft/business/bpersonvalue/dao/BPersonValueRepository.java
View file @
5b622b92
...
@@ -49,6 +49,7 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
...
@@ -49,6 +49,7 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
@Update
(
" update s_user set \n"
+
@Update
(
" update s_user set \n"
+
"`value`=((select sum(`value`) from b_person_value where del_flag != 1 and flag = 1 and type = 0 and person_id = #{personId} )-\n"
+
"`value`=((select sum(`value`) from b_person_value where del_flag != 1 and flag = 1 and type = 0 and person_id = #{personId} )-\n"
+
"(select sum(`value`) from b_person_value where del_flag != 1 and flag = 1 and type = 1 and person_id = #{personId} ))\n"
+
"(select sum(`value`) from b_person_value where del_flag != 1 and flag = 1 and type = 1 and person_id = #{personId} ))\n"
+
", lock_num = lock_num+1 "
+
"where business_id = #{personId} and corp_id = #{corpId}"
)
"where business_id = #{personId} and corp_id = #{corpId}"
)
int
updateUserValue
(
@Param
(
"personId"
)
String
personId
,
@Param
(
"corpId"
)
String
corpId
);
int
updateUserValue
(
@Param
(
"personId"
)
String
personId
,
@Param
(
"corpId"
)
String
corpId
);
...
...
src/main/java/org/rcisoft/business/breleasevalue/service/BReleaseValueService.java
View file @
5b622b92
...
@@ -14,16 +14,52 @@ import java.util.List;
...
@@ -14,16 +14,52 @@ import java.util.List;
* Created by on 2019-11-13 13:28:38.
* Created by on 2019-11-13 13:28:38.
*/
*/
public
interface
BReleaseValueService
{
public
interface
BReleaseValueService
{
/**
* 添加、编辑发布积分组
* @param bReleaseValueDto
* @return
*/
PersistModel
save
(
BReleaseValueDto
bReleaseValueDto
);
PersistModel
save
(
BReleaseValueDto
bReleaseValueDto
);
/**
* 分页查询发布积分组
* @param pageUtil
* @param dto
* @return
*/
List
<
BReleaseValue
>
queryByPagination
(
PageUtil
pageUtil
,
ReleaseValueResDto
dto
);
List
<
BReleaseValue
>
queryByPagination
(
PageUtil
pageUtil
,
ReleaseValueResDto
dto
);
/**
* 删除发布积分组
* @param businessId
* @param corpId
* @return
*/
PersistModel
delete
(
String
businessId
,
String
corpId
);
PersistModel
delete
(
String
businessId
,
String
corpId
);
/**
* 分页查询课程、培训积分设置页面
* @param pageUtil
* @param curUser
* @param dto
* @return
*/
List
<
LessonValueDto
>
queryLessonValueByPagination
(
PageUtil
pageUtil
,
CurUser
curUser
,
LessonValueSettingQueryDto
dto
);
List
<
LessonValueDto
>
queryLessonValueByPagination
(
PageUtil
pageUtil
,
CurUser
curUser
,
LessonValueSettingQueryDto
dto
);
/**
* 编辑课程、培训积分
* @param businessId
* @param valueConsume
* @param valueGain
* @return
*/
PersistModel
updateLessonValue
(
String
businessId
,
String
valueConsume
,
String
valueGain
);
PersistModel
updateLessonValue
(
String
businessId
,
String
valueConsume
,
String
valueGain
);
/**
* 分页查询用户积分统计页面
* @param pageUtil
* @param dto
* @return
*/
List
<
UserValueDto
>
queryUserValueByPagination
(
PageUtil
pageUtil
,
UserValueResDto
dto
);
List
<
UserValueDto
>
queryUserValueByPagination
(
PageUtil
pageUtil
,
UserValueResDto
dto
);
}
}
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