|
@@ -14,14 +14,11 @@ import com.css.simulation.resource.algorithm.service.AlgorithmService;
|
|
|
import com.css.simulation.resource.feign.AlgoPlatformService;
|
|
|
import com.css.simulation.resource.system.service.DictService;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
-import org.apache.http.client.config.RequestConfig;
|
|
|
-import org.apache.http.impl.client.CloseableHttpClient;
|
|
|
import org.eclipse.jgit.lib.Ref;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import java.io.IOException;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -161,6 +158,7 @@ public class AlgorithmServiceImpl implements AlgorithmService {
|
|
|
}else {
|
|
|
po.setShare("1");
|
|
|
po.setId(StringUtil.getRandomUUID());
|
|
|
+ po.setAlgorithmCode(StringUtil.getRandomCode());
|
|
|
int add = algorithmMapper.add(po);
|
|
|
if(add > 0){
|
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS,"分享成功");
|