This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package jnpf.attendance.fallback;
|
||||
|
||||
import jnpf.attendance.AttendanceUserApi;
|
||||
import jnpf.attendance.dto.GroupUpdateByUserDTO;
|
||||
import jnpf.base.ActionResult;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* describe
|
||||
*
|
||||
* @author HuangLinPan
|
||||
* @date 2023/11/27
|
||||
*/
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
public class AttendanceUserApiFallback implements FallbackFactory<AttendanceUserApi> {
|
||||
|
||||
@Override
|
||||
public AttendanceUserApi create(Throwable cause) {
|
||||
cause.printStackTrace();
|
||||
return new AttendanceUserApi() {
|
||||
@Override
|
||||
public ActionResult groupUpdateByPersonnel(GroupUpdateByUserDTO groupUpdateByUserDTO) {
|
||||
log.error("定时失效考勤劵失败...");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<Boolean> userGroupUpdateBySecondNotice(String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user