Sfoglia il codice sorgente

update:删除患者手术信息修改获取用户信息方法,手术信息表增加患者头像字段

wangzl 6 mesi fa
parent
commit
b42cbe07a6

+ 3 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/po/BizClinicRoomPO.java

@@ -94,4 +94,7 @@ public class BizClinicRoomPO extends TenantPO {
 
     @TableField(updateStrategy = FieldStrategy.NEVER,fill = FieldFill.INSERT, jdbcType = JdbcType.VARCHAR)
     private Integer deleted;
+
+    @ApiModelProperty("头像链接")
+    private String imageUrl;
 }

+ 3 - 3
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/service/impl/BizClinicRoomServiceImpl.java

@@ -164,14 +164,14 @@ public class BizClinicRoomServiceImpl implements IBizClinicRoomService {
     @Override
     @Transactional(rollbackFor = Exception.class)
     public Integer removeBizClinicByIds(Collection<String> ids) {
-        UserLoginInfoBO user = LoginUserContextHolder.getUser();
-        String userId = user.getUserId();
+        String userId = LoginUserStrategy.tr.getCurrentUserId();
+        String tenantId = LoginUserStrategy.tr.getTenantId();
         Integer deletedCount = roomWxUserService.stdWxAppletRemoveBizClinicRoomWxUserByUserIdAndIds(userId, ids);
         if(deletedCount!=0){
             //重新设置当前看护患者
             BizWxAppletClinicQueryDTO clinicQuery = new BizWxAppletClinicQueryDTO();
             clinicQuery.setUserId(userId);
-            clinicQuery.setTenantId(user.getTenantId());
+            clinicQuery.setTenantId(tenantId);
             List<BizWxAppletClinicVO> clinicList = stdSelectWxAppletClinicList(clinicQuery);
             if(CollectionUtil.isNotEmpty(clinicList)){
                 clinicList= clinicList.stream()