|
|
@@ -184,54 +184,6 @@ namespace MySystem.Service.Main1
|
|
|
{
|
|
|
if (check)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(fields["MerchantId"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写商户" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["ConsumerId"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写消费者" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["PayMode"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写支付方式" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["PayMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写支付金额" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["PayMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的支付金额" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["ReturnMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写已返金额" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["ReturnMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的已返金额" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["MaxDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写最大分红" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["MaxDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的最大分红" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["CurDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写当前分红" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["CurDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的当前分红" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["IsAct"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写是否活动" };
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
int Id = new DbServiceNew(AppConfig.Base.main1Tables, _conn).Add("SysWithdrawalApplyRecord", fields, 0);
|
|
|
@@ -247,54 +199,6 @@ namespace MySystem.Service.Main1
|
|
|
{
|
|
|
if (check)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(fields["MerchantId"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写商户" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["ConsumerId"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写消费者" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["PayMode"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写支付方式" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["PayMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写支付金额" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["PayMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的支付金额" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["ReturnMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写已返金额" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["ReturnMoney"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的已返金额" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["MaxDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写最大分红" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["MaxDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的最大分红" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["CurDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写当前分红" };
|
|
|
- }
|
|
|
- if (!function.IsNum(fields["CurDivi"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写正确的当前分红" };
|
|
|
- }
|
|
|
- if (string.IsNullOrEmpty(fields["IsAct"].ToString()))
|
|
|
- {
|
|
|
- return new AppResultJson() { Status = "-1", Info = "请填写是否活动" };
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
new DbServiceNew(AppConfig.Base.main1Tables, _conn).Edit("SysWithdrawalApplyRecord", fields, Id);
|