加入反扫金额校验

This commit is contained in:
lyf
2023-02-24 15:11:06 +08:00
parent c03ec8d1dc
commit 33950f8101
3 changed files with 19 additions and 2 deletions

View File

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