| | |
| | | entity.setCompanyId(dto.getCompanyId()); |
| | | entity.setIsNormal(dto.getIsNormal() ); |
| | | entity.setFinderUserName(dto.getFinderUserName()); |
| | | |
| | | entity.setFeedId(dto.getFeedId()); |
| | | entity.setFeedImg(dto.getFeedImg()); |
| | | entity.setTitle(dto.getTitle()); |
| | | entity.setVideoName(dto.getVideoName()); |
| | | entity.setDescription(dto.getDescription()); |
| | | entity.setCreatedTime(new Date()); |
| | | |
| | | this.save(entity); |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | |
| | | .set(AiProductPoint::getTitle, dto.getTitle()) |
| | | .set(AiProductPoint::getFeedImg, dto.getFeedImg()) |
| | | .set(AiProductPoint::getDescription, dto.getDescription()) |
| | | .set(AiProductPoint::getVideoName, dto.getVideoName()) |
| | | .set(AiProductPoint::getUpdatedTime, new Date()) |
| | | .eq(AiProductPoint::getId, id) |
| | | ); |
| | |
| | | return aiProductPointMapper.selectList(query); |
| | | } |
| | | |
| | | @Override |
| | | public List<AiProductPoint> selectList(String companyId) { |
| | | LambdaQueryWrapper<AiProductPoint> query = Wrappers.lambdaQuery(AiProductPoint.class); |
| | | if (StrUtil.isNotEmpty(companyId)){ |
| | | query.eq(AiProductPoint::getCompanyId, companyId); |
| | | } |
| | | return aiProductPointMapper.selectList(query); |
| | | } |
| | | |
| | | |
| | | } |