| | |
| | | //查询到当前的信息 如果登录信息一模一样,不会更新 |
| | | if (checkResult.getId() != null) { |
| | | BeanUtils.copyProperties(checkResult, result);//checkResult拷贝到result |
| | | result.setDt(new Date()); |
| | | assemblyWorkLastDao.updateByPrimaryKeySelective(result); |
| | | }else{ |
| | | //逐个封装保存 |
| | | BeanUtils.copyProperties(vo, result);//vo拷贝到result |
| | |
| | | } |
| | | BaUser userInfo = getUserInfo(assistant); |
| | | //当前登录人不能是辅助人员 |
| | | if (workLast.getUserId() == userInfo.getId()) { |
| | | if (workLast.getUserId().intValue() == userInfo.getId().intValue()) { |
| | | throw new RuntimeException(userInfo.getName() + "是当前登录人员,不必添加为辅助人员."); |
| | | } |
| | | String userId = userInfo.getId().toString(); |