Updated backend
This commit is contained in:
parent
5982bcb743
commit
2b8071a4a8
1 changed files with 12 additions and 2 deletions
|
|
@ -929,7 +929,6 @@ func connect() {
|
|||
"result8": result8,
|
||||
})
|
||||
|
||||
|
||||
case "get-reprintdetails-electrical":
|
||||
var result2, result3, result4, result5, result6, result7, result8 string
|
||||
|
||||
|
|
@ -1048,7 +1047,7 @@ func connect() {
|
|||
"result3": array3,
|
||||
})
|
||||
|
||||
case "get-reprintdetailsfees-electrical":
|
||||
case "get-reprintdetailsfees-electrical":
|
||||
var result2, result3 string
|
||||
array := []string{}
|
||||
array2 := []string{}
|
||||
|
|
@ -1245,6 +1244,17 @@ func connect() {
|
|||
"result": result,
|
||||
})
|
||||
|
||||
case "check-paid-pops":
|
||||
err := dbpop.QueryRow("SELECT IF(COUNT(AFNum) > 0, 1, 0) 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,
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue