zouxuan 5 years ago
parent
commit
a19b43bcf5

+ 2 - 4
mec-student/src/main/java/com/ym/mec/student/controller/SporadicChargeInfoController.java

@@ -102,15 +102,13 @@ public class SporadicChargeInfoController extends BaseController {
         if (sysUser == null || sysUser.getId() == null) {
             return failed("请先登录");
         }
-        if (sysUser.getOrganId() == null || sysUser.getOrganId().isEmpty()) {
+        if (sysUser.getOrganId() == null) {
             return failed("用户信息有误,没有分部信息");
         }
-        Integer organId = Integer.parseInt(sysUser.getOrganId());
-
         if (type == null || type <= 0) {
             return failed("参数不合法");
         }
-        SporadicChargeInfo chargeInfo = sporadicChargeInfoService.findByOrganIdAndType(organId, type);
+        SporadicChargeInfo chargeInfo = sporadicChargeInfoService.findByOrganIdAndType(sysUser.getOrganId(), type);
         return succeed(chargeInfo);
     }