| | |
| | | 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;
|
| | |
| | |
|
| | | 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) {
|