Browse Source

fix(账单明细) 修复结算后的账单明细查询

liuqi@dashoo.cn 4 năm trước cách đây
mục cha
commit
67847e6eb9

+ 1 - 0
model/account/settle_account_main.go

@@ -15,6 +15,7 @@ type SettleAccountMain internal2.SettleAccountMain
 
 type SettleAccountMainReq struct {
 	MainUserId  int `json:"mainUserId"`
+	BillId	string `json:"billId"`
 	MainUser  string `json:"mainUser"`
 	AttachUserId int `json:"attachUserId"`
 	AttachUser string `json:"attachUser"`

+ 3 - 0
service/settle_account_main/settle_account_main.go

@@ -82,6 +82,9 @@ func (s Service) List(req model.ListReq, user request.UserInfo) ([]accountModel.
 		if entity.FeeType != "" {
 			where += fmt.Sprintf(" AND FeeType='%v'", entity.FeeType)
 		}
+		if entity.BillId != "" {
+			where += fmt.Sprintf(" AND BillId='%v'", entity.BillId)
+		}
 		if entity.AppointStartDate != "" && entity.AppointEndDate != "" {
 			where += fmt.Sprintf(" AND AppointStartDate>'%v' AND AppointEndDate<'%v'", entity.AppointStartDate, entity.AppointEndDate)
 		}