|
@@ -517,7 +517,7 @@ type CustomerInfo struct {
|
517
|
517
|
func (m *BookDAO) GetCustomerBorrowInfo(customerInfo string) (*CustomerInfo, error) {
|
518
|
518
|
var customer []CustomerInfo
|
519
|
519
|
sql := `SELECT
|
520
|
|
- a.NAME,
|
|
520
|
+ a.name,
|
521
|
521
|
a.phone ,
|
522
|
522
|
(select count(1) from ta_book_borrow_record c WHERE borrow_status = '1' and c.customer_id = a.customer_id)as borrow_num,
|
523
|
523
|
(select count(1) from ta_book_borrow_record c WHERE borrow_status = '0' and c.customer_id = a.customer_id)as late_num
|