Browse Source

no message

zhangchuanxing 2 weeks ago
parent
commit
c0ae367fce

+ 1 - 1
controllers/statistic/rai_data_summary.go

@@ -188,7 +188,7 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryList() {
 		mapSignedClientNum[keyMap]++
 	}
 
-	listFmsData, err := fms.GetContractRegisterListByStartDate(startDate)
+	listFmsData, err := fms.GetContractRegisterListByStartDate(startDate, endDate)
 	if err != nil {
 		br.Msg = "获取数据信息失败"
 		br.ErrMsg = "获取财务系统数据信息失败,Err:" + err.Error()

+ 2 - 2
models/fms/invoice_payment_summary.go

@@ -161,9 +161,9 @@ type InvoiceSummary struct {
 }
 
 // GetContractRegisterListByStartDate  根据起始日期的时间段筛选合同登记信息。
-func GetContractRegisterListByStartDate(startDate string) (results []*ContractRegisterSummary, err error) {
+func GetContractRegisterListByStartDate(startDate, endDate string) (results []*ContractRegisterSummary, err error) {
 	o := orm.NewOrmUsingDB("fms")
 	sql := ` SELECT  * FROM contract_register  WHERE start_date > ?  AND start_date <  ?   AND is_deleted = 0  AND product_ids LIKE '%2%'  `
-	_, err = o.Raw(sql, startDate, startDate).QueryRows(&results)
+	_, err = o.Raw(sql, startDate, endDate).QueryRows(&results)
 	return
 }