| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- 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)
- }
|