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