|
@@ -86,7 +86,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, params.getScore(), scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, params.getScore(), scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -138,7 +138,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, score, scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, score, scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -197,7 +197,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, score, scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, score, scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -274,7 +274,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, score, scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, score, scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -332,7 +332,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, score, scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, score, scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -386,7 +386,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, score, scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, score, scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -444,7 +444,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, score, scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, score, scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -504,7 +504,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
int score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType);
|
|
|
|
|
|
// 校验企业任务类型
|
|
|
- this.chectDeptTask(taskTypeId, score, scorePackage);
|
|
|
+ this.checkDeptTask(taskTypeId, score, scorePackage);
|
|
|
|
|
|
// 保存taskContent
|
|
|
WmTaskContent taskContent = new WmTaskContent();
|
|
@@ -624,7 +624,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
* @param score 任务类型积分值
|
|
|
* @param scorePackage 积分包
|
|
|
*/
|
|
|
- private void chectDeptTask(String taskTypeId, int score, WmScorePackage scorePackage) {
|
|
|
+ private void checkDeptTask(String taskTypeId, int score, WmScorePackage scorePackage) {
|
|
|
// 查询任务类型启用状态
|
|
|
List<WmTaskSubmissionPercentRule> rules = wmTaskSubmissionPercentRuleService.list(Wrappers.<WmTaskSubmissionPercentRule>lambdaQuery()
|
|
|
.eq(WmTaskSubmissionPercentRule::getDeptId, SecurityUtils.getUser().getDeptId())
|
|
@@ -641,7 +641,7 @@ public class WmDeptTaskServiceImpl implements WmDeptTaskService {
|
|
|
.eq(WmScoreTaskType::getScoreId, scorePackage.getId())
|
|
|
.eq(WmScoreTaskType::getTaskTypeId, taskTypeId));
|
|
|
if (scoreTaskTypeCount <= 0) {
|
|
|
- throw new RuntimeException("有效任务类型未启用该任务!");
|
|
|
+ throw new RuntimeException("积分包有效任务类型未启用该任务!");
|
|
|
}
|
|
|
|
|
|
Set<String> allPackageIds = new HashSet<>();
|