Added checking of pops

This commit is contained in:
Patrick Alvin Alcala 2026-02-19 13:06:17 +08:00
parent fff4a1a9a1
commit e3bcecc277

View file

@ -1430,6 +1430,17 @@ func connect() {
"result": result,
})
case "check-popsrecord":
err := dbpop.QueryRow("SELECT COUNT(OrderPayId) AS result FROM orderpaydetail WHERE oprefid = ?" , data).Scan(&result)
if err != nil {
c.AbortWithError(http.StatusBadRequest, err)
c.String(http.StatusBadRequest, err.Error())
return
}
c.JSON(http.StatusOK, gin.H{
"result": result,
})
}
})