TASK:collection sort;
This commit is contained in:
@@ -2,7 +2,9 @@ package com.ai.da.service.impl;
|
|||||||
|
|
||||||
import com.ai.da.common.constant.CommonConstant;
|
import com.ai.da.common.constant.CommonConstant;
|
||||||
import com.ai.da.common.context.UserContext;
|
import com.ai.da.common.context.UserContext;
|
||||||
|
import com.ai.da.common.enums.CollectionLevel1TypeEnum;
|
||||||
import com.ai.da.common.response.PageBaseResponse;
|
import com.ai.da.common.response.PageBaseResponse;
|
||||||
|
import com.ai.da.common.response.PageResponse;
|
||||||
import com.ai.da.common.response.Response;
|
import com.ai.da.common.response.Response;
|
||||||
import com.ai.da.common.security.jwt.JWTTokenHelper;
|
import com.ai.da.common.security.jwt.JWTTokenHelper;
|
||||||
import com.ai.da.common.utils.MinioUtil;
|
import com.ai.da.common.utils.MinioUtil;
|
||||||
@@ -65,6 +67,10 @@ public class LLMServiceImpl implements LLMService {
|
|||||||
@Resource
|
@Resource
|
||||||
private DesignService designService;
|
private DesignService designService;
|
||||||
private final ExecutorService executor = Executors.newCachedThreadPool();
|
private final ExecutorService executor = Executors.newCachedThreadPool();
|
||||||
|
@Resource
|
||||||
|
private CollectionElementMapper collectionElementMapper;
|
||||||
|
@Resource
|
||||||
|
private CollectionElementRelModelMapper collectionElementRelModelMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SseEmitter stream(String prompt, Long projectParamId, String fileUrl, List<String> imageUrlList, String token, Boolean enableThinking, String process) {
|
public SseEmitter stream(String prompt, Long projectParamId, String fileUrl, List<String> imageUrlList, String token, Boolean enableThinking, String process) {
|
||||||
@@ -455,6 +461,24 @@ public class LLMServiceImpl implements LLMService {
|
|||||||
|
|
||||||
SysFile sysFile = sysFileService.getOneBySex(styleName, workspace.getSex(), workspace.getAgeGroup());
|
SysFile sysFile = sysFileService.getOneBySex(styleName, workspace.getSex(), workspace.getAgeGroup());
|
||||||
|
|
||||||
|
CollectionElement collectionElement = new CollectionElement();
|
||||||
|
collectionElement.setAccountId(userHolder.getId());
|
||||||
|
collectionElement.setProjectId(project.getId());
|
||||||
|
collectionElement.setLevel1Type(CollectionLevel1TypeEnum.MODEL.getRealName());
|
||||||
|
// collectionElement.setLevel2Type(board.getLevel2Type());
|
||||||
|
collectionElement.setName(sysFile.getName());
|
||||||
|
collectionElement.setUrl(sysFile.getUrl());
|
||||||
|
// collectionElement.setHasPin(board.getIsPin());
|
||||||
|
collectionElement.setMd5(sysFile.getMd5());
|
||||||
|
collectionElement.setCreateDate(new Date());
|
||||||
|
collectionElement.setHasPin((byte) 0);
|
||||||
|
collectionElementMapper.insert(collectionElement);
|
||||||
|
CollectionElementRelModel collectionElementRelModel = new CollectionElementRelModel();
|
||||||
|
collectionElementRelModel.setCollectionElementId(collectionElement.getId());
|
||||||
|
collectionElementRelModel.setRelationId(sysFile.getId());
|
||||||
|
collectionElementRelModel.setRelationType("System");
|
||||||
|
collectionElementRelModelMapper.insert(collectionElementRelModel);
|
||||||
|
|
||||||
if (workspace.getSex().equals(Sex.FEMALE.getValue())) {
|
if (workspace.getSex().equals(Sex.FEMALE.getValue())) {
|
||||||
workspace.setMannequinFemaleId(sysFile.getId());
|
workspace.setMannequinFemaleId(sysFile.getId());
|
||||||
workspace.setMannequinFemaleType("System");
|
workspace.setMannequinFemaleType("System");
|
||||||
|
|||||||
Reference in New Issue
Block a user