diff --git a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ProductPartInfoVO.java b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ProductPartInfoVO.java index 71aa6398..ab102bc6 100644 --- a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ProductPartInfoVO.java +++ b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ProductPartInfoVO.java @@ -25,6 +25,11 @@ public class ProductPartInfoVO { */ private String attrName; + /** + * 描述 + */ + private String describe; + /** * 项 */ diff --git a/nflg-mobilebroken-repository/src/main/resources/mapper/ProductPartMapper.xml b/nflg-mobilebroken-repository/src/main/resources/mapper/ProductPartMapper.xml index 08a94044..6636ac07 100644 --- a/nflg-mobilebroken-repository/src/main/resources/mapper/ProductPartMapper.xml +++ b/nflg-mobilebroken-repository/src/main/resources/mapper/ProductPartMapper.xml @@ -14,7 +14,7 @@ AND pp.attr_id=#{request.attrId} - AND pp.`name` LIKE CONCAT('%', #{request.name}, '%') + AND (pp.`name` LIKE CONCAT('%', #{request.name}, '%') or pp.`describe` LIKE CONCAT('%', #{request.name}, '%')) ORDER BY pp.enable DESC,pp.id DESC