|
@@ -4715,14 +4715,14 @@ func FpdImportExcel(c *gin.Context) {
|
|
|
_, err = tx.SQL(` update lpplandtl1 set lweight = 0 where pastureid = ? and lppid in(select id from lpplan where pastureid = ? )
|
|
|
and find_in_set(barid,(select barid from feedp where barname = ? )) `, pastureid, pastureid, barname).Execute()
|
|
|
if err != nil {
|
|
|
- logs.Error(err)
|
|
|
+ logs.Error(err, "11111")
|
|
|
appG.Response(http.StatusInternalServerError, e.ERROR, err)
|
|
|
return
|
|
|
}
|
|
|
_, err = tx.SQL(` UPDATE fpdetail SET ptuse=0,ptsuse=0
|
|
|
WHERE pastureid=? and find_in_set(barid,(select barid from feedp where barname = ? ) ) `, pastureid, barname).Execute()
|
|
|
if err != nil {
|
|
|
- logs.Error(err)
|
|
|
+ logs.Error(err, "22222")
|
|
|
appG.Response(http.StatusInternalServerError, e.ERROR, err)
|
|
|
return
|
|
|
}
|