package com.ld.igds.sys;
|
|
import com.bstek.bdf2.core.business.IUser;
|
import com.bstek.bdf2.core.service.IUserService;
|
import com.bstek.dorado.annotation.Expose;
|
import com.ld.igds.models.DeviceSer;
|
import com.ld.igds.util.ContextUtil;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 系统相关调用入口
|
*
|
* @author jiazx
|
*
|
*/
|
@Slf4j
|
@Component
|
public class SystemPR {
|
|
@Autowired
|
private IUserService userService;
|
|
/**
|
* systemPR#checkUserByPwd
|
* 当前登陆人密码验证
|
* @param pwd
|
* @return
|
*/
|
@Expose
|
public String checkUserByPwd(String pwd){
|
IUser user = ContextUtil.getLoginUser();
|
if(null == user){
|
return "您已经掉线,请重新登录后确认!";
|
}
|
log.debug("密码={}",user.getPassword());
|
|
String dd = userService.checkPassword(user.getUsername(), pwd);
|
return dd;
|
}
|
|
//systemPR#updateSer
|
@Expose
|
public void updateSer(DeviceSer data)throws Exception{
|
log.info("----------------------------------------------------------------");
|
}
|
}
|