TASK:aida;
This commit is contained in:
@@ -71,4 +71,6 @@ public class ModelsDotDTO implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String templateUrl;
|
private String templateUrl;
|
||||||
|
|
||||||
|
private String sex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2800,24 +2800,28 @@ public class PythonService {
|
|||||||
|
|
||||||
private List<DesignPythonItem> coverToModelsDotPythonItem(ModelsDotDTO modelsDotDTO) {
|
private List<DesignPythonItem> coverToModelsDotPythonItem(ModelsDotDTO modelsDotDTO) {
|
||||||
List<DesignPythonItem> response = Lists.newArrayList();
|
List<DesignPythonItem> response = Lists.newArrayList();
|
||||||
if (modelsDotDTO.getTemplateUrl().contains("female")) {
|
if (modelsDotDTO.getSex().contains("Female")) {
|
||||||
// DesignPythonItem dress = new DesignPythonItem();
|
DesignPythonItem dress = new DesignPythonItem();
|
||||||
// dress.setType(SysFileLevel2TypeEnum.DRESS.getRealName());
|
dress.setType(SysFileLevel2TypeEnum.BLOUSE.getRealName());
|
||||||
// dress.setColor("none");
|
dress.setColor("none");
|
||||||
// dress.setIcon("none");
|
dress.setIcon("none");
|
||||||
DesignPythonItemPrint designPythonItemPrint = new DesignPythonItemPrint();
|
DesignPythonItemPrint designPythonItemPrint = new DesignPythonItemPrint();
|
||||||
designPythonItemPrint.setIfSingle(false);
|
designPythonItemPrint.setIfSingle(false);
|
||||||
designPythonItemPrint.setPrint_path_list(new ArrayList<>());
|
designPythonItemPrint.setPrint_path_list(new ArrayList<>());
|
||||||
// dress.setPrint(designPythonItemPrint);
|
dress.setPrint(designPythonItemPrint);
|
||||||
// dress.setPath("aida-sys-image/images/female/blouse/blouse_p5_817.jpg");
|
dress.setPath("aida-sys-image/images/female/blouse/0628001551.jpg");
|
||||||
// response.add(dress);
|
response.add(dress);
|
||||||
|
|
||||||
DesignPythonItem skirt = new DesignPythonItem();
|
DesignPythonItem skirt = new DesignPythonItem();
|
||||||
skirt.setType(SysFileLevel2TypeEnum.DRESS.getRealName());
|
skirt.setType(SysFileLevel2TypeEnum.SKIRT.getRealName());
|
||||||
skirt.setColor("none");
|
skirt.setColor("none");
|
||||||
skirt.setIcon("none");
|
skirt.setIcon("none");
|
||||||
skirt.setPrint(designPythonItemPrint);
|
DesignPythonItemPrint designPythonItemPrint1 = new DesignPythonItemPrint();
|
||||||
skirt.setPath("aida-sys-image/images/female/dress/0628002038.jpeg");
|
designPythonItemPrint1.setIfSingle(false);
|
||||||
|
designPythonItemPrint1.setPrint_path_list(new ArrayList<>());
|
||||||
|
skirt.setPrint(designPythonItemPrint1);
|
||||||
|
skirt.setPath("aida-sys-image/images/female/skirt/0628000022.jpg");
|
||||||
|
// skirt.setPath("aida-sys-image/images/female/dress/0628000000.jpg");
|
||||||
response.add(skirt);
|
response.add(skirt);
|
||||||
} else {
|
} else {
|
||||||
DesignPythonItem top = new DesignPythonItem();
|
DesignPythonItem top = new DesignPythonItem();
|
||||||
@@ -2839,7 +2843,7 @@ public class PythonService {
|
|||||||
designPythonItemPrint1.setIfSingle(false);
|
designPythonItemPrint1.setIfSingle(false);
|
||||||
designPythonItemPrint1.setPrint_path_list(new ArrayList<>());
|
designPythonItemPrint1.setPrint_path_list(new ArrayList<>());
|
||||||
bottom.setPrint(designPythonItemPrint1);
|
bottom.setPrint(designPythonItemPrint1);
|
||||||
bottom.setPath("aida-sys-image/images/male/bottoms/mens_test_12.png");
|
bottom.setPath("aida-sys-image/images/male/bottoms/mens_test_6252.png");
|
||||||
response.add(bottom);
|
response.add(bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<if test="style != null">
|
<if test="style != null">
|
||||||
AND style = #{style}
|
AND style = #{style}
|
||||||
</if>
|
</if>
|
||||||
AND deprecated = 0
|
|
||||||
</trim>
|
</trim>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
RAND()
|
RAND()
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
<if test="style != null">
|
<if test="style != null">
|
||||||
AND style = #{style}
|
AND style = #{style}
|
||||||
</if>
|
</if>
|
||||||
AND deprecated = 0
|
|
||||||
</trim>
|
</trim>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
RAND()
|
RAND()
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
<if test="style != null">
|
<if test="style != null">
|
||||||
AND style = #{style}
|
AND style = #{style}
|
||||||
</if>
|
</if>
|
||||||
AND deprecated = 0
|
|
||||||
</trim>
|
</trim>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
RAND()
|
RAND()
|
||||||
|
|||||||
Reference in New Issue
Block a user