数据动态查找以及动态赋值方法变更

This commit is contained in:
pixel
2020-11-19 17:24:05 +08:00
parent 0286d56e9c
commit a487266f5b
9 changed files with 67 additions and 26 deletions

View File

@@ -228,12 +228,12 @@ func GetMyNeed(c *gin.Context) {
func GetWorkflowMoveByID(c *gin.Context) {
var req request.GetById
_ = c.ShouldBindQuery(&req)
err, move, moves := service.GetWorkflowMoveByID(req.Id)
err, move, moves, business := service.GetWorkflowMoveByID(req.Id)
if err != nil {
errStr := err.Error()
global.GVA_LOG.Error(errStr)
response.FailWithMessage(errStr, c)
return
}
response.OkWithData(gin.H{"move": move, "moves": moves}, c)
response.OkWithData(gin.H{"move": move, "moves": moves, "business": business}, c)
}