- dao.IsVendorThingIDEmpty

This commit is contained in:
gazebo
2019-05-25 11:22:34 +08:00
parent 220ff09887
commit c00fc49f68
2 changed files with 6 additions and 6 deletions

View File

@@ -168,3 +168,7 @@ func value2Value(srcValue, dstValue reflect.Value, copyType int) {
// func ObjNull2Normal(src, dst interface{}) {
// copyBetweenNoramAndNullObj(src, dst, 2)
// }
func IsVendorThingIDEmpty(vendorThingID string) bool {
return vendorThingID == "" || vendorThingID == "0"
}