trade.go 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. package guangzuan
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryBuyOrder
  8. // @Summary 查询求购大厅委托单
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Security LoginID
  12. // @Security Group
  13. // @Param page query int false "页码"
  14. // @Param pagesize query int false "每页条数"
  15. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  16. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  17. // @Param wrtradeorderid query int false "委托单号"
  18. // @Param buyusername query string false "买方(查询字段-模糊查询)"
  19. // @Success 200 {array} models.BuyOrder
  20. // @Failure 500 {object} app.Response
  21. // @Router /Guangzuan/QueryBuyOrder [get]
  22. // @Tags 广钻
  23. func QueryBuyOrder(c *gin.Context) {
  24. a := app.GinUtils{Gin: app.Gin{C: c}}
  25. m := models.BuyOrder{}
  26. a.DoBindReq(&m)
  27. a.DoGetDataByPage(&m)
  28. }
  29. // QuerySellOrder
  30. // @Summary 查询出售大厅委托单
  31. // @Produce json
  32. // @Security ApiKeyAuth
  33. // @Security LoginID
  34. // @Security Group
  35. // @Param page query int false "页码"
  36. // @Param pagesize query int false "每页条数"
  37. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  38. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  39. // @Param wrtradeorderid query int false "委托单号"
  40. // @Param buyusername query string false "卖方(查询字段-模糊查询)"
  41. // @Success 200 {array} models.SellOrder
  42. // @Failure 500 {object} app.Response
  43. // @Router /Guangzuan/QuerySellOrder [get]
  44. // @Tags 广钻
  45. func QuerySellOrder(c *gin.Context) {
  46. a := app.GinUtils{Gin: app.Gin{C: c}}
  47. m := models.SellOrder{}
  48. a.DoBindReq(&m)
  49. a.DoGetDataByPage(&m)
  50. }
  51. // QueryDiamond
  52. // @Summary 钻石搜索
  53. // @Produce json
  54. // @Security ApiKeyAuth
  55. // @Security LoginID
  56. // @Security Group
  57. // @Param data body models.SellOrderQueryReq true "钻石搜索入参"
  58. // @Success 200 {array} models.SellOrder
  59. // @Failure 500 {object} app.Response
  60. // @Router /Guangzuan/QueryDiamond [post]
  61. // @Tags 广钻
  62. func QueryDiamond(c *gin.Context) {
  63. a := app.GinUtils{Gin: app.Gin{C: c}}
  64. req := models.SellOrderQueryReq{}
  65. a.DoBindJsonReq(&req)
  66. m := models.SellOrder{
  67. IsQueryDiamond: true,
  68. ZSCATEGORY: req.ZSCATEGORY,
  69. ZSCURRENCYTYPE_S: req.ZSCURRENCYTYPE,
  70. WAREHOUSEID: req.WAREHOUSEID,
  71. WEIGHT: req.WEIGHT1,
  72. WEIGHT_END: req.WEIGHT2,
  73. WEIGHTAVG: req.WEIGHTAVG1,
  74. WEIGHTAVG_END: req.WEIGHTAVG2,
  75. ZSSHAPETYPE: req.ZSSHAPETYPE,
  76. ZSCOLORTYPE: req.ZSCOLORTYPE,
  77. ZSCLARITYTYPE: req.ZSCLARITYTYPE,
  78. ZSCUTTYPE: req.ZSCUTTYPE,
  79. ZSSYMMETRYTYPE: req.ZSSYMMETRYTYPE,
  80. ZSPOLISHTYPE: req.ZSPOLISHTYPE,
  81. ZSFLUORESCENCETYPE: req.ZSFLUORESCENCETYPE,
  82. ZSCERTTYPE: req.ZSCERTTYPE,
  83. ORIGIN: req.ORIGIN,
  84. ZSSTYLETYPE: req.ZSSTYLETYPE,
  85. ZSCZCOLOR1TYPE: req.ZSCZCOLOR1TYPE,
  86. PageEx: models.PageEx{Page: req.Page, PageSize: req.PageSize},
  87. }
  88. a.DoGetDataByPage(&m)
  89. }
  90. // QueryGzbscinOutOrder
  91. // @Summary 保税仓出入库申请表查询
  92. // @Produce json
  93. // @Security ApiKeyAuth
  94. // @Param userid query int true "用户ID"
  95. // @Param ordertype query int true "单据类型 - 1:进仓 2:出仓(枚举:GZBSCOrderType)"
  96. // @Param listtype query int false "列表类型 - 0.全部 1.待上传 2.进行中 3.已结束"
  97. // @Param page query int false "页码"
  98. // @Param pagesize query int false "每页条数"
  99. // @Success 200 {array} models.GGzbscinoutorder
  100. // @Failure 500 {object} app.Response
  101. // @Router /Guangzuan/QueryGzbscinOutOrder [get]
  102. // @Tags 广钻
  103. func QueryGzbscinOutOrder(c *gin.Context) {
  104. a := app.GinUtils{Gin: app.Gin{C: c}}
  105. m := models.GGzbscinoutorder{}
  106. a.DoBindReq(&m)
  107. a.DoGetDataByPage(&m)
  108. }
  109. // QueryBScinOutOrderDetail
  110. // @Summary 保税仓出入库申请明细表查询
  111. // @Produce json
  112. // @Security ApiKeyAuth
  113. // @Param userid query int true "用户ID"
  114. // @Param orderid query string true "申请ID"
  115. // @Param page query int false "页码"
  116. // @Param pagesize query int false "每页条数"
  117. // @Success 200 {array} models.BScinoutorderdetail
  118. // @Failure 500 {object} app.Response
  119. // @Router /Guangzuan/QueryBScinOutOrderDetail [get]
  120. // @Tags 广钻
  121. func QueryBScinOutOrderDetail(c *gin.Context) {
  122. a := app.GinUtils{Gin: app.Gin{C: c}}
  123. m := models.BScinoutorderdetail{}
  124. a.DoBindReq(&m)
  125. a.DoGetDataByPage(&m)
  126. }
  127. // QueryBScOutOrderDetailatt
  128. // @Summary 保税仓出库申请明细附表查询
  129. // @Produce json
  130. // @Security ApiKeyAuth
  131. // @Param userid query int true "用户ID"
  132. // @Param orderid query string true "申请ID"
  133. // @Param page query int false "页码"
  134. // @Param pagesize query int false "每页条数"
  135. // @Success 200 {array} models.BScoutorderdetailatt
  136. // @Failure 500 {object} app.Response
  137. // @Router /Guangzuan/QueryBScinOutOrderDetail [get]
  138. // @Tags 广钻
  139. func QueryBScOutOrderDetailatt(c *gin.Context) {
  140. a := app.GinUtils{Gin: app.Gin{C: c}}
  141. m := models.BScoutorderdetailatt{}
  142. a.DoBindReq(&m)
  143. a.DoGetDataByPage(&m)
  144. }
  145. // QueryGzbscPosition
  146. // @Summary 保税商品报关头寸表查询
  147. // @Produce json
  148. // @Security ApiKeyAuth
  149. // @Param userid query int true "用户ID"
  150. // @Param page query int false "页码"
  151. // @Param pagesize query int false "每页条数"
  152. // @Success 200 {array} models.GGzbscposition
  153. // @Failure 500 {object} app.Response
  154. // @Router /Guangzuan/QueryGzbscPosition [get]
  155. // @Tags 广钻
  156. func QueryGzbscPosition(c *gin.Context) {
  157. a := app.GinUtils{Gin: app.Gin{C: c}}
  158. m := models.GGzbscposition{}
  159. a.DoBindReq(&m)
  160. a.DoGetDataByPage(&m)
  161. }
  162. // QueryGzbscusermonthpay
  163. // @Summary 保税仓用户月付款通知书表查询(计费管理)
  164. // @Produce json
  165. // @Security ApiKeyAuth
  166. // @Param userid query int true "用户ID"
  167. // @Param paystatus query int false "支付状态 - 1:待确认 2:待支付 3:已支付(枚举:GZBSCPayStatus)"
  168. // @Param page query int false "页码"
  169. // @Param pagesize query int false "每页条数"
  170. // @Success 200 {array} models.GGzbscusermonthpay
  171. // @Failure 500 {object} app.Response
  172. // @Router /Guangzuan/QueryGzbscusermonthpay [get]
  173. // @Tags 广钻
  174. func QueryGzbscusermonthpay(c *gin.Context) {
  175. a := app.GinUtils{Gin: app.Gin{C: c}}
  176. m := models.GGzbscusermonthpay{}
  177. a.DoBindReq(&m)
  178. a.DoGetDataByPage(&m)
  179. }
  180. // QueryGzbscuserpowerfee
  181. // @Summary 保税仓月电费登记表查询
  182. // @Produce json
  183. // @Security ApiKeyAuth
  184. // @Param userid query int true "用户ID"
  185. // @Param trademonth query string true "月份(yyyMM)"
  186. // @Param page query int false "页码"
  187. // @Param pagesize query int false "每页条数"
  188. // @Success 200 {array} models.GGzbscuserpowerfee
  189. // @Failure 500 {object} app.Response
  190. // @Router /Guangzuan/QueryGzbscuserpowerfee [get]
  191. // @Tags 广钻
  192. func QueryGzbscuserpowerfee(c *gin.Context) {
  193. a := app.GinUtils{Gin: app.Gin{C: c}}
  194. m := models.GGzbscuserpowerfee{}
  195. a.DoBindReq(&m)
  196. a.DoGetDataByPage(&m)
  197. }
  198. // QueryBscinoutorder
  199. // @Summary 保税仓本月进口明细/本月出境明细/本月转厂明细查询
  200. // @Produce json
  201. // @Security ApiKeyAuth
  202. // @Param userid query int true "用户ID"
  203. // @Param orderid query string true "申请ID"
  204. // @Param jckdate query string true "进出口月份(yyyMM)"
  205. // @Param page query int false "页码"
  206. // @Param pagesize query int false "每页条数"
  207. // @Success 200 {array} models.Bscinoutorder
  208. // @Failure 500 {object} app.Response
  209. // @Router /Guangzuan/QueryBscinoutorder [get]
  210. // @Tags 广钻
  211. func QueryBscinoutorder(c *gin.Context) {
  212. a := app.GinUtils{Gin: app.Gin{C: c}}
  213. m := models.Bscinoutorder{}
  214. a.DoBindReq(&m)
  215. a.DoGetDataByPage(&m)
  216. }