Commit 9a8cfe45 by guanzhenshan

管理成本增加手续费用

parent fdd81eb6
......@@ -22,8 +22,8 @@ namespace Bailun.DC.DailyPayAndIncoming
//{
// var _services = new Services();
// var start = DateTime.Parse("2020-02-19");
// while (start < DateTime.Now)
// var start = DateTime.Parse("2020-04-01");
// while (start.AddDays(1) < DateTime.Now)
// {
// Console.WriteLine(start);
// _services.Init(start, start.AddDays(1));
......
using System;
using System.Collections.Generic;
using System.Text;
namespace Bailun.DC.Models
{
/// <summary>
/// 手续费
/// </summary>
public class dc_base_finance_handlefee
{
public int id { get; set; }
public int cw_id { get; set; }
public string trad_code { get; set; }
public int subject_value_from { get; set; }
public string subject_name_from { get; set; }
public int pay_account_iDFrom { get; set; }
public string bank_name_from { get; set; }
public string bank_card_from { get; set; }
public string bank_card_user_from { get; set; }
public int supplier_iDFrom { get; set; }
public string supplier_name_from { get; set; }
public int trade_type { get; set; }
public string subject_value_to { get; set; }
public string subject_name_to { get; set; }
public int pay_account_iDTo { get; set; }
public string bank_name_to { get; set; }
public string bank_card_to { get; set; }
public string bank_card_user_to { get; set; }
public int supplier_iDTo { get; set; }
public string supplier_name_to { get; set; }
public string unit_nameto { get; set; }
public string unit_codeto { get; set; }
public decimal rate { get; set; }
public decimal pay_moneyto { get; set; }
public string unit_name { get; set; }
public string unit_code { get; set; }
public decimal pay_money { get; set; }
public decimal pay_money_rMB { get; set; }
public decimal old_money { get; set; }
public decimal new_money { get; set; }
public decimal before_day_money { get; set; }
public string remark { get; set; }
public string annex { get; set; }
public int has_delete { get; set; }
public string delete_remark { get; set; }
public int create_user_iD { get; set; }
public string create_user_name { get; set; }
public DateTime? create_time { get; set; }
public int fetter_trade_iD { get; set; }
public string fetter_trade_code { get; set; }
public string source { get; set; }
public string trade_category { get; set; }
public int payment_iD { get; set; }
public int pur_category_iD { get; set; }
public string pur_category_name { get; set; }
public string apply_code { get; set; }
public decimal original_rate { get; set; }
public string cashier_source_name { get; set; }
public string cashier_detail_name { get; set; }
public string cashier_code { get; set; }
public string casher_transaction_type { get; set; }
public int cashier_id { get; set; }
public string cashier_other_order_code { get; set; }
}
}
......@@ -742,6 +742,36 @@ namespace Bailun.DC.Services
}
/// <summary>
/// 手续费
/// </summary>
/// <param name="start"></param>
/// <param name="end"></param>
/// <param name="paycompanyid"></param>
/// <returns></returns>
public List<dc_base_finance_handlefee> ListFinanceHandleFee(DateTime start, DateTime end, int? paycompanyid)
{
var sql = $"select * from dc_base_finance_handlefee where has_delete=0 and create_time>='{start.ToString("yyyy-MM-dd")}' and create_time<'{end.AddDays(1).ToString("yyyy-MM-dd")}'";
if (paycompanyid.HasValue && paycompanyid.Value > 0)
{
sql += " and subject_value_from=" + paycompanyid.Value;
}
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString))
{
if (cn.State == ConnectionState.Closed)
{
cn.Open();
}
var list = cn.Query<dc_base_finance_handlefee>(sql).ToList();
return list;
}
}
#endregion
#region 平台余额
......
......@@ -7,27 +7,27 @@ namespace Bailun.DC.SkuDailyPurchaseAndSales
{
class Program
{
static async Task Main(string[] args)
{
Console.WriteLine("进入保存每日采购数和售出数");
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Services>();
});
await builder.RunConsoleAsync();
}
//static void Main(string[] args)
//static async Task Main(string[] args)
//{
// var start = DateTime.Parse("2020-04-01");
// while (start.AddDays(1) < DateTime.Now)
// Console.WriteLine("进入保存每日采购数和售出数");
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// Console.WriteLine(start.ToString("yyyy-MM-dd"));
// new Services().Init(start, start.AddDays(1));
// start = start.AddDays(1);
// }
// services.AddHostedService<Services>();
// });
// await builder.RunConsoleAsync();
//}
static void Main(string[] args)
{
var start = DateTime.Parse("2020-05-01");
while (start.AddDays(1) < DateTime.Now)
{
Console.WriteLine(start.ToString("yyyy-MM-dd"));
new Services().Init(start, start.AddDays(1));
start = start.AddDays(1);
}
}
}
}
......@@ -41,7 +41,9 @@ namespace Bailun.DC.Web
{
options.ValueLengthLimit = 1024 * 1024 * 100;
options.ValueCountLimit = int.MaxValue;
});
//עsession
//services.AddSession();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment