package guangzuan import ( "mtp2_if/global/app" "mtp2_if/models" "github.com/gin-gonic/gin" ) // QueryBuyOrder // @Summary 查询求购大厅委托单 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param zsallproperties query string false "商品(查询字段-模糊查询)" // @Param zscategorys query string false "钻石分类, 格式:1,2,3" // @Param wrtradeorderid query int false "委托单号" // @Param buyusername query string false "买方(查询字段-模糊查询)" // @Success 200 {array} models.BuyOrder // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryBuyOrder [get] // @Tags 广钻 func QueryBuyOrder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.BuyOrder{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QuerySellOrder // @Summary 查询出售大厅委托单 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param zsallproperties query string false "商品(查询字段-模糊查询)" // @Param zscategorys query string false "钻石分类, 格式:1,2,3" // @Param wrtradeorderid query int false "委托单号" // @Param buyusername query string false "卖方(查询字段-模糊查询)" // @Success 200 {array} models.SellOrder // @Failure 500 {object} app.Response // @Router /Guangzuan/QuerySellOrder [get] // @Tags 广钻 func QuerySellOrder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.SellOrder{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryDiamond // @Summary 钻石搜索 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param data body models.SellOrderQueryReq true "钻石搜索入参" // @Success 200 {array} models.SellOrder // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryDiamond [post] // @Tags 广钻 func QueryDiamond(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} req := models.SellOrderQueryReq{} a.DoBindJsonReq(&req) m := models.SellOrder{ IsQueryDiamond: true, ZSCATEGORY: req.ZSCATEGORY, ZSCURRENCYTYPE_S: req.ZSCURRENCYTYPE, WAREHOUSEID: req.WAREHOUSEID, WEIGHT: req.WEIGHT1, WEIGHT_END: req.WEIGHT2, WEIGHTAVG: req.WEIGHTAVG1, WEIGHTAVG_END: req.WEIGHTAVG2, ZSSHAPETYPE: req.ZSSHAPETYPE, ZSCOLORTYPE: req.ZSCOLORTYPE, ZSCLARITYTYPE: req.ZSCLARITYTYPE, ZSCUTTYPE: req.ZSCUTTYPE, ZSSYMMETRYTYPE: req.ZSSYMMETRYTYPE, ZSPOLISHTYPE: req.ZSPOLISHTYPE, ZSFLUORESCENCETYPE: req.ZSFLUORESCENCETYPE, ZSCERTTYPE: req.ZSCERTTYPE, ORIGIN: req.ORIGIN, ZSSTYLETYPE: req.ZSSTYLETYPE, ZSCZCOLOR1TYPE: req.ZSCZCOLOR1TYPE, PageEx: models.PageEx{Page: req.Page, PageSize: req.PageSize}, } a.DoGetDataByPage(&m) } // QueryGzbscinOutOrder // @Summary 保税仓出入库申请表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param ordertype query int true "单据类型 - 1:进仓 2:出仓(枚举:GZBSCOrderType)" // @Param listtype query int false "列表类型 - 0.全部 1.待上传 2.进行中 3.已结束" // @Param outtype query int false "出仓类型 - 1:转厂 2:出境(枚举:GZBSCOutType)" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.GGzbscinoutorder // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGzbscinOutOrder [get] // @Tags 广钻 func QueryGzbscinOutOrder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.GGzbscinoutorder{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryBScinOutOrderDetail // @Summary 保税仓出入库申请明细表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param orderid query string true "申请ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.BScinoutorderdetail // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryBScinOutOrderDetail [get] // @Tags 广钻 func QueryBScinOutOrderDetail(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.BScinoutorderdetail{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryBScOutOrderDetailatt // @Summary 保税仓出库申请明细附表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param orderid query string true "申请ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.BScoutorderdetailatt // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryBScOutOrderDetailatt [get] // @Tags 广钻 func QueryBScOutOrderDetailatt(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.BScoutorderdetailatt{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryGzbscPosition // @Summary 保税商品报关头寸表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.GGzbscposition // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGzbscPosition [get] // @Tags 广钻 func QueryGzbscPosition(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.GGzbscposition{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryGzbscusermonthpay // @Summary 保税仓用户月付款通知书表查询(计费管理) // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param paystatus query int false "支付状态 - 1:待确认 2:待支付 3:已支付(枚举:GZBSCPayStatus)" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.GGzbscusermonthpay // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGzbscusermonthpay [get] // @Tags 广钻 func QueryGzbscusermonthpay(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.GGzbscusermonthpay{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryGzbscuserpowerfee // @Summary 保税仓月电费登记表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param trademonth query string true "月份(yyyMM)" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.GGzbscuserpowerfee // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGzbscuserpowerfee [get] // @Tags 广钻 func QueryGzbscuserpowerfee(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.GGzbscuserpowerfee{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryBscinoutorder // @Summary 保税仓本月进口明细/本月出境明细/本月转厂明细查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param jckdate query string true "进出口月份(yyyMM)" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.Bscinoutorder // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryBscinoutorder [get] // @Tags 广钻 func QueryBscinoutorder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.Bscinoutorder{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryGZPreSell // @Summary 预售大厅/我的预售/集采大厅/我的集采 列表查询 // @Produce json // @Security ApiKeyAuth // @Param marketid query int true "市场ID" // @Param presalestatus query int false "预售状态 - 1:未开始 2:进行中 3:已结束 4:已关闭 5:处理中 6::处理失败 7:已完成" // @Param presalestatuses query string false "预售状态 - 1:未开始 2:进行中 3:已结束 4:已关闭 5:处理中 6::处理失败 7:已完成 - 逗号分隔" // @Param wrstandardname query string false "现货商品名称" // @Param customername query string false "预售方" // @Param selluserid query int false "发行方用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.GZPresell // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGZPreSell [get] // @Tags 广钻 func QueryGZPreSell(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.GZPresell{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryGZMyPresell // @Summary 我的预售认购列表查询 // @Produce json // @Security ApiKeyAuth // @Param presaleapplyid query int true "预售申请ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.GZMyPresell // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGZMyPresell [get] // @Tags 广钻 func QueryGZMyPresell(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.GZMyPresell{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryGZMyTradingPreSell // @Summary 我参与的预售(预售中\执行中)\我参与的集采(集采中\执行中) 列表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param marketid query int true "市场ID" // @Param status query int false "状态 1:预售中\集采中 2:执行中 3:已完成" // @Param customername query string false "卖方" // @Param wrstandardname query string false "商品" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.GZMyTradingPresell // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGZMyTradingPreSell [get] // @Tags 广钻 func QueryGZMyTradingPreSell(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.GZMyTradingPresell{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryGZWrPreSaleApply // @Summary 我的预售申请列表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param marketid query int true "市场ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.Wrpresaleapply // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGZWrPreSaleApply [get] // @Tags 广钻 func QueryGZWrPreSaleApply(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.Wrpresaleapply{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryPresaleorderapplyprice // @Summary 查询预售申请价格表 // @Produce json // @Param applyid query string true "预售申请ID" // @Success 200 {array} models.Presaleorderapplyprice // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryPresaleorderapplyprice [get] // @Tags 广钻 func QueryPresaleorderapplyprice(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.Presaleorderapplyprice{} a.DoBindReq(&m) a.DoGetDataEx(&m) } // QueryGzbscreckonorder // @Summary 保税仓结算单表查询 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param paystatus query int false "支付状态 - 2:待支付 3:已支付(枚举:GZBSCPayStatus)" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.Gzbscreckonorder // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryGzbscreckonorder [get] // @Tags 广钻 func QueryGzbscreckonorder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.Gzbscreckonorder{} a.DoBindReq(&m) a.DoGetDataByPage(&m) }