加入反扫金额校验
This commit is contained in:
@@ -79,11 +79,11 @@ public class MerchantStaffConnServiceImpl extends ServiceImpl<MerchantStaffConnM
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public UserApp createStaff(MerchantStaffDTO staffDTO) {
|
||||
String loginName = staffDTO.getLoginName().replace("@shouyin", "");
|
||||
String loginName = staffDTO.getLoginName().replace("@chaozg", "");
|
||||
if (loginName.contains("@")) {
|
||||
throw new MsgException("员工账号请不要带@");
|
||||
}
|
||||
staffDTO.setLoginName(loginName + "@shouyin");
|
||||
staffDTO.setLoginName(loginName + "@chaozg");
|
||||
UserInfo existUserInfo = new UserInfo().setLoginName(staffDTO.getLoginName());
|
||||
existUserInfo = userInfoService.getOne(new QueryWrapper<>(existUserInfo));
|
||||
if (existUserInfo != null) {
|
||||
|
||||
Reference in New Issue
Block a user