trade.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 outtype query int false "出仓类型 - 1:转厂 2:出境(枚举:GZBSCOutType)"
  98. // @Param page query int false "页码"
  99. // @Param pagesize query int false "每页条数"
  100. // @Success 200 {array} models.GGzbscinoutorder
  101. // @Failure 500 {object} app.Response
  102. // @Router /Guangzuan/QueryGzbscinOutOrder [get]
  103. // @Tags 广钻
  104. func QueryGzbscinOutOrder(c *gin.Context) {
  105. a := app.GinUtils{Gin: app.Gin{C: c}}
  106. m := models.GGzbscinoutorder{}
  107. a.DoBindReq(&m)
  108. a.DoGetDataByPage(&m)
  109. }
  110. // QueryBScinOutOrderDetail
  111. // @Summary 保税仓出入库申请明细表查询
  112. // @Produce json
  113. // @Security ApiKeyAuth
  114. // @Param userid query int true "用户ID"
  115. // @Param orderid query string true "申请ID"
  116. // @Param page query int false "页码"
  117. // @Param pagesize query int false "每页条数"
  118. // @Success 200 {array} models.BScinoutorderdetail
  119. // @Failure 500 {object} app.Response
  120. // @Router /Guangzuan/QueryBScinOutOrderDetail [get]
  121. // @Tags 广钻
  122. func QueryBScinOutOrderDetail(c *gin.Context) {
  123. a := app.GinUtils{Gin: app.Gin{C: c}}
  124. m := models.BScinoutorderdetail{}
  125. a.DoBindReq(&m)
  126. a.DoGetDataByPage(&m)
  127. }
  128. // QueryBScOutOrderDetailatt
  129. // @Summary 保税仓出库申请明细附表查询
  130. // @Produce json
  131. // @Security ApiKeyAuth
  132. // @Param userid query int true "用户ID"
  133. // @Param orderid query string true "申请ID"
  134. // @Param page query int false "页码"
  135. // @Param pagesize query int false "每页条数"
  136. // @Success 200 {array} models.BScoutorderdetailatt
  137. // @Failure 500 {object} app.Response
  138. // @Router /Guangzuan/QueryBScOutOrderDetailatt [get]
  139. // @Tags 广钻
  140. func QueryBScOutOrderDetailatt(c *gin.Context) {
  141. a := app.GinUtils{Gin: app.Gin{C: c}}
  142. m := models.BScoutorderdetailatt{}
  143. a.DoBindReq(&m)
  144. a.DoGetDataByPage(&m)
  145. }
  146. // QueryGzbscPosition
  147. // @Summary 保税商品报关头寸表查询
  148. // @Produce json
  149. // @Security ApiKeyAuth
  150. // @Param userid query int true "用户ID"
  151. // @Param page query int false "页码"
  152. // @Param pagesize query int false "每页条数"
  153. // @Success 200 {array} models.GGzbscposition
  154. // @Failure 500 {object} app.Response
  155. // @Router /Guangzuan/QueryGzbscPosition [get]
  156. // @Tags 广钻
  157. func QueryGzbscPosition(c *gin.Context) {
  158. a := app.GinUtils{Gin: app.Gin{C: c}}
  159. m := models.GGzbscposition{}
  160. a.DoBindReq(&m)
  161. a.DoGetDataByPage(&m)
  162. }
  163. // QueryGzbscusermonthpay
  164. // @Summary 保税仓用户月付款通知书表查询(计费管理)
  165. // @Produce json
  166. // @Security ApiKeyAuth
  167. // @Param userid query int true "用户ID"
  168. // @Param paystatus query int false "支付状态 - 1:待确认 2:待支付 3:已支付(枚举:GZBSCPayStatus)"
  169. // @Param page query int false "页码"
  170. // @Param pagesize query int false "每页条数"
  171. // @Success 200 {array} models.GGzbscusermonthpay
  172. // @Failure 500 {object} app.Response
  173. // @Router /Guangzuan/QueryGzbscusermonthpay [get]
  174. // @Tags 广钻
  175. func QueryGzbscusermonthpay(c *gin.Context) {
  176. a := app.GinUtils{Gin: app.Gin{C: c}}
  177. m := models.GGzbscusermonthpay{}
  178. a.DoBindReq(&m)
  179. a.DoGetDataByPage(&m)
  180. }
  181. // QueryGzbscuserpowerfee
  182. // @Summary 保税仓月电费登记表查询
  183. // @Produce json
  184. // @Security ApiKeyAuth
  185. // @Param userid query int true "用户ID"
  186. // @Param trademonth query string true "月份(yyyMM)"
  187. // @Param page query int false "页码"
  188. // @Param pagesize query int false "每页条数"
  189. // @Success 200 {array} models.GGzbscuserpowerfee
  190. // @Failure 500 {object} app.Response
  191. // @Router /Guangzuan/QueryGzbscuserpowerfee [get]
  192. // @Tags 广钻
  193. func QueryGzbscuserpowerfee(c *gin.Context) {
  194. a := app.GinUtils{Gin: app.Gin{C: c}}
  195. m := models.GGzbscuserpowerfee{}
  196. a.DoBindReq(&m)
  197. a.DoGetDataByPage(&m)
  198. }
  199. // QueryBscinoutorder
  200. // @Summary 保税仓本月进口明细/本月出境明细/本月转厂明细查询
  201. // @Produce json
  202. // @Security ApiKeyAuth
  203. // @Param userid query int true "用户ID"
  204. // @Param orderid query string true "申请ID"
  205. // @Param jckdate query string true "进出口月份(yyyMM)"
  206. // @Param page query int false "页码"
  207. // @Param pagesize query int false "每页条数"
  208. // @Success 200 {array} models.Bscinoutorder
  209. // @Failure 500 {object} app.Response
  210. // @Router /Guangzuan/QueryBscinoutorder [get]
  211. // @Tags 广钻
  212. func QueryBscinoutorder(c *gin.Context) {
  213. a := app.GinUtils{Gin: app.Gin{C: c}}
  214. m := models.Bscinoutorder{}
  215. a.DoBindReq(&m)
  216. a.DoGetDataByPage(&m)
  217. }