Ver Fonte

查模板改为固定查areauserid=1,因为表里都是1的

zou.yingbin há 4 anos atrás
pai
commit
57c9d26460
1 ficheiros alterados com 3 adições e 5 exclusões
  1. 3 5
      controllers/ermcp/qryErmcp.go

+ 3 - 5
controllers/ermcp/qryErmcp.go

@@ -108,7 +108,7 @@ func QueryContract(c *gin.Context) {
 // @Summary 查询交易模板配置
 // @Produce json
 // @Security ApiKeyAuth
-// @Param areauserid query int false "所属机构id, 现在表里id都为1, 不填默认查arearuserid=1的"
+// @Param areauserid query int false "所属机构id"
 // @Success 200 {array} models.ErmcpTradeConfigTMP
 // @Failure 500 {object} app.Response
 // @Router /Ermcp/QueryTradeConfigTMP [get]
@@ -119,10 +119,8 @@ func QueryTradeConfigTMP(c *gin.Context) {
 		Areauserid int64 `form:"areauserid"` // 机构id
 	}{}
 	a.DoBindReq(&req)
-	if req.Areauserid == 0 {
-		// 默认查areauserid=1的
-		req.Areauserid = 1
-	}
+	// 现在表里id都为1, 改为固定查arearuserid=1的
+	req.Areauserid = 1
 	m := models.ErmcpTradeConfigTMP{AREAUSERID: req.Areauserid}
 	a.DoGetDataI(&m)
 }