|
@@ -112,7 +112,6 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
private IDriverInfoService driverInfoService;
|
|
|
|
|
|
|
|
|
-
|
|
|
//用来过滤权限的时候使用,当过滤的code已在其中的时候就不进行过滤;
|
|
|
private Set<String> businessCodes;
|
|
|
|
|
@@ -154,7 +153,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
}
|
|
|
//2.校验用户是否存在
|
|
|
Integer count = this.selectCount(new EntityWrapper<CommonUser>()
|
|
|
- .eq("phone", commonUser.getPhone()).eq("identification",commonUser.getIdentification()));
|
|
|
+ .eq("phone", commonUser.getPhone()).eq("identification", commonUser.getIdentification()));
|
|
|
if (count > 0) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_PHONE_HAS_EXISTED);
|
|
|
}
|
|
@@ -170,12 +169,11 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
user.setRoleIds(commonStaff.getMajorRoleId());
|
|
|
user.setId(commonStaff.getStaffId());
|
|
|
CommonCompany commonCompany = commonCompanyService.selectById(commonStaff.getCompId());
|
|
|
- if(commonCompany != null){
|
|
|
- user.setUserName(commonCompany.getCompSimpleName() + "-" +commonStaff.getStaffName());
|
|
|
+ if (commonCompany != null) {
|
|
|
+ user.setUserName(commonCompany.getCompSimpleName() + "-" + commonStaff.getStaffName());
|
|
|
}
|
|
|
- }
|
|
|
- else{
|
|
|
- user.setUserName("用户"+commonUser.getPhone().substring(0, 3) + "****" + commonUser.getPhone().substring(7));
|
|
|
+ } else {
|
|
|
+ user.setUserName("用户" + commonUser.getPhone().substring(0, 3) + "****" + commonUser.getPhone().substring(7));
|
|
|
}
|
|
|
user.setPassword(Md5Crypt.md5Crypt(commonUser.getPassword().getBytes(), "$1$" + commonUser.getPhone().substring(0, 7)));
|
|
|
this.insert(user);
|
|
@@ -199,8 +197,8 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
CommonStaff commonStaff = commonStaffService.selectOne(new EntityWrapper<CommonStaff>()
|
|
|
.eq("staff_mobile_phone", commonUser.getPhone()).eq("enabled", "1"));
|
|
|
// 查询app 账号
|
|
|
- CommonUser user = this.selectOne(new EntityWrapper<CommonUser>().eq("phone",commonUser.getPhone()));
|
|
|
- if(user != null){
|
|
|
+ CommonUser user = this.selectOne(new EntityWrapper<CommonUser>().eq("phone", commonUser.getPhone()));
|
|
|
+ if (user != null) {
|
|
|
this.deleteById(user.getId());
|
|
|
user.setId(commonStaff.getStaffId());
|
|
|
this.insert(user);
|
|
@@ -208,6 +206,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
}
|
|
|
return "NG";
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* Session检测
|
|
|
*
|
|
@@ -217,7 +216,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public String checkSession() throws ServiceException {
|
|
|
- if(AuthSecurityUtils.getCurrentUserId() == null || AuthSecurityUtils.getCurrentUserId().isEmpty()){
|
|
|
+ if (AuthSecurityUtils.getCurrentUserId() == null || AuthSecurityUtils.getCurrentUserId().isEmpty()) {
|
|
|
return "INVALID";
|
|
|
}
|
|
|
return "VALID";
|
|
@@ -240,7 +239,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
//2.校验用户是否存在
|
|
|
List<CommonUser> targetUserList = this.selectList(
|
|
|
new EntityWrapper<CommonUser>()
|
|
|
- .eq("phone", commonUser.getPhone()).eq("identification",commonUser.getIdentification()));
|
|
|
+ .eq("phone", commonUser.getPhone()).eq("identification", commonUser.getIdentification()));
|
|
|
if (CollectionUtils.isEmpty(targetUserList)) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_PHONE_NOT_EXIST);
|
|
|
}
|
|
@@ -274,7 +273,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
//2.校验用户是否存在
|
|
|
CommonUser commonUser1 = this.selectOne(new EntityWrapper<CommonUser>()
|
|
|
.eq("phone", commonUser.getPhone())
|
|
|
- .eq("delete_flag","0"));
|
|
|
+ .eq("delete_flag", "0"));
|
|
|
//如果账号已存在,返回手机号已经被注册
|
|
|
if (!StringUtils.isEmpty(commonUser1)) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_PHONE_HAS_EXISTED);
|
|
@@ -284,10 +283,27 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
commonUser2.setPhone(commonUser.getPhone());
|
|
|
this.updateById(commonUser2);
|
|
|
hyCacheComponent.del(VERIFY_CODE_PREFIX + commonUser.getPhone());
|
|
|
- return "ok";
|
|
|
+ return "ok";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 获取签名地址
|
|
|
+ *
|
|
|
+ * @param commonUser
|
|
|
+ * @return
|
|
|
+ * @throws ServiceException
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public CommonUser getSignatureAddress(CommonUser commonUser) {
|
|
|
+ //根据手机号、身份标识查询用户
|
|
|
+ CommonUser commonUser1 = this.selectOne(new EntityWrapper<CommonUser>().eq("phone", commonUser.getPhone())
|
|
|
+ .eq("identification", commonUser.getIdentification()).eq("delete_flag", "0"));
|
|
|
+ if (commonUser1 != null) {
|
|
|
+ return commonUser1;
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 修改用户信息
|
|
@@ -300,13 +316,13 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public String editUserInfo(CommonUser commonUser) throws ServiceException {
|
|
|
//货主
|
|
|
- if ("1".equals(commonUser.getIdentityFlag())){
|
|
|
+ if ("1".equals(commonUser.getIdentityFlag())) {
|
|
|
//查询货主信息
|
|
|
HyCargoOwnerInfo hyCargoOwnerInfo = cargoOwnerInfoService.selectOne(new EntityWrapper<HyCargoOwnerInfo>()
|
|
|
- .eq("common_id",commonUser.getId()).eq("delete_flag","0"));
|
|
|
- if (hyCargoOwnerInfo != null){
|
|
|
+ .eq("common_id", commonUser.getId()).eq("delete_flag", "0"));
|
|
|
+ if (hyCargoOwnerInfo != null) {
|
|
|
//禁用
|
|
|
- if("1".equals(commonUser.getDisableFlag())){
|
|
|
+ if ("1".equals(commonUser.getDisableFlag())) {
|
|
|
hyCargoOwnerInfo.setDisablingStatusKey(hyCargoOwnerInfo.getAuthenticationStatusKey());
|
|
|
hyCargoOwnerInfo.setDisablingStatus(hyCargoOwnerInfo.getAuthenticationStatus());
|
|
|
hyCargoOwnerInfo.setDisablingBackStatusKey(hyCargoOwnerInfo.getBackStageStatusKey());
|
|
@@ -336,10 +352,10 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
else {
|
|
|
//查询司机信息
|
|
|
HyDriverInfo hyDriverInfo = driverInfoService.selectOne(new EntityWrapper<HyDriverInfo>()
|
|
|
- .eq("common_id",commonUser.getId()).eq("delete_flag","0"));
|
|
|
- if (hyDriverInfo != null){
|
|
|
+ .eq("common_id", commonUser.getId()).eq("delete_flag", "0"));
|
|
|
+ if (hyDriverInfo != null) {
|
|
|
//禁用
|
|
|
- if("1".equals(commonUser.getDisableFlag())){
|
|
|
+ if ("1".equals(commonUser.getDisableFlag())) {
|
|
|
hyDriverInfo.setDisablingStatusKey(hyDriverInfo.getAuthenticationStatusKey());
|
|
|
hyDriverInfo.setDisablingStatus(hyDriverInfo.getAuthenticationStatus());
|
|
|
hyDriverInfo.setDisablingBackStatusKey(hyDriverInfo.getBackStageStatusKey());
|
|
@@ -376,8 +392,8 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<CommonCompany> getComp() {
|
|
|
- return commonCompanyService.selectList(new EntityWrapper<CommonCompany>().eq("delete_flag","0"));
|
|
|
+ public List<CommonCompany> getComp() {
|
|
|
+ return commonCompanyService.selectList(new EntityWrapper<CommonCompany>().eq("delete_flag", "0"));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -386,12 +402,12 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<CommonCompany> getCompOwn(String phone) {
|
|
|
+ public List<CommonCompany> getCompOwn(String phone) {
|
|
|
List<CommonStaff> staffs = commonStaffService.selectList(new EntityWrapper<CommonStaff>()
|
|
|
- .eq("staff_mobile_phone",phone));
|
|
|
+ .eq("staff_mobile_phone", phone));
|
|
|
List<CommonCompany> commonCompanyList = new ArrayList<>();
|
|
|
- if(!CollectionUtils.isEmpty(staffs)){
|
|
|
- for(int i=0;i<staffs.size();i++) {
|
|
|
+ if (!CollectionUtils.isEmpty(staffs)) {
|
|
|
+ for (int i = 0; i < staffs.size(); i++) {
|
|
|
commonCompanyList.add(commonCompanyService.selectById(staffs.get(i).getCompId()));
|
|
|
}
|
|
|
}
|
|
@@ -399,7 +415,6 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 发送验证码
|
|
|
*
|
|
@@ -443,7 +458,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
//2.校验用户是否存在
|
|
|
List<CommonUser> targetUserList = this.selectList(
|
|
|
new EntityWrapper<CommonUser>()
|
|
|
- .eq("phone", commonUser.getPhone()).eq("identification",commonUser.getIdentification()));
|
|
|
+ .eq("phone", commonUser.getPhone()).eq("identification", commonUser.getIdentification()));
|
|
|
CommonUser userDO = new CommonUser();
|
|
|
|
|
|
if (CollectionUtils.isEmpty(targetUserList)) {
|
|
@@ -453,8 +468,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
//检查帐号是否已经冻结
|
|
|
if (userDO.getStatus() == 0) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_CAN_NOT_ACTICE);
|
|
|
- }
|
|
|
- else{
|
|
|
+ } else {
|
|
|
userDO.setCid(commonUser.getCid());
|
|
|
}
|
|
|
}
|
|
@@ -483,15 +497,15 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
// if (!CollectionUtils.isEmpty(driverViewInfos)) {
|
|
|
// userDTO.setDriverFlag("1");
|
|
|
// }
|
|
|
- if("2".equals(commonUser.getLoginFlag())){
|
|
|
- HyDriverInfo hyDriverInfo = driverInfoService.selectOne(new EntityWrapper<HyDriverInfo>().eq("common_id",userDTO.getId()));
|
|
|
- if (hyDriverInfo != null){
|
|
|
+ if ("2".equals(commonUser.getLoginFlag())) {
|
|
|
+ HyDriverInfo hyDriverInfo = driverInfoService.selectOne(new EntityWrapper<HyDriverInfo>().eq("common_id", userDTO.getId()));
|
|
|
+ if (hyDriverInfo != null) {
|
|
|
userDTO.setDriverId(hyDriverInfo.getId());
|
|
|
userDTO.setStatusFlag(hyDriverInfo.getAuthenticationStatus());
|
|
|
}
|
|
|
}
|
|
|
- if ("1".equals(commonUser.getLoginFlag())){
|
|
|
- HyCargoOwnerInfo hyCargoOwnerInfo = cargoOwnerInfoService.selectOne(new EntityWrapper<HyCargoOwnerInfo>().eq("common_id",userDTO.getId()));
|
|
|
+ if ("1".equals(commonUser.getLoginFlag())) {
|
|
|
+ HyCargoOwnerInfo hyCargoOwnerInfo = cargoOwnerInfoService.selectOne(new EntityWrapper<HyCargoOwnerInfo>().eq("common_id", userDTO.getId()));
|
|
|
if (hyCargoOwnerInfo != null) {
|
|
|
userDTO.setStatusFlag(hyCargoOwnerInfo.getAuthenticationStatus());
|
|
|
}
|
|
@@ -524,15 +538,15 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
* @throws ServiceException
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<String> getCompList(String userMobilePhone){
|
|
|
+ public List<String> getCompList(String userMobilePhone) {
|
|
|
List<String> compList = new ArrayList<>();
|
|
|
List<Account> stringList = accountService.selectList(new EntityWrapper<Account>()
|
|
|
- .eq("user_mobile_phone",userMobilePhone)
|
|
|
+ .eq("user_mobile_phone", userMobilePhone)
|
|
|
.groupBy("comp_id"));
|
|
|
- if(CollectionUtils.isNotEmpty(stringList)){
|
|
|
- for(Account account1 : stringList){
|
|
|
+ if (CollectionUtils.isNotEmpty(stringList)) {
|
|
|
+ for (Account account1 : stringList) {
|
|
|
CommonCompany commonCompany = commonCompanyService.selectOne(new EntityWrapper<CommonCompany>()
|
|
|
- .eq("comp_id",account1.getCompId())
|
|
|
+ .eq("comp_id", account1.getCompId())
|
|
|
.eq("delete_flag", "0"));
|
|
|
compList.add(commonCompany.getCompName());
|
|
|
}
|
|
@@ -551,7 +565,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
@Transactional
|
|
|
public CommonUser login(CommonUser commonUser) throws ServiceException {
|
|
|
String cryptPassword = Md5Crypt.md5Crypt(commonUser.getPassword().getBytes(), "$1$" + commonUser.getPhone().substring(0, 7));
|
|
|
- CommonUser user = commonUserMapper.login(commonUser.getPhone(), cryptPassword,commonUser.getIdentification());
|
|
|
+ CommonUser user = commonUserMapper.login(commonUser.getPhone(), cryptPassword, commonUser.getIdentification());
|
|
|
|
|
|
if (user == null) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_PHONE_OR_PASSWORD_NOT_CORRECT);
|
|
@@ -561,8 +575,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
//检查帐号是否已经冻结
|
|
|
if (userDO.getStatus() == 0) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_CAN_NOT_ACTICE);
|
|
|
- }
|
|
|
- else if(commonUser.getCid() != null && !commonUser.getCid().isEmpty()){
|
|
|
+ } else if (commonUser.getCid() != null && !commonUser.getCid().isEmpty()) {
|
|
|
userDO.setCid(commonUser.getCid());
|
|
|
}
|
|
|
if (commonUser.getPhone() != null) {
|
|
@@ -590,16 +603,16 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
// if (!CollectionUtils.isEmpty(driverViewInfos)) {
|
|
|
// user.setDriverFlag("1");
|
|
|
// }
|
|
|
- if("2".equals(commonUser.getLoginFlag())){
|
|
|
- HyDriverInfo hyDriverInfo = driverInfoService.selectOne(new EntityWrapper<HyDriverInfo>().eq("common_id",user.getId()));
|
|
|
- if (hyDriverInfo != null){
|
|
|
+ if ("2".equals(commonUser.getLoginFlag())) {
|
|
|
+ HyDriverInfo hyDriverInfo = driverInfoService.selectOne(new EntityWrapper<HyDriverInfo>().eq("common_id", user.getId()));
|
|
|
+ if (hyDriverInfo != null) {
|
|
|
user.setDriverId(hyDriverInfo.getId());
|
|
|
user.setStatusFlag(hyDriverInfo.getAuthenticationStatus());
|
|
|
}
|
|
|
}
|
|
|
- if ("1".equals(commonUser.getLoginFlag())){
|
|
|
- HyCargoOwnerInfo hyCargoOwnerInfo = cargoOwnerInfoService.selectOne(new EntityWrapper<HyCargoOwnerInfo>().eq("common_id",user.getId()));
|
|
|
- if (hyCargoOwnerInfo != null){
|
|
|
+ if ("1".equals(commonUser.getLoginFlag())) {
|
|
|
+ HyCargoOwnerInfo hyCargoOwnerInfo = cargoOwnerInfoService.selectOne(new EntityWrapper<HyCargoOwnerInfo>().eq("common_id", user.getId()));
|
|
|
+ if (hyCargoOwnerInfo != null) {
|
|
|
user.setStatusFlag(hyCargoOwnerInfo.getAuthenticationStatus());
|
|
|
}
|
|
|
}
|
|
@@ -756,7 +769,6 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
public Account login(Account user, String veriCode) {
|
|
|
Account targetUser = getTargetUser(user);
|
|
@@ -767,11 +779,11 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
// && StringUtils.isEmpty(password)) {
|
|
|
// password = targetUser.getLoginPassword();
|
|
|
// }
|
|
|
- if("123456".equals(veriCode)){
|
|
|
+ if ("123456".equals(veriCode)) {
|
|
|
password = targetUser.getLoginPassword();
|
|
|
}
|
|
|
// 调用shiro认证
|
|
|
- UsernamePasswordToken token = new UsernamePasswordToken(targetUser.getUserId(), password);
|
|
|
+ UsernamePasswordToken token = new UsernamePasswordToken(targetUser.getUserId(), password);
|
|
|
if (null == user.getRememberMe()) {
|
|
|
token.setRememberMe(false);
|
|
|
} else {
|
|
@@ -829,7 +841,8 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**查询已完成任务
|
|
|
+ /**
|
|
|
+ * 查询已完成任务
|
|
|
*
|
|
|
* @param noticeTask
|
|
|
* @return
|
|
@@ -857,7 +870,6 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 过滤没有这个权限的任务
|
|
|
*
|
|
@@ -912,9 +924,9 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public String saveRole(CommonStaffRole commonStaffRole){
|
|
|
- commonStaffRoleService.delete(new EntityWrapper<CommonStaffRole>().eq("staff_id",commonStaffRole.getStaffId())
|
|
|
- .eq("role_major","0"));
|
|
|
+ public String saveRole(CommonStaffRole commonStaffRole) {
|
|
|
+ commonStaffRoleService.delete(new EntityWrapper<CommonStaffRole>().eq("staff_id", commonStaffRole.getStaffId())
|
|
|
+ .eq("role_major", "0"));
|
|
|
commonStaffRole.setId(IdGenerator.generateUUID());
|
|
|
commonStaffRoleService.insert(commonStaffRole);
|
|
|
return "OK";
|
|
@@ -924,7 +936,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
@Transactional
|
|
|
public void changeInfo(CommonStaff staff) {
|
|
|
UniquenessChecker.check(staffMapper, (new EntityWrapper()).eq("comp_id", staff.getCompId()), staff);
|
|
|
- staff.setEnabled((Integer)null);
|
|
|
+ staff.setEnabled((Integer) null);
|
|
|
staff.updateById();
|
|
|
Account account;
|
|
|
if (null != staff.getStaffMobilePhone()) {
|
|
@@ -962,10 +974,10 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
majorRole.setMajor("1");
|
|
|
staff.getRoles().add(majorRole);
|
|
|
if (org.apache.commons.collections.CollectionUtils.isNotEmpty(staff.getRoleVesselIds())) {
|
|
|
- List<String> roleIds = (List)staff.getRoleVesselIds().stream().map((roleVesselId) -> {
|
|
|
+ List<String> roleIds = (List) staff.getRoleVesselIds().stream().map((roleVesselId) -> {
|
|
|
return roleVesselId.split("_")[0];
|
|
|
}).distinct().collect(Collectors.toList());
|
|
|
- staff.getRoles().addAll((Collection)roleIds.stream().map((roleId) -> {
|
|
|
+ staff.getRoles().addAll((Collection) roleIds.stream().map((roleId) -> {
|
|
|
CommonRole role = new CommonRole();
|
|
|
role.setRoleId(roleId);
|
|
|
role.setMajor("0");
|
|
@@ -981,7 +993,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
|
|
|
private void bindRoles(String staffId, List<CommonRole> roles) {
|
|
|
if (null != roles) {
|
|
|
- List<CommonStaffRole> staffRoles = (List)roles.stream().map((role) -> {
|
|
|
+ List<CommonStaffRole> staffRoles = (List) roles.stream().map((role) -> {
|
|
|
CommonStaffRole staffRole = new CommonStaffRole();
|
|
|
staffRole.setRoleId(role.getRoleId());
|
|
|
if (!org.apache.commons.lang3.StringUtils.isEmpty(role.getMajor())) {
|
|
@@ -999,7 +1011,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
|
|
|
private void bindVessels(String staffId, List<CommonVessel> vessels, String roleId, List<String> roleVessels) {
|
|
|
if (null != vessels) {
|
|
|
- List<String> vesselIds = (List)vessels.stream().map((vessel) -> {
|
|
|
+ List<String> vesselIds = (List) vessels.stream().map((vessel) -> {
|
|
|
return vessel.getVesselId();
|
|
|
}).collect(Collectors.toList());
|
|
|
Set<String> vesselIdSet = new HashSet();
|
|
@@ -1010,5 +1022,4 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
}
|