|
|
|
@@ -13,7 +13,7 @@ import com.iformall.service.WxOfflineActivityGrantAwardService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import jodd.util.StringUtil; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -43,7 +43,7 @@ public class WxOfflineActivityGrantController extends BaseController { |
|
|
|
if(wxOfflineActivityRecord.getActivityId() == null){ |
|
|
|
return new ResultData(Result.ERROR,"请选择活动"); |
|
|
|
} |
|
|
|
if(StringUtil.isBlank(wxOfflineActivityRecord.getCusPhone())){ |
|
|
|
if(StringUtils.isBlank(wxOfflineActivityRecord.getCusPhone())){ |
|
|
|
return new ResultData(Result.ERROR,"请输入用户手机号"); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -60,7 +60,7 @@ public class WxOfflineActivityGrantController extends BaseController { |
|
|
|
if(wxOfflineActivityRecord.getActivityId() == null){ |
|
|
|
return new ResultData(Result.ERROR,"请选择活动"); |
|
|
|
} |
|
|
|
if(StringUtil.isBlank(wxOfflineActivityRecord.getCusPhone())){ |
|
|
|
if(StringUtils.isBlank(wxOfflineActivityRecord.getCusPhone())){ |
|
|
|
return new ResultData(Result.ERROR,"请输入用户手机号"); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -78,7 +78,7 @@ public class WxOfflineActivityGrantController extends BaseController { |
|
|
|
if(wxOfflineActivityRecord.getActivityId() == null){ |
|
|
|
throw new MallinkException(Result.ERROR,"请选择活动"); |
|
|
|
} |
|
|
|
if(StringUtil.isBlank(wxOfflineActivityRecord.getCusPhone())){ |
|
|
|
if(StringUtils.isBlank(wxOfflineActivityRecord.getCusPhone())){ |
|
|
|
throw new MallinkException(Result.ERROR,"请输入用户手机号"); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -97,7 +97,7 @@ public class WxOfflineActivityGrantController extends BaseController { |
|
|
|
// if(wxOfflineActivityGrantAward.getRecordIds() == null || wxOfflineActivityGrantAward.getRecordIds().isEmpty()){ |
|
|
|
// return new ResultData(Result.ERROR,"请选择订单"); |
|
|
|
// } |
|
|
|
if(StringUtil.isBlank(wxOfflineActivityGrantAward.getCusPhone())){ |
|
|
|
if(StringUtils.isBlank(wxOfflineActivityGrantAward.getCusPhone())){ |
|
|
|
throw new MallinkException(Result.ERROR,"用户手机号为空"); |
|
|
|
} |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
@@ -124,10 +124,10 @@ public class WxOfflineActivityGrantController extends BaseController { |
|
|
|
// if(wxOfflineActivityGrantAward.getRecordIds() == null || wxOfflineActivityGrantAward.getRecordIds().isEmpty()){ |
|
|
|
// return new ResultData(Result.ERROR,"请选择订单"); |
|
|
|
// } |
|
|
|
if(StringUtil.isBlank(wxOfflineActivityGrantAward.getCusPhone())){ |
|
|
|
if(StringUtils.isBlank(wxOfflineActivityGrantAward.getCusPhone())){ |
|
|
|
throw new MallinkException(Result.ERROR,"用户手机号为空"); |
|
|
|
} |
|
|
|
// if(StringUtil.isBlank(wxOfflineActivityGrantAward.getSignImg())){ |
|
|
|
// if(StringUtils.isBlank(wxOfflineActivityGrantAward.getSignImg())){ |
|
|
|
// return new ResultData(Result.ERROR,"签名为空"); |
|
|
|
// } |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
@@ -152,7 +152,7 @@ public class WxOfflineActivityGrantController extends BaseController { |
|
|
|
if(wxOfflineActivityGrantAward.getActivityId() == null){ |
|
|
|
return new ResultData(Result.ERROR,"活动ID为空"); |
|
|
|
} |
|
|
|
if(StringUtil.isBlank(wxOfflineActivityGrantAward.getCusPhone())){ |
|
|
|
if(StringUtils.isBlank(wxOfflineActivityGrantAward.getCusPhone())){ |
|
|
|
throw new MallinkException(Result.ERROR,"用户手机号为空"); |
|
|
|
} |
|
|
|
// if(wxOfflineActivityGrantAward.getRecordId() == null){ |
|
|
|
|