BUGFIX:design new male_outwear;
This commit is contained in:
@@ -648,9 +648,19 @@ public class PythonService {
|
|||||||
|
|
||||||
// 存储非空字段的列表
|
// 存储非空字段的列表
|
||||||
List<String> nonNullFields = new ArrayList<>();
|
List<String> nonNullFields = new ArrayList<>();
|
||||||
if (attributeRetrievalAttrDict.getType() != null) nonNullFields.add("type");
|
if (attributeRetrievalAttrDict.getType() != null) {
|
||||||
if (attributeRetrievalAttrDict.getOpeningType() != null) nonNullFields.add("openingType");
|
nonNullFields.add("type");
|
||||||
if (attributeRetrievalAttrDict.getSubtype() != null) nonNullFields.add("subtype");
|
}
|
||||||
|
if (attributeRetrievalAttrDict.getOpeningType() != null) {
|
||||||
|
nonNullFields.add("openingType");
|
||||||
|
if (tableName.equals("male_outwear")) {
|
||||||
|
nonNullFields.remove("openingType");
|
||||||
|
attributeRetrievalAttrDict.setOpeningType(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (attributeRetrievalAttrDict.getSubtype() != null) {
|
||||||
|
nonNullFields.add("subtype");
|
||||||
|
}
|
||||||
|
|
||||||
// 只有当非空字段数量大于等于2时才进行处理
|
// 只有当非空字段数量大于等于2时才进行处理
|
||||||
if (nonNullFields.size() >= 2) {
|
if (nonNullFields.size() >= 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user