示例#1
0
 public static void AdjustPoint(AdjustPointRequest adujstInfo, int userSysNo)
 {
     //1.做检查
     if (!adujstInfo.CustomerSysNo.HasValue || adujstInfo.CustomerSysNo.Value == 0)
     {
         throw new ArgumentException(L("用户编号不能为空"));
     }
     if (string.IsNullOrEmpty(adujstInfo.Source))
     {
         throw new BusinessException(L("积分调整来源系统不能为空"));
     }
     if (string.IsNullOrEmpty(adujstInfo.Memo))
     {
         throw new BusinessException(L("积分调整原因不能为空"));
     }
     CustomerDA.AdjustPoint(adujstInfo, userSysNo);
 }