|
@@ -755,7 +755,7 @@ func (h *ScheduledDown) SyncFeedp(pastureid string, feedpList []interface{}) err
|
|
|
|
|
|
|
|
|
fmt.Println(barCode)
|
|
|
- _, err = tx.SQL(`update feedp fp set fp.softccount = ? where (select bcode from bar where id = fp.id ) = ? `, cowCount, barName).Execute()
|
|
|
+ _, err = tx.SQL(`update feedp fp set fp.softccount = ? where (select bcode from bar where id = fp.barid ) = ? `, cowCount, barName).Execute()
|
|
|
if err != nil {
|
|
|
tx.Rollback()
|
|
|
logs.Error("syncFeedp-error-7:", err)
|