dev
This commit is contained in:
parent
5480288923
commit
82155ada91
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.syjiaer.clinic.server.common.util;
|
||||||
|
|
||||||
|
import com.syjiaer.clinic.server.common.exception.MessageException;
|
||||||
|
|
||||||
|
public class CheckUtil {
|
||||||
|
public static void checkValue(Boolean flag,String empty_message) {
|
||||||
|
if(flag)throw new MessageException(empty_message);
|
||||||
|
}
|
||||||
|
public static void isEmpty(Object object,String message) {
|
||||||
|
if(object==null){
|
||||||
|
throw new MessageException(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue