| | |
| | | import com.ruoyi.company.service.CompanyService; |
| | | import com.ruoyi.company.service.UserService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | import java.util.Objects; |
| | | |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | @RequiredArgsConstructor(onConstructor_ = {@Lazy}) |
| | | public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements CompanyService { |
| | | private final UserService userService; |
| | | private final HttpServletResponse response; |
| | |
| | | } |
| | | //用户信息 |
| | | User userUpd = BeanUtils.copyBean(dto, User.class); |
| | | userUpd.setPassword(SecurityUtils.encryptPassword(dto.getPassword())); |
| | | if (StringUtils.isNotBlank(dto.getPassword())){ |
| | | userUpd.setPassword(SecurityUtils.encryptPassword(dto.getPassword())); |
| | | } |
| | | userUpd.setUserId(user.getUserId()); |
| | | userUpd.setUpdateBy(SecurityUtils.getUserId()); |
| | | userService.updateById(userUpd); |