|
|
@@ -68,6 +68,7 @@ type QryOPApplyReq struct {
|
|
|
UserId int64 `form:"UserId" binding:"required"` //用户ID
|
|
|
RelatedId string `form:"relatedid" binding:"required"` //现货合同ID, 不填则查所有
|
|
|
OperateapplyId string `form:"operateapplyid"` //操作申请id
|
|
|
+ Applystatus string `form:"applystatus"` // 申请状态 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回
|
|
|
}
|
|
|
|
|
|
// 查询业务管理/点价应答
|
|
|
@@ -82,6 +83,7 @@ type QryBusinessDjRsp struct {
|
|
|
// @Security ApiKeyAuth
|
|
|
// @Param UserId query int true "用户ID"
|
|
|
// @Param relatedid query string false "现货合同ID, 不填则查所有"
|
|
|
+// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
// @Success 200 {array} QryBusinessDjRsp
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /Ermcp/QueryBusinessDj [get]
|
|
|
@@ -90,7 +92,7 @@ func QueryBusinessDj(c *gin.Context) {
|
|
|
appG := app.Gin{C: c}
|
|
|
var req QryOPApplyReq
|
|
|
_ = c.ShouldBind(&req)
|
|
|
- m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId}
|
|
|
+ m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId, FilterAppStatus: req.Applystatus}
|
|
|
if d, err := m.GetData(1); err == nil {
|
|
|
//构建应答数据
|
|
|
sData := make([]QryBusinessDjRsp, 0)
|
|
|
@@ -123,6 +125,7 @@ type QryBussinessJsRsp struct {
|
|
|
// @Param UserId query int true "用户ID"
|
|
|
// @Param relatedid query string false "现货合同ID, 不填则查所有"
|
|
|
// @Param operateapplyid query string false "操作申请id"
|
|
|
+// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
// @Success 200 {array} QryBussinessJsRsp
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /Ermcp/QueryBusinessJs [get]
|
|
|
@@ -131,7 +134,7 @@ func QueryBusinessJs(c *gin.Context) {
|
|
|
appG := app.Gin{C: c}
|
|
|
var req QryOPApplyReq
|
|
|
_ = c.ShouldBind(&req)
|
|
|
- m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId, OPERATEAPPLYID: req.OperateapplyId}
|
|
|
+ m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId, OPERATEAPPLYID: req.OperateapplyId, FilterAppStatus: req.Applystatus}
|
|
|
if d, err := m.GetData(2); err == nil {
|
|
|
//构建应答数据
|
|
|
sData := make([]QryBussinessJsRsp, 0)
|
|
|
@@ -161,6 +164,7 @@ type QryBussinessJsExRsp struct {
|
|
|
// @Security ApiKeyAuth
|
|
|
// @Param UserId query int true "用户ID"
|
|
|
// @Param relatedid query string false "现货合同ID, 不填则查所有"
|
|
|
+// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
// @Success 200 {array} QryBussinessJsExRsp
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /Ermcp/QueryBusinessJsEx [get]
|
|
|
@@ -169,7 +173,7 @@ func QueryBusinessJsEx(c *gin.Context) {
|
|
|
appG := app.Gin{C: c}
|
|
|
var req QryOPApplyReq
|
|
|
_ = c.ShouldBind(&req)
|
|
|
- m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId}
|
|
|
+ m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId, FilterAppStatus: req.Applystatus}
|
|
|
if d, err := m.GetData(2); err == nil {
|
|
|
//构建应答数据
|
|
|
sData := make([]QryBussinessJsExRsp, 0)
|
|
|
@@ -230,6 +234,7 @@ type QryBussinessKxRsp struct {
|
|
|
// @Security ApiKeyAuth
|
|
|
// @Param UserId query int true "用户ID"
|
|
|
// @Param relatedid query string false "现货合同ID, 不填则查所有"
|
|
|
+// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
// @Success 200 {array} QryBussinessKxRsp
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /Ermcp/QueryBusinessKx [get]
|
|
|
@@ -238,7 +243,7 @@ func QueryBusinessKx(c *gin.Context) {
|
|
|
appG := app.Gin{C: c}
|
|
|
var req QryOPApplyReq
|
|
|
_ = c.ShouldBind(&req)
|
|
|
- m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId}
|
|
|
+ m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId, FilterAppStatus: req.Applystatus}
|
|
|
if d, err := m.GetData(3); err == nil {
|
|
|
//构建应答数据
|
|
|
sData := make([]QryBussinessKxRsp, 0)
|
|
|
@@ -270,6 +275,7 @@ type QryBussinessFpRsp struct {
|
|
|
// @Security ApiKeyAuth
|
|
|
// @Param UserId query int true "用户ID"
|
|
|
// @Param relatedid query string false "现货合同ID, 不填则查所有"
|
|
|
+// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
// @Success 200 {array} QryBussinessFpRsp
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /Ermcp/QueryBusinessFp [get]
|
|
|
@@ -278,7 +284,7 @@ func QueryBusinessFp(c *gin.Context) {
|
|
|
appG := app.Gin{C: c}
|
|
|
var req QryOPApplyReq
|
|
|
_ = c.ShouldBind(&req)
|
|
|
- m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId}
|
|
|
+ m := models.ErmcpOPApplyModel{RELATEDID: req.RelatedId, USERID: req.UserId, FilterAppStatus: req.Applystatus}
|
|
|
if d, err := m.GetData(4); err == nil {
|
|
|
//构建应答数据
|
|
|
sData := make([]QryBussinessFpRsp, 0)
|