add:生产下料同步
This commit is contained in:
@@ -25,7 +25,7 @@ public class SecurityUtils {
|
||||
public static CurrentUser getCurrentUser() {
|
||||
Object loginInfo = StpUtil.getExtra("loginInfo");
|
||||
if (loginInfo==null){
|
||||
throw new BadRequestException("用户信息获取失败");
|
||||
return CurrentUser.getDefaultUser();
|
||||
}
|
||||
return JSONObject.parseObject(String.valueOf(loginInfo),CurrentUser.class);
|
||||
|
||||
@@ -46,13 +46,7 @@ public class SecurityUtils {
|
||||
* @return 系统用户名称
|
||||
*/
|
||||
public static String getCurrentNickName() {
|
||||
// CurrentUser user = getCurrentUser();
|
||||
// if (user!=null){
|
||||
// return user.getPresonName();
|
||||
// }
|
||||
// return null;
|
||||
//tofix postMan测试,完成后改回
|
||||
return "admin";
|
||||
return getCurrentUser().getPresonName();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,9 +55,7 @@ public class SecurityUtils {
|
||||
* @return 系统用户Id
|
||||
*/
|
||||
public static String getCurrentUserId() {
|
||||
//return getCurrentUser().getId();
|
||||
//tofix postMan测试,完成后改回
|
||||
return "1";
|
||||
return getCurrentUser().getId();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,7 +64,6 @@ public class SecurityUtils {
|
||||
*/
|
||||
@Deprecated
|
||||
public static Long getDeptId() {
|
||||
// return getCurrentUser().getUser().getDept().getId();
|
||||
return 1L;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class CurrentUser implements Serializable {
|
||||
CurrentUser def = new CurrentUser();
|
||||
def.setId("2");
|
||||
def.setUsername("default");
|
||||
def.setPresonName("外部系统用户");
|
||||
def.setPresonName("默认用户");
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user