mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-04 11:52:07 +08:00
补充v2.6.0升级说明及修复新增account提示mysql错误问题
This commit is contained in:
@@ -13,14 +13,19 @@ import java.util.List;
|
||||
* @date 19/5/3
|
||||
*/
|
||||
public class AccountConverter {
|
||||
private AccountConverter() {
|
||||
}
|
||||
|
||||
public static AccountDO convert2AccountDO(AccountDTO dto) {
|
||||
AccountDO accountDO = new AccountDO();
|
||||
accountDO.setUsername(dto.getUsername());
|
||||
accountDO.setPassword(dto.getPassword());
|
||||
accountDO.setRole(dto.getRole());
|
||||
accountDO.setDepartment(dto.getDepartment());
|
||||
accountDO.setMail(dto.getMail());
|
||||
accountDO.setDisplayName(dto.getDisplayName());
|
||||
|
||||
// 兼容前端未传这些信息的情况
|
||||
accountDO.setDepartment(dto.getDepartment() == null? "": dto.getDepartment());
|
||||
accountDO.setMail(dto.getMail() == null? "": dto.getMail());
|
||||
accountDO.setDisplayName(dto.getDisplayName() == null? "": dto.getDisplayName());
|
||||
return accountDO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user