瀏覽代碼

修改 查现货/套保商品详情无数据时的返回值

zou.yingbin 4 年之前
父節點
當前提交
d3a2625080
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 1
      controllers/ermcp/qryMiddleGoods.go
  2. 2 1
      controllers/ermcp/qryWrstandard.go

+ 2 - 1
controllers/ermcp/qryMiddleGoods.go

@@ -69,6 +69,7 @@ func QueryMiddleGoodsDetail(c *gin.Context) {
 	if d, err := m.GetData(); err == nil {
 		appG.Response(http.StatusOK, e.SUCCESS, d)
 	} else {
-		appG.Response(http.StatusBadRequest, e.ERROR_QUERY_FAIL, nil)
+		//appG.Response(http.StatusBadRequest, e.ERROR_QUERY_FAIL, nil)
+		appG.Response(http.StatusOK, e.SUCCESS, nil)
 	}
 }

+ 2 - 1
controllers/ermcp/qryWrstandard.go

@@ -84,6 +84,7 @@ func QueryWrStandardDetail(c *gin.Context) {
 	if d, err := m.GetData(); err == nil {
 		appG.Response(http.StatusOK, e.SUCCESS, d)
 	} else {
-		appG.Response(http.StatusBadRequest, e.ERROR_QUERY_FAIL, nil)
+		//appG.Response(http.StatusBadRequest, e.ERROR_QUERY_FAIL, nil)
+		appG.Response(http.StatusOK, e.SUCCESS, nil)
 	}
 }