bug修改
parent
972ed90e40
commit
23dacbc0d7
@ -0,0 +1,18 @@
|
|||||||
|
package com.glxp.api.util;
|
||||||
|
|
||||||
|
public class IntUtil {
|
||||||
|
|
||||||
|
public static int value(Integer value) {
|
||||||
|
if (value == null)
|
||||||
|
return 0;
|
||||||
|
else return value.intValue();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static long value(Long value) {
|
||||||
|
if (value == null)
|
||||||
|
return 0l;
|
||||||
|
else return value.longValue();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue