Commit 1fd76545c7aeed0638434799af58a1cd8a20f51a

Authored by haorp
1 parent c0ba7363a0
Exists in dev

产妇转诊权限设置

Showing 2 changed files with 22 additions and 0 deletions

platform-dal/src/main/java/com/lyms/platform/query/ReferralApplyScreeningQuery.java View file @ 1fd7654
... ... @@ -100,6 +100,18 @@
100 100 //1 转入 0转出
101 101 private String action;
102 102  
  103 +
  104 + // 申请医生编码 users.id
  105 + private String applyDoctor;
  106 +
  107 + public String getApplyDoctor() {
  108 + return applyDoctor;
  109 + }
  110 +
  111 + public void setApplyDoctor(String applyDoctor) {
  112 + this.applyDoctor = applyDoctor;
  113 + }
  114 +
103 115 public String getAction() {
104 116 return action;
105 117 }
... ... @@ -416,6 +428,9 @@
416 428 }
417 429 if (null != type) {
418 430 condition = condition.and("type", type, MongoOper.IS);
  431 + }
  432 + if (null != applyDoctor) {
  433 + condition = condition.and("applyDoctor", applyDoctor, MongoOper.IS);
419 434 }
420 435 if (null != outHospitalId) {
421 436 List<String> list = new ArrayList<>();
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyScreeningFacade.java View file @ 1fd7654
... ... @@ -385,6 +385,13 @@
385 385 referralApplyScreeningQuery.setAction(applyScreeningQueryRequest.getAction());
386 386 }
387 387  
  388 + Users serviceUsers = usersService.getUsers(userId);
  389 + if(null != serviceUsers){
  390 + // 不是主任的就按当前账号医生分
  391 + if(serviceUsers.getZhiChenId() != 4){
  392 + referralApplyScreeningQuery.setApplyDoctor(userId.toString());
  393 + }
  394 + }
388 395 referralApplyScreeningQuery.setOutDepartment(applyScreeningQueryRequest.getOutDepartment());
389 396 referralApplyScreeningQuery.setTransferredDepartment(applyScreeningQueryRequest.getTransferredDepartment());
390 397 List<ReferralApplyScreeningModel> screeningModels =