| | |
| | | AiProductQuestionLabel entity = new AiProductQuestionLabel(); |
| | | entity.setId(UUID.getSimpleUUIDString()); |
| | | entity.setName(dto.getName()); |
| | | entity.setCode(dto.getCode()); |
| | | if (StrUtil.isNotEmpty(dto.getCompanyId())){ |
| | | entity.setCompanyId(dto.getCompanyId()); |
| | | } |
| | |
| | | if(ObjectUtil.isNotNull( entity)){ |
| | | this.update(null, |
| | | Wrappers.lambdaUpdate(AiProductQuestionLabel.class) |
| | | .set(AiProductQuestionLabel::getCode, dto.getCode()) |
| | | .set(AiProductQuestionLabel::getName, dto.getName()) |
| | | .set(AiProductQuestionLabel::getUpdatedTime, new Date()) |
| | | .eq(AiProductQuestionLabel::getId, id)); |