| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- 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,
- ZSCATEGORYS: req.ZSCATEGORYS,
- 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,
- CERNO: req.CERNO,
- 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)
- }
|