Browse Source

Merge branch 'master' of gitee.com:ccsens_s/ccsenscloud

master
zhangye 5 years ago
parent
commit
7c886641a1
  1. 5
      game/src/main/java/com/ccsens/game/service/ScreenService.java
  2. 9
      ht/src/main/java/com/ccsens/ht/service/DoctorService.java

5
game/src/main/java/com/ccsens/game/service/ScreenService.java

@ -692,7 +692,10 @@ public class ScreenService implements IScreenService{
switch (gameRecord.getGameStatus().byteValue()) {
case GameConstant.GAME_PREPARATION: throw new BaseException(CodeEnum.GAME_PREPARATION);
case GameConstant.GAME_PROCESSING: throw new BaseException(CodeEnum.GAME_PROCESSING);
// case GameConstant.GAME_COMPLETED: throw new BaseException(CodeEnum.GAME_COMPLETED);
case GameConstant.GAME_COMPLETED:
if (start.getStartStatus() == null || start.getStartStatus().byteValue() != GameConstant.GAME_RESTART_STATUS) {
throw new BaseException(CodeEnum.GAME_COMPLETED);
}
}
//更新状态和时间

9
ht/src/main/java/com/ccsens/ht/service/DoctorService.java

@ -181,9 +181,9 @@ public class DoctorService implements IDoctorService {
if (position.getHasAudit()!=null && Constant.Ht.Position.HAS_AUDIT == position.getHasAudit()) {
roles.add(Constant.Ht.Doctor.AUDIT);
}
if (position.getHasManage()!=null && Constant.Ht.Position.HAS_MANAGE == position.getHasManage()) {
roles.add(Constant.Ht.Doctor.MANAGE);
}
// if (position.getHasManage()!=null && Constant.Ht.Position.HAS_MANAGE == position.getHasManage()) {
// roles.add(Constant.Ht.Doctor.MANAGE);
// }
JsonResponse result;
if (Constant.Ht.Doctor.CHECK_SUCCESS == audit.getAuditState()) {
@ -235,6 +235,7 @@ public class DoctorService implements IDoctorService {
@Override
public void run() {
log.info("添加审核通知:{}", maps);
// 删除旧的审核通知
HtDoctorAuditExample auditExample = new HtDoctorAuditExample();
auditExample.createCriteria().andDoctorIdEqualTo(htDoctor.getId());
@ -244,6 +245,7 @@ public class DoctorService implements IDoctorService {
//添加新的通知
List<HtDoctorAudit> audits = new ArrayList<>();
maps.forEach(map -> {
log.info("职位ID:{}", map);
HtDoctorExample example1 = new HtDoctorExample();
example1.createCriteria().andPositionIdEqualTo(map.getLong("id")).andAuditStateEqualTo(Constant.Ht.Doctor.CHECK_SUCCESS);
//查找上级职务对应的医生
@ -256,6 +258,7 @@ public class DoctorService implements IDoctorService {
audit.setId(snowflake.nextId());
audit.setDoctorId(htDoctor.getId());
audit.setAuditorId(superior.getId());
log.info("审核医生ID:{}", audit);
audits.add(audit);
});
});

Loading…
Cancel
Save