Commit 1d1f8716 by Joneq

修改时间获取不正确

parent 20b615eb
......@@ -226,7 +226,7 @@ func (d *dao) BankDongRate(ctx context.Context,y map[string]string,modelItems []
ladder_rate = logic.MyFloat64(c3["delay_rate"]);
remark = c3["delay_rate"]
case 48: // 账期使用倍数统计
last_month := time.Now().Format("2006")+time.Now().AddDate(0, -1, 0).Format("01")
last_month := time.Now().AddDate(0, -1, 0).Format("200601")
sql6 := fmt.Sprintf(bank_sql6,y["erp_company_code"],last_month)
c3,_ := d.QueryOne(ctx,3,sql6)
if c3 == nil || c3["period_use_times_six"] == "" {
......
......@@ -21,20 +21,7 @@ const (
//项目对应的id
var Model_dong = map[int]string{
0:"所有",
35:"逾期金额率",
36:"发生逾期笔数率",
37:"平均逾期支付时间(天)",
38:"平均付款时间(天)",
39:"正常收款金额率",
40:"正常收款笔数率",
41:"近6个月账期变化率",
42:"交货及时率",
43:"退货率",
44:"近6个月逾期变化率",
45:"近6个月参保人数变化率",
48:"账期使用程度倍数",
999:"累计动态分数",
-1:"队列监听",
}
//动态模型对应的日志文件名称
var Model_dong_log = map[int]string{
......
......@@ -105,7 +105,7 @@ func (d *dao) DongRate(ctx context.Context,y map[string]string,modelItems []map[
ladder_rate = logic.MyFloat64(c3["delay_rate"]);
remark = c3["delay_rate"]
case 48: // 账期使用倍数统计
last_month := time.Now().Format("2006")+time.Now().AddDate(0, -1, 0).Format("01")
last_month := time.Now().AddDate(0, -1, 0).Format("200601")
sql6 := fmt.Sprintf(_sql6,y["erp_company_code"],last_month)
c3,_ := d.QueryOne(ctx,1,sql6)
if c3 == nil || c3["period_use_times_six"] == "" {
......
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 sign in to comment