Merge branch 'dev/dev' into dev/dev_xp
# Conflicts: # src/main/java/com/ai/da/model/dto/DesignSingleItemDTO.java # src/main/java/com/ai/da/python/vo/DesignPythonItem.java
This commit is contained in:
@@ -1548,7 +1548,9 @@ public class PythonService {
|
||||
pythonItem.setPath(sysFileVO.getUrl());
|
||||
pythonItem.setBusinessId(sysFileVO.getId());
|
||||
if (SysFileLevel2TypeEnum.SHOES.getRealName().equals(type)) {
|
||||
pythonItem.setColor(getRandomColor(elementVO.getColorBoards()));
|
||||
CollectionColorDTO randomColor = getRandomColor(elementVO.getColorBoards());
|
||||
pythonItem.setColor(randomColor.getRgbValue());
|
||||
pythonItem.setGradient(randomColor.getGradientMinioUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1911,7 +1913,9 @@ public class PythonService {
|
||||
designPythonItemBlouse.setPath(path);
|
||||
//所有的icon都是none
|
||||
designPythonItemBlouse.setIcon("none");
|
||||
designPythonItemBlouse.setColor(getRandomColor(elementVO.getColorBoards()));
|
||||
CollectionColorDTO randomColor = getRandomColor(elementVO.getColorBoards());
|
||||
designPythonItemBlouse.setColor(randomColor.getRgbValue());
|
||||
designPythonItemBlouse.setGradient(randomColor.getGradientMinioUrl());
|
||||
if (!elementVO.getDesignPythonItemPrint().getPath().equals("none")
|
||||
&& elementVO.getDesignPrintPictureTypeLayoutList().contains(type)) {
|
||||
DesignPythonItemPrint designPythonItemPrint = CopyUtil.copyObject(elementVO.getDesignPythonItemPrint(), DesignPythonItemPrint.class);
|
||||
@@ -1937,7 +1941,9 @@ public class PythonService {
|
||||
designPythonItemBlouse.setPath(collectionElement.getUrl());
|
||||
//所有的icon都是none
|
||||
designPythonItemBlouse.setIcon("none");
|
||||
designPythonItemBlouse.setColor(getRandomColor(elementVO.getColorBoards()));
|
||||
CollectionColorDTO randomColor = getRandomColor(elementVO.getColorBoards());
|
||||
designPythonItemBlouse.setColor(randomColor.getRgbValue());
|
||||
designPythonItemBlouse.setGradient(randomColor.getGradientMinioUrl());
|
||||
if (!elementVO.getDesignPythonItemPrint().getPath().equals("none")
|
||||
&& elementVO.getDesignPrintPictureTypeLayoutList().contains(collectionElement.getLevel2Type())) {
|
||||
DesignPythonItemPrint designPythonItemPrint = CopyUtil.copyObject(elementVO.getDesignPythonItemPrint(), DesignPythonItemPrint.class);
|
||||
@@ -2216,14 +2222,14 @@ public class PythonService {
|
||||
return sysFileVo.get(key.intValue());
|
||||
}
|
||||
|
||||
private String getRandomColor(List<CollectionColorDTO> colorBoards) {
|
||||
private CollectionColorDTO getRandomColor(List<CollectionColorDTO> colorBoards) {
|
||||
if (colorBoards.size() == 1) {
|
||||
return colorBoards.get(0).getRgbValue();
|
||||
return colorBoards.get(0);
|
||||
}
|
||||
long maxColor = colorBoards.size();
|
||||
long minColor = 0;
|
||||
Long randomIndex = RandomsUtil.randomSysFile(minColor, maxColor);
|
||||
return colorBoards.get(randomIndex.intValue()).getRgbValue();
|
||||
return colorBoards.get(randomIndex.intValue());
|
||||
}
|
||||
|
||||
private CollectionElement getRandomSketchLibrary(List<CollectionElement> sketchBoardElementOlds, List<String> hasUseMd5List) {
|
||||
|
||||
Reference in New Issue
Block a user