|
|
@@ -157,8 +157,8 @@ public class PerformanceApplyService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *签到
|
|
|
- *由管理人员先登陆,进行签到
|
|
|
+ * 签到
|
|
|
+ * 由管理人员先登陆,进行签到
|
|
|
*/
|
|
|
public PerformanceApply signIn(Long id, Long userId) {
|
|
|
PerformanceApply performanceApply = performanceApplyRepo.findById(id)
|
|
|
@@ -175,15 +175,13 @@ public class PerformanceApplyService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *扫描作品二维码,通过手机号获取身份
|
|
|
+ * 扫描作品二维码,通过手机号获取身份
|
|
|
*/
|
|
|
- public Map<String, String> getAuth(Long id, String phone) {
|
|
|
- PerformanceApply performanceApply = performanceApplyRepo.findById(id)
|
|
|
- .orElseThrow(new BusinessException("无此表演"));
|
|
|
+ public Map<String, String> getAuth(Long id, String phone, String pPhone) {
|
|
|
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
|
|
|
- if (phone.equals(performanceApply.getPhone())) {
|
|
|
+ if (phone.equals(pPhone)) {
|
|
|
map.put("phone", phone);
|
|
|
return map;
|
|
|
}
|
|
|
@@ -211,7 +209,7 @@ public class PerformanceApplyService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *评分
|
|
|
+ * 评分
|
|
|
*/
|
|
|
public void score(Long id, double score, Long userId) {
|
|
|
PerformanceApply apply = performanceApplyRepo.findById(id).orElseThrow(new BusinessException("无此表演"));
|
|
|
@@ -225,7 +223,7 @@ public class PerformanceApplyService {
|
|
|
throw new BusinessException("节目暂未开始");
|
|
|
}
|
|
|
PerformanceScore score1 = performanceScoreRepo.findByPerformanceApplyIdAndUserId(id, userId);
|
|
|
- if (ObjectUtil.isNotNull(score1)){
|
|
|
+ if (ObjectUtil.isNotNull(score1)) {
|
|
|
throw new BusinessException("已打分");
|
|
|
}
|
|
|
|
|
|
@@ -248,7 +246,7 @@ public class PerformanceApplyService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *获取相关
|
|
|
+ * 获取相关
|
|
|
*/
|
|
|
public List<PerformanceApply> related(Long id) {
|
|
|
PerformanceApply apply = performanceApplyRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|