Преглед изворни кода

feature:下载hispatientId

wuyongyi пре 1 година
родитељ
комит
a616d33f18

+ 5 - 5
src/main/java/com/ywt/mg/services/CommonWxPushService.java

@@ -39,11 +39,11 @@ public class CommonWxPushService {
 
     public void downloadHisPatientId(int downloadRecordId, String fileName, Integer hospitalId) {
         try {
-            String downloadHisPatientidRightCode = ConstantRightDisplayDef.COMMON_WX_PUSH_DISPLAY_DOWNLOAD_HISPATIENTID;
-            boolean downloadHisPatientidRight = authService.checkCacheRight(downloadHisPatientidRightCode);
-            if (!downloadHisPatientidRight) {
-                logger.error("CommonWxPushService#downloadHisPatientId>>没有权限,请先设置权限,userId:{}", authService.getCurrentAdmin());
-            }
+//            String downloadHisPatientidRightCode = ConstantRightDisplayDef.COMMON_WX_PUSH_DISPLAY_DOWNLOAD_HISPATIENTID;
+//            boolean downloadHisPatientidRight = authService.checkCacheRight(downloadHisPatientidRightCode);
+//            if (!downloadHisPatientidRight) {
+//                logger.error("CommonWxPushService#downloadHisPatientId>>没有权限,请先设置权限,userId:{}", authService.getCurrentAdmin());
+//            }
             List<MedicalCard> infoList = getListByHospitalId(hospitalId);
 
             String col1 = "患者ID";

+ 6 - 0
src/main/java/com/ywt/mg/web/controllers/hospital/HospCommonWxPushController.java

@@ -4,6 +4,7 @@ import com.ywt.mg.core.MGRight;
 import com.ywt.mg.core.utils.Checker;
 import com.ywt.mg.core.utils.serializers.JsonSerializer;
 import com.ywt.mg.domain.models.ConstantDef;
+import com.ywt.mg.domain.models.pojo.ConstantRightDisplayDef;
 import com.ywt.mg.params.checkupBooking.QueryCheckUpOrderListRequest;
 import com.ywt.mg.services.AuthService;
 import com.ywt.mg.services.CommonWxPushService;
@@ -39,6 +40,11 @@ public class HospCommonWxPushController {
     @RequestMapping({"/downloadHisPatientId"})
     public BaseResponse downloadHisPatientId() {
         int currentAdminId = Checker.getIntegerValue(authService.getCurrentAdminId());
+        String downloadHisPatientidRightCode = ConstantRightDisplayDef.COMMON_WX_PUSH_DISPLAY_DOWNLOAD_HISPATIENTID;
+        boolean downloadHisPatientidRight = authService.checkCacheRight(downloadHisPatientidRightCode);
+        if (!downloadHisPatientidRight) {
+            logger.error("HospCommonWxPushController#downloadHisPatientId>>没有权限,请先设置权限,userId:{}", authService.getCurrentAdmin());
+        }
 //        request.setCurrentAdminId(currentAdminId);
         // 插入记录