| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- 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 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/QueryBScinOutOrderDetail [get]
- // @Tags 铁合金
- func QueryBScOutOrderDetailatt(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.BScoutorderdetailatt{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
|