张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.thhy.mobile.modules.biz.mouldcheck.entity;
 
import com.thhy.general.common.BasicStatus;
import com.thhy.general.exception.BasicException;
import com.thhy.mobile.modules.biz.steelproduce.entity.SteelProduce;
 
public class CompareParam {
 
    public static boolean compare(Mould mould, SteelProduce steelProduce){
        if(!mould.getProId().equals(steelProduce.getProId())){
            //throw new BasicException(BasicStatus.SIZE_NOT_MATCH);
            return false;
        }
        if(!mould.getMouldSize().equals(steelProduce.getSizeId())){
            //throw new BasicException(BasicStatus.SIZE_NOT_MATCH);
            return false;
        }
        if(!mould.getMouldType().equals(steelProduce.getBlockNum())){
            //throw new BasicException(BasicStatus.BLOCK_NOT_MATCH);
            return false;
        }
        return true;
    }
}