Authored by csgyoho

Merge branch 'dev-resources-20181116' into test6.8.2

... ... @@ -184,27 +184,27 @@ public class CouponServiceImpl implements ICouponService,IBusinessExportService{
LOGGER.info("checkSaveOrUpdateCouponParam failed! couponName is blank");
return false;
}
if(null == req.getCouponAmount() || req.getCouponAmount()<=0){
if(null == req.getCouponAmount() || req.getCouponAmount()<0){
LOGGER.info("checkSaveOrUpdateCouponParam failed! couponAmount error! couponAmount is {}",req.getCouponAmount());
return false;
}
if(null == req.getCouponNum() || req.getCouponNum()<=0){
if(null == req.getCouponNum() || req.getCouponNum()<0){
LOGGER.info("checkSaveOrUpdateCouponParam failed! couponNum error! couponNum is {}",req.getCouponNum());
return false;
}
if(null == req.getUseNum() || req.getUseNum()<=0){
if(null == req.getUseNum() || req.getUseNum()<0){
LOGGER.info("checkSaveOrUpdateCouponParam failed! useNum error! useNum is {}",req.getUseNum());
return false;
}
if(null == req.getUseLimitType() || req.getUseLimitType()<=0){
if(null == req.getUseLimitType()){
LOGGER.info("checkSaveOrUpdateCouponParam failed! useLimitType error! useLimitType is {}",req.getUseLimitType());
return false;
}
if(null == req.getStartTime() || req.getStartTime()<=0){
if(null == req.getStartTime() || req.getStartTime()<0){
LOGGER.info("checkSaveOrUpdateCouponParam failed! startTime error! startTime is {}",req.getStartTime());
return false;
}
if(null == req.getEndTime() || req.getEndTime()<=0){
if(null == req.getEndTime() || req.getEndTime()<0){
LOGGER.info("checkSaveOrUpdateCouponParam failed! endTime error! endTime is {}",req.getEndTime());
return false;
}
... ...