| | |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse jobStateUpdate(String ids) { |
| | | if (StrUtil.isEmpty(ids)) { |
| | | throw new FebsException("参数错误"); |
| | | } |
| | | List<String> idList = StrUtil.split(ids, ','); |
| | | aiProductQuestionJobMapper.update(null, |
| | | Wrappers.lambdaUpdate(AiProductQuestionJob.class) |
| | | .set(AiProductQuestionJob::getState, 2) |
| | | .set(AiProductQuestionJob::getUpdatedTime, new Date()) |
| | | .in(AiProductQuestionJob::getId, idList)); |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse delete(String id) { |
| | | AiProductQuestion entity = this.getById(id); |
| | | if(ObjectUtil.isNotNull( entity)){ |