public static <T extends Number> T parseNum(T num, T defaultInt) {
        return num == null ? defaultInt : num;
    }
@Test
    public void testParseNum() {
        Assert.assertTrue(CommonUtils.parseNum(null, 123) == 123);
        Assert.assertTrue(CommonUtils.parseNum(1234, 123) == 1234);
    }