aa51513
2021-05-15 d06fbb7626ca5c9e4e7a91ac06a6f2ae186c0f27
java110-bean/src/main/java/com/java110/entity/product/BoProduct.java
@@ -6,7 +6,7 @@
/**
 * Created by wuxw on 2017/5/20.
 */
public class BoProduct extends Product implements Comparable{
public class BoProduct extends Product implements Comparable<BoProduct>{
    private String boId;
@@ -56,9 +56,8 @@
     * @return
     */
    @Override
    public int compareTo(Object o) {
    public int compareTo(BoProduct otherBoProduct) {
        BoProduct otherBoProduct = (BoProduct)o;
        if("DEL".equals(this.getState()) && "ADD".equals(otherBoProduct.getState())) {
            return -1;
        }