skyouc
2025-01-08 d1511d2d12b4223882fcfdabd3ba6b59c038edc4
zy-asrs-wms/src/main/java/com/zy/asrs/wms/system/controller/BaseController.java
@@ -6,6 +6,7 @@
import com.zy.asrs.wms.system.service.UserLoginService;
import com.zy.asrs.wms.system.service.UserRoleService;
import com.zy.asrs.wms.system.service.UserService;
import net.sf.jsqlparser.expression.LongValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
@@ -47,12 +48,12 @@
    public Long getLoginUserId() {
        User loginUser = getLoginUser();
        return loginUser == null ? null : loginUser.getId();
        return loginUser == null ? 1 : loginUser.getId();
    }
    public Long getHostId() {
        User loginUser = getLoginUser();
        return loginUser.getHostId();
        return loginUser == null ? 1 : loginUser.getHostId();
    }
    public <T extends BaseParam> T buildParam(Map<String, Object> map, Class<T> clz) {