|
@@ -16,6 +16,7 @@ import com.qmth.teachcloud.exchange.common.bean.dto.syssetting.SimpleObject;
|
|
|
import com.qmth.teachcloud.exchange.common.contant.SystemConstant;
|
|
|
import com.qmth.teachcloud.exchange.common.entity.BasicSchool;
|
|
|
import com.qmth.teachcloud.exchange.common.enums.ExceptionResultEnum;
|
|
|
+import com.qmth.teachcloud.exchange.common.enums.SchoolCodeEnum;
|
|
|
import com.qmth.teachcloud.exchange.common.service.CommonCacheService;
|
|
|
import com.qmth.teachcloud.exchange.common.util.ResultUtil;
|
|
|
import io.swagger.annotations.*;
|
|
@@ -62,7 +63,14 @@ public class GdpuMqController {
|
|
|
throw ExceptionResultEnum.PARAMS_ERROR.exception("流水号为空");
|
|
|
}
|
|
|
Long flowId = Long.parseLong(orunId);
|
|
|
- Long schoolId = Long.parseLong((String) FlowMqCacheUtil.getSchoolId(flowId));
|
|
|
+ Long schoolId = null;
|
|
|
+ if (Objects.isNull(FlowMqCacheUtil.getSchoolId(flowId))) {
|
|
|
+ BasicSchool basicSchool = commonCacheService.schoolCache(SchoolCodeEnum.GDPU.getCode());
|
|
|
+ Objects.requireNonNull(basicSchool, "学校信息不存在");
|
|
|
+ schoolId = basicSchool.getId();
|
|
|
+ } else {
|
|
|
+ schoolId = Long.parseLong((String) FlowMqCacheUtil.getSchoolId(flowId));
|
|
|
+ }
|
|
|
Map<String, SimpleObject> mapSetting = commonCacheService.getSysSetting(schoolId);
|
|
|
|
|
|
BasicSchool basicSchool = commonCacheService.schoolCache(schoolId);
|