RMScontroller.java 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.feign.RmsFeign;
  3. import com.steerinfo.framework.controller.RESTfulResult;
  4. import io.swagger.annotations.ApiImplicitParam;
  5. import io.swagger.annotations.ApiImplicitParams;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.*;
  9. import org.springframework.web.multipart.MultipartFile;
  10. import java.math.BigDecimal;
  11. import java.util.HashMap;
  12. import java.util.List;
  13. import java.util.Map;
  14. @RestController
  15. @RequestMapping("${api.version}/rms")
  16. public class RMScontroller {
  17. @Autowired
  18. RmsFeign rmsFeign;
  19. /**
  20. * @author huk
  21. * @return
  22. */
  23. //查询所有作业环节
  24. @ApiOperation(value="查询所有作业环节")
  25. @PostMapping("/getLink")
  26. public Map<String, Object> getlink(){
  27. return rmsFeign.getlink();
  28. }
  29. /**
  30. * @author huk
  31. * @return
  32. */
  33. //新增运输路线
  34. @ApiOperation(value="新增运输路线")
  35. @ApiImplicitParams({
  36. @ApiImplicitParam(name = "mapValue", value = "运输路线", required = false, dataType = "Map"),
  37. })
  38. @PostMapping("/insertSelective")
  39. public Map<String, Object> insertSelective(@RequestBody(required = false) Map<String,Object> mapVal){
  40. return rmsFeign.insertSelective(mapVal);
  41. }
  42. @ApiOperation(value="查询运输路线")
  43. @ApiImplicitParams({
  44. @ApiImplicitParam(name = "apiId", value = "249", required = false, dataType = "Integer"),
  45. })
  46. @PostMapping(value = "/getAllLineDesk")
  47. public Map<String, Object> getAllLineDesk(@RequestBody(required = false) Map<String,Object> mapValue,
  48. Integer pageNum,
  49. Integer pageSize,
  50. Integer apiId,
  51. Integer lineType,
  52. String con){
  53. return rmsFeign.getAllLineDesk(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, lineType, con);
  54. }
  55. @ApiOperation(value = "根据主键查询出数据以供修改")
  56. @PostMapping("/getLinkToUpdate")
  57. public Map<String, Object> getLinkToUpdate(@RequestParam Integer lineId) {
  58. return rmsFeign.getLinkToUpdate(lineId);
  59. }
  60. @ApiOperation(value = "根据运输线路主表ID修改数据")
  61. @PostMapping("/updateByPrimaryKeySelective")
  62. public Map<String, Object> updateByPrimaryKeySelective(@RequestBody(required = false) Map<String,Object> mapVal) {
  63. return rmsFeign.updateByPrimaryKeySelective(mapVal);
  64. }
  65. @ApiOperation(value = "根据运输线路主表ID修改数据,为逻辑删除")
  66. @PostMapping("/updateRmsLine")
  67. Map<String, Object> updateRmsLine(@RequestBody(required = false) Map<String,Object> mapVal){
  68. return rmsFeign.updateRmsLine(mapVal);
  69. }
  70. @ApiOperation(value = "根据运输路线的主表id查询运输订单是否相关联")
  71. @PostMapping("/getCountNumber")
  72. public Map<String, Object> getCountNumber(@RequestParam Integer lineId) {
  73. return rmsFeign.getCountNumber(lineId);
  74. }
  75. //查询所有作业环节
  76. @ApiOperation(value="新增作业环节")
  77. @PostMapping("/LinkInsertSelective")
  78. public Map<String,Object> LinkInsertSelective(@RequestBody(required = false) Map<String,Object> mapValue){
  79. return rmsFeign.LinkInsertSelective(mapValue);
  80. }
  81. //********************************************************************************************************
  82. @ApiOperation(value="创建", notes="根据RmsCarDriver对象创建")
  83. @ApiImplicitParam(name = "rmsCarDriver", value = "详细实体rmsCarDriver", required = true, dataType = "RmsCarDriver")
  84. @PostMapping(value = "/insertCarDriver")
  85. public Map<String, Object> insertCarDriver(@RequestBody(required = false) Map<String, Object> map){
  86. return rmsFeign.insertCarDriver(map);
  87. }
  88. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  89. @ApiImplicitParams({
  90. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  91. @ApiImplicitParam(name = "rmsCarDriver", value = "详细实体rmsCarDriver", required = true, dataType = "RmsCarDriver")
  92. })
  93. @PostMapping(value = "/updateCarDriver", produces = "application/json;charset=UTF-8")
  94. public Map<String, Object> updateCarDriver(@RequestBody Map<String, Object> map){
  95. return rmsFeign.updateCarDriver(map);
  96. }
  97. @ApiOperation(value="删除司机信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息删除司机信息")
  98. @ApiImplicitParams({
  99. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  100. @ApiImplicitParam(name = "rmsCarDriver", value = "详细实体rmsCarDriver", required = true, dataType = "RmsCarDriver")
  101. })
  102. @PostMapping(value = "/deleteCarDriver/{id}")
  103. Map<String, Object> deleteCarDriver(@PathVariable("id") BigDecimal id) {
  104. return rmsFeign.deleteCarDriver(id);
  105. }
  106. @ApiOperation(value="获取司机详细信息", notes="根据url的id来获取详细信息")
  107. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  108. @PostMapping(value = "/getCarDriverById/{id}")
  109. public Map<String, Object> getCarDriverById(@PathVariable("id") BigDecimal id){
  110. return rmsFeign.getCarDriverById(id);
  111. }
  112. @PostMapping("/getCarDriverList")
  113. @ApiOperation(value = "模糊查询司机")
  114. public Map<String, Object> getCarDriverList(@RequestBody(required = false) Map<String, Object> mapValue,
  115. Integer pageNum,
  116. Integer pageSize,
  117. Integer apiId,
  118. String con) {
  119. return rmsFeign.getCarDriverList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  120. }
  121. //获取承运商列表
  122. @ApiOperation(value="获取承运商列表")
  123. @ApiImplicitParams({
  124. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  125. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  126. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  127. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  128. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  129. })
  130. @PostMapping("/getCarrierList")
  131. public Map<String, Object> getCarrierList(@RequestBody(required=false) Map<String,Object> mapValue,
  132. Integer apiId,
  133. Integer pageNum,
  134. Integer pageSize,
  135. String con
  136. ){
  137. if (mapValue==null){
  138. mapValue=new HashMap<>();
  139. }
  140. return rmsFeign.getCarrierList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  141. }
  142. @ApiOperation(value="新建承运商", notes="根据rmsCarrier对象创建")
  143. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  144. @PostMapping(value = "/insertCarrier")
  145. public Map<String, Object> insertCarrier(@RequestBody(required = false) Map<String, Object> map){
  146. return rmsFeign.insertCarrier(map);
  147. }
  148. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  149. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  150. @PostMapping(value = "/deleteCarrier/{id}")
  151. public Map<String, Object> deleteCarrier(@PathVariable("id")BigDecimal id){
  152. return rmsFeign.deleteCarrier(id);
  153. }
  154. @ApiOperation(value="更新承运商", notes="根据rmsCarrier对象创建")
  155. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  156. @PostMapping(value = "/updateCarrier")
  157. public Map<String, Object> updateCarrier(@RequestBody(required = false) Map<String, Object> map){
  158. return rmsFeign.updateCarrier(map);
  159. }
  160. @ApiOperation(value="根据id查询详细承运商信息", notes="根据rmsCarrier对象创建")
  161. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  162. @PostMapping(value = "/getCarrierById/{id}")
  163. public Map<String, Object> getCarrierById(@PathVariable("id")BigDecimal id){
  164. return rmsFeign.getCarrierById(id);
  165. }
  166. // 获取中标区域
  167. @ApiOperation(value="展示中标区域信息")
  168. @ApiImplicitParams({
  169. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  170. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  171. @ApiImplicitParam(name = "apiId", value = "406", required = false, dataType = "BigDecimal"),
  172. @ApiImplicitParam(name = "id", value = "中标id", required = false, dataType = "BigDecimal"),
  173. })
  174. @PostMapping("/getCarrierBidAreaList")
  175. public Map<String, Object> getCarrierBidAreaList(@RequestBody(required=false) Map<String,Object> mapValue,
  176. Integer apiId,
  177. Integer pageNum,
  178. Integer pageSize,
  179. String con
  180. ){
  181. return rmsFeign.getCarrierBidAreaList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  182. }
  183. //获取物资列表
  184. @ApiOperation(value="获取物资列表")
  185. @ApiImplicitParams({
  186. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  187. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  188. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  189. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  190. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  191. })
  192. @PostMapping("/getMaterialList")
  193. public Map<String, Object> getMaterialList(@RequestBody(required=false) Map<String,Object> mapValue,
  194. Integer apiId,
  195. Integer pageNum,
  196. Integer pageSize,
  197. String con
  198. ){
  199. return rmsFeign.getMaterialList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  200. }
  201. @ApiOperation(value="新增物资", notes="根据rmsMaterial对象创建")
  202. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  203. @PostMapping(value = "/insertMaterial")
  204. public Map<String, Object> insertMaterial(@RequestBody(required = false) Map<String, Object> map){
  205. return rmsFeign.insertMaterial(map);
  206. }
  207. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  208. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  209. @PostMapping(value = "/deleteMaterial/{id}")
  210. public Map<String, Object> deleteMaterial(@PathVariable("id")BigDecimal id){
  211. return rmsFeign.deleteMaterial(id);
  212. }
  213. @ApiOperation(value="更新物资", notes="根据rmsMaterial对象创建")
  214. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  215. @PostMapping(value = "/updateMaterial")
  216. public Map<String, Object> updateMaterial(@RequestBody(required = false) Map<String, Object> map){
  217. return rmsFeign.updateMaterial(map);
  218. }
  219. @ApiOperation(value="根据id查询原料信息", notes="根据rmsCarrier对象创建")
  220. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  221. @PostMapping(value = "/getMaterialById/{id}")
  222. public Map<String, Object> getMaterialById(@PathVariable("id") BigDecimal id){
  223. return rmsFeign.getMaterialById(id);
  224. }
  225. @ApiOperation(value="获取人员信息列表")
  226. @ApiImplicitParams({
  227. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  228. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  229. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  230. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  231. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  232. })
  233. @PostMapping("/getPersonnelList")
  234. public Map<String, Object> getPersonnelList(@RequestBody(required = false) Map<String,Object> mapVal,
  235. Integer apiId,
  236. Integer pageNum,
  237. Integer pageSize,
  238. String con
  239. ){
  240. return rmsFeign.getPersonnelList(mapVal==null?new HashMap<>():mapVal, apiId, pageNum, pageSize,con);
  241. }
  242. @ApiOperation(value="新增人员信息", notes="根据rmsMaterial对象创建")
  243. @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  244. @PostMapping(value = "/insertPersonnel")
  245. public Map<String, Object> insertPersonnel(@RequestBody(required = false) Map<String, Object> map){
  246. return rmsFeign.insertPersonnel(map);
  247. }
  248. @ApiOperation(value="删除", notes="根据rmsPersonnel对象创建")
  249. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  250. @PostMapping(value = "/deletePersonnel/{id}")
  251. public Map<String, Object> deletePersonnel(@PathVariable("id")BigDecimal id){
  252. return rmsFeign.deletePersonnel(id);
  253. }
  254. @ApiOperation(value="更新人员信息", notes="根据rmsMaterial对象创建")
  255. @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  256. @PostMapping(value = "/updatePersonnel")
  257. public Map<String, Object> updatePersonnel(@RequestBody(required = false) Map<String, Object> map){
  258. return rmsFeign.updatePersonnel(map);
  259. }
  260. @ApiOperation(value="根据id更新详细人员信息", notes="根据rmsPersonnel对象创建")
  261. @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  262. @PostMapping(value = "/getPersonnelById/{personnelId}")
  263. public Map<String, Object> getPersonnelById(@PathVariable("personnelId")BigDecimal personnelId){
  264. return rmsFeign.getPersonnelById(personnelId);
  265. }
  266. @ApiOperation(value="获取托运人列表")
  267. @ApiImplicitParams({
  268. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  269. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  270. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  271. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  272. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  273. })
  274. @PostMapping("/getShipperList")
  275. public Map<String, Object> getShipperList(@RequestBody(required=false) Map<String,Object> mapValue,
  276. Integer apiId,
  277. Integer pageNum,
  278. Integer pageSize,
  279. String con
  280. ){
  281. return rmsFeign.getShipperList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  282. }
  283. @ApiOperation(value="新增托运人信息", notes="根据rmsShipper对象创建")
  284. @ApiImplicitParam(name = "rmsShipper", value = "详细实体rmsShipper", required = true, dataType = "rmsShipper")
  285. @PostMapping(value = "/insertShipper")
  286. public Map<String, Object> insertShipper(@RequestBody(required = false) Map<String, Object> map){
  287. return rmsFeign.insertShipper(map);
  288. }
  289. @ApiImplicitParam(name = "托运人id", value = "id", required = true, dataType = "int")
  290. @PostMapping(value = "/deleteShipper/{id}")
  291. public Map<String, Object> deleteShipper(@PathVariable("id")BigDecimal id){
  292. return rmsFeign.deleteShipper(id);
  293. }
  294. @ApiOperation(value="更新托运人信息", notes="根据rmsShipper对象创建")
  295. @ApiImplicitParam(name = "rmsShipper", value = "详细实体rmsShipper", required = true, dataType = "rmsShipper")
  296. @PostMapping(value = "/updateShipper")
  297. public Map<String, Object> updateShipper(@RequestBody(required = false) Map<String, Object> map){
  298. return rmsFeign.updateShipper(map);
  299. }
  300. @ApiOperation(value="根据id查询详细托运人信息", notes="根据rmsShipper对象创建")
  301. @ApiImplicitParam(name = "托运人id", value = "id", required = true, dataType = "int")
  302. @PostMapping(value = "/getShipperById/{id}")
  303. public Map<String, Object> getShipperById(@PathVariable("id")BigDecimal id){
  304. return rmsFeign.getShipperById(id);
  305. }
  306. // 获取供应商列表
  307. @ApiOperation(value="展示供应商信息")
  308. @ApiImplicitParams({
  309. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  310. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  311. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  312. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  313. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  314. })
  315. @PostMapping("/getSupplierList")
  316. public Map<String, Object> getSupplierList(@RequestBody(required=false) Map<String,Object> mapValue,
  317. Integer apiId,
  318. Integer pageNum,
  319. Integer pageSize,
  320. String con
  321. ){
  322. return rmsFeign.getSupplierList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  323. }
  324. @ApiOperation(value="新增供应商信息", notes="根据rmsSupplier对象创建")
  325. @ApiImplicitParam(name = "rmsSupplier", value = "详细实体rmsSupplier", required = true, dataType = "rmsSupplier")
  326. @PostMapping(value = "/insertSupplier")
  327. public Map<String, Object> insertSupplier(@RequestBody(required = false) Map<String, Object> map){
  328. return rmsFeign.insertSupplier(map);
  329. }
  330. @ApiOperation(value="删除", notes="根据rmsSupplier对象创建")
  331. @ApiImplicitParam(name = "承运商id", value = "id", required = true, dataType = "int")
  332. @PostMapping(value = "/deleteSupplier/{id}")
  333. public Map<String, Object> deleteSupplier(@PathVariable("id")BigDecimal id){
  334. return rmsFeign.deleteSupplier(id);
  335. }
  336. @ApiOperation(value="更新供应商信息", notes="根据rmsSupplier对象创建")
  337. @ApiImplicitParam(name = "rmsSupplier", value = "详细实体rmsSupplier", required = true, dataType = "rmsSupplier")
  338. @PostMapping(value = "/updateSupplier")
  339. public Map<String, Object> updateSupplier(@RequestBody(required = false) Map<String, Object> map){
  340. return rmsFeign.updateSupplier(map);
  341. }
  342. @ApiOperation(value="根据id查询供应商信息", notes="根据rmsSupplier对象创建")
  343. @ApiImplicitParam(name = "承运商id", value = "id", required = true, dataType = "int")
  344. @PostMapping(value = "/getSupplierById/{id}")
  345. public Map<String, Object> getSupplierById(@PathVariable("id")BigDecimal id){
  346. return rmsFeign.getSupplierById(id);
  347. }
  348. // 展示运力信息
  349. @ApiOperation(value="新增运力信息", notes="根据rmsCapacity对象创建")
  350. @ApiImplicitParam(name = "rmsCapacity", value = "详细实体rmsCapacity", required = true, dataType = "rmsCapacity")
  351. @PostMapping(value = "/insertCapacity")
  352. public Map<String, Object> insertCapacity(@RequestBody(required = false) Map<String, Object> map){
  353. return rmsFeign.insertCapacity(map);
  354. }
  355. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  356. @ApiImplicitParam(name = "运力id", value = "id", required = true, dataType = "int")
  357. @PostMapping(value = "/deleteCapacity/{id}")
  358. public Map<String, Object> deleteCapacity(@PathVariable("id")BigDecimal id){
  359. return rmsFeign.deleteCapacity(id);
  360. }
  361. @ApiOperation(value="获取运力详细信息", notes="根据url的id来获取详细信息")
  362. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  363. @PostMapping(value = "/getCapacityById/{id}")
  364. public Map<String,Object> getCapacityById(@PathVariable("id")BigDecimal id){
  365. return rmsFeign.getCapacityById(id);
  366. }
  367. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCapacity信息来更新详细信息")
  368. @ApiImplicitParams({
  369. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short"),
  370. @ApiImplicitParam(name = "rmsCapacity", value = "详细实体rmsCapacity", required = true, dataType = "RmsCapacity")
  371. })
  372. @PostMapping(value = "/updateCapacity", produces = "application/json;charset=UTF-8")
  373. public Map<String, Object> updateCapacity( @RequestBody Map<String, Object> map){
  374. return rmsFeign.updateCapacity(map);
  375. }
  376. @PostMapping("/getCapacityList")
  377. @ApiOperation(value = "模糊查询运力")
  378. public Map<String, Object> getCapacityList(@RequestBody(required = false) Map<String, Object> mapValue,
  379. Integer pageNum,
  380. Integer pageSize,
  381. Integer apiId,
  382. String con) {
  383. return rmsFeign.getCapacityList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  384. }
  385. @ApiOperation(value="新增汽车衡信息", notes="根据rmsCapacity对象创建")
  386. @ApiImplicitParam(name = "rmsTruckCalculate", value = "详细实体rmsTruckCalculate", required = true, dataType = "rmsTruckCalculate")
  387. @PostMapping(value = "/insertTruckCalculate")
  388. public Map<String, Object> insertTruckCalculate(@RequestBody(required = false) Map<String, Object> map){
  389. return rmsFeign.insertTruckCalculate(map);
  390. }
  391. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  392. @ApiImplicitParam(name = "汽车衡id", value = "id", required = true, dataType = "int")
  393. @PostMapping(value = "/deleteTruckCalculate/{id}")
  394. public Map<String, Object> deleteTruckCalculate(@PathVariable("id")BigDecimal id){
  395. return rmsFeign.deleteTruckCalculate(id);
  396. }
  397. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  398. @ApiImplicitParam(name = "汽车衡物资中间表id", value = "id", required = true, dataType = "int")
  399. @PostMapping(value = "/deleteTruckCalculateMaterial/{id}")
  400. public Map<String, Object> deleteTruckCalculateMaterial(@PathVariable("id")BigDecimal id){
  401. return rmsFeign.deleteTruckCalculateMaterial(id);
  402. }
  403. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  404. @ApiImplicitParams({
  405. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  406. @ApiImplicitParam(name = "rmsTruckCalculate", value = "详细实体rmsTruckCalculate", required = true, dataType = "RmsTruckCalculate")
  407. })
  408. @PostMapping(value = "/updateTruckCalculate", produces = "application/json;charset=UTF-8")
  409. public Map<String, Object> updateTruckCalculate(@RequestBody Map<String, Object> map){
  410. return rmsFeign.updateTruckCalculate(map);
  411. }
  412. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  413. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  414. @PostMapping(value = "/getTruckCalculateById/{id}")
  415. public Map<String,Object> getTruckCalculateById(@PathVariable("id") BigDecimal id){
  416. return rmsFeign.getTruckCalculateById(id);
  417. }
  418. @PostMapping("/getCalculateOfMaterialList")
  419. @ApiOperation(value="根据id查询汽车横下的物资表")
  420. public Map<String,Object> getCalculateOfMaterialList(@RequestBody(required = false)Map<String, Object> mapValue,
  421. Integer pageNum,
  422. Integer pageSize,
  423. Integer apiId,
  424. BigDecimal truckCalculateId){
  425. return rmsFeign.getCalculateOfMaterialList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,truckCalculateId);
  426. }
  427. @PostMapping("/getTruckCalculateList")
  428. @ApiOperation(value = "模糊查询汽车衡")
  429. public Map<String, Object> getTruckCalculateList(@RequestBody(required = false) Map<String, Object> mapValue,
  430. Integer pageNum,
  431. Integer pageSize,
  432. Integer apiId,
  433. String con) {
  434. return rmsFeign.getTruckCalculateList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  435. }
  436. @ApiOperation(value="新增汽车衡下的物资", notes="根据rmsWarehouse对象创建")
  437. @ApiImplicitParam(name = "rmsTruckCalculateMaterial", value = "详细实体rmsTruckCalculateMaterial", required = true, dataType = "rmsTruckCalculateMaterial")
  438. @PostMapping(value = "/insertTruckCalculateOfMaterial")
  439. public Map<String, Object> insertTruckCalculateOfMaterial(@RequestBody(required = false) Map<String, Object> map){
  440. return rmsFeign.insertTruckCalculateOfMaterial(map);
  441. }
  442. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  443. @ApiImplicitParam(name = "仓库id", value = "id", required = true, dataType = "int")
  444. @PostMapping(value = "/deleteWarehouse/{id}")
  445. public Map<String, Object> deleteWarehouse(@PathVariable("id")BigDecimal id){
  446. return rmsFeign.deleteWarehouse(id);
  447. }
  448. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  449. @ApiImplicitParams({
  450. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  451. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "RmsWarehouse")
  452. })
  453. @PostMapping(value = "/updateWarehouse", produces = "application/json;charset=UTF-8")
  454. public Map<String, Object> updateWarehouse( @RequestBody Map<String, Object> map){
  455. return rmsFeign.updateWarehouse(map);
  456. }
  457. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  458. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  459. @PostMapping(value = "/getWarehouseById/{id}")
  460. public Map<String, Object> getWarehouseById(@PathVariable("id") BigDecimal id){
  461. return rmsFeign.getWarehouseById(id);
  462. }
  463. @PostMapping("/getWarehouseList")
  464. @ApiOperation(value = "模糊查询原料仓库")
  465. public Map<String, Object> getWarehouseList(@RequestBody(required = false) Map<String, Object> mapValue,
  466. Integer pageNum,
  467. Integer pageSize,
  468. Integer apiId,
  469. String con) {
  470. return rmsFeign.getWarehouseList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  471. }
  472. @ApiOperation(value="展示司机排班信息", notes="分页查询")
  473. @ApiImplicitParams({
  474. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  475. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  476. @ApiImplicitParam(name = "apiId", value = "196", required = false, dataType = "BigDecimal"),
  477. })
  478. @PostMapping(value = "/getDriverCapacityList")
  479. public Map<String, Object> getDriverCapacityList(@RequestBody(required = false) Map<String,Object> mapValue,
  480. Integer pageNum,
  481. Integer pageSize,
  482. Integer apiId){
  483. return rmsFeign.getDriverCapacityList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  484. }
  485. @ApiOperation(value="创建", notes="根据RmsDriverCapacity对象创建")
  486. @ApiImplicitParam(name = "rmsDriverCapacity", value = "详细实体rmsDriverCapacity", required = true, dataType = "RmsDriverCapacity")
  487. @PostMapping(value = "/insertDriverCapacity")
  488. public Map<String, Object> insertDriverCapacity(@RequestBody(required = false) Map<String, Object> map ){
  489. return rmsFeign.insertDriverCapacity(map);
  490. }
  491. @ApiOperation(value="展示门岗信息")
  492. @ApiImplicitParams({
  493. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  494. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  495. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  496. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  497. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  498. })
  499. @PostMapping("/getGatepostList")
  500. public Map<String, Object> getGatepostList(@RequestBody(required=false) Map<String,Object> mapValue,
  501. Integer apiId,
  502. Integer pageNum,
  503. Integer pageSize,
  504. String con
  505. ){
  506. return rmsFeign.getGatepostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  507. }
  508. @ApiOperation(value="新增门岗信息", notes="根据rmsGatepost对象创建")
  509. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  510. @PostMapping(value = "/insertGatepost")
  511. public Map<String, Object> insertGatepost(@RequestBody(required = false) Map<String, Object> map){
  512. return rmsFeign.insertGatepost(map);
  513. }
  514. @ApiOperation(value="删除", notes="根据rmsGatepost对象创建")
  515. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  516. @PostMapping(value = "/deleteGatepost/{id}")
  517. public Map<String, Object> deleteGatepost(@PathVariable("id")BigDecimal id){
  518. return rmsFeign.deleteGatepost(id);
  519. }
  520. @ApiOperation(value="更新门岗信息", notes="根据rmsGatepost对象创建")
  521. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  522. @PostMapping(value = "/updateGatepost")
  523. public Map<String, Object> updateGatepost(@RequestBody(required = false) Map<String, Object> map){
  524. return rmsFeign.updateGatepost(map);
  525. }
  526. @ApiOperation(value="根据id查询门岗信息", notes="根据rmsGatepost对象创建")
  527. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  528. @PostMapping(value = "/getGatepostById/{id}")
  529. public Map<String, Object> getGatepostById(@PathVariable("id")BigDecimal id){
  530. return rmsFeign.getGatepostById(id);
  531. }
  532. @ApiOperation(value="根据id查询门岗规则信息", notes="根据rmsGatepost对象创建")
  533. @ApiImplicitParams({
  534. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  535. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  536. })
  537. @PostMapping(value = "/getGatepostRulesById/{id}")
  538. public Map<String, Object> getGatepostRulesById(@PathVariable("id")BigDecimal id,
  539. Integer apiId){
  540. return rmsFeign.getGatepostRulesById(id,apiId);
  541. }
  542. @ApiOperation(value="展示门岗规则信息")
  543. @ApiImplicitParams({
  544. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  545. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  546. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  547. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  548. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  549. })
  550. @PostMapping("/getGatepostRulesList")
  551. public Map<String, Object> getGatepostRulesList(@RequestBody(required=false) Map<String,Object> mapValue,
  552. Integer apiId,
  553. Integer pageNum,
  554. Integer pageSize,
  555. String con
  556. ){
  557. return rmsFeign.getGatepostRulesList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  558. }
  559. @ApiOperation(value="删除", notes="根据rulesId删除")
  560. @ApiImplicitParam(name = "门岗规则id", value = "rulesId", required = true, dataType = "int")
  561. @PostMapping(value = "/deleteGatepostRules/{rulesId}")
  562. public Map<String, Object> deleteGatepostRules(@PathVariable("rulesId") BigDecimal rulesId) {
  563. return rmsFeign.deleteGatepostRules(rulesId);
  564. }
  565. @ApiOperation(value="新增门岗规则")
  566. @ApiImplicitParams({
  567. @ApiImplicitParam(name = "mapValue", value = "门岗规则", required = false, dataType = "Map"),
  568. })
  569. @PostMapping("/insertGatepostRule")
  570. public Map<String, Object> insertGatepostRule(@RequestBody(required = false) Map<String,Object> mapValue){
  571. return rmsFeign.insertGatepostRule(mapValue);
  572. }
  573. @ApiOperation(value="获取门岗名")
  574. @ApiImplicitParams({
  575. @ApiImplicitParam(name = "门岗id", value = "gatepostId", required = true, dataType = "int")
  576. })
  577. @PostMapping("/getGatepostName/{gatepostId}")
  578. public Map<String, Object> getGatepostName(@PathVariable("gatepostId") BigDecimal gatepostId){
  579. return rmsFeign.getGatepostName(gatepostId);
  580. }
  581. @PostMapping("/getMaterialTypeList")
  582. @ApiOperation(value = "框计算物资种类")
  583. public Map<String, Object> getMaterialTypeList(@RequestBody(required = false) Map<String, Object> mapValue,
  584. Integer pageNum,
  585. Integer pageSize,
  586. Integer apiId,
  587. String con) {
  588. return rmsFeign.getMaterialTypeList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  589. }
  590. //*******************************下拉框************************
  591. @GetMapping("getCapacityTypeId")
  592. @ApiOperation(value = "得到下拉运力id")
  593. public Map<String, Object> getCapacityTypeId() {
  594. return rmsFeign.getCapacityTypeId();
  595. }
  596. @GetMapping(value = "getWarehouseTypeId")
  597. @ApiOperation(value = "获取原料仓库类型下拉id")
  598. public Map<String, Object> getWarehouseTypeId(){
  599. return rmsFeign.getWarehouseTypeId();
  600. }
  601. @GetMapping(value = "getPortId")
  602. @ApiOperation(value = "获取港存库所属港口下拉id")
  603. public Map<String, Object> getPortId(){
  604. return rmsFeign.getPortId();
  605. }
  606. @GetMapping(value="getCarrierId")
  607. @ApiOperation(value = "获取承运商下拉id")
  608. public Map<String,Object> getCarrierId(){
  609. return rmsFeign.getCarrierId();
  610. }
  611. @GetMapping("getMaterialTypeId")
  612. @ApiOperation(value = "得到下拉物资类型id")
  613. public Map<String, Object> getMaterialTypeId() {
  614. return rmsFeign.getMaterialTypeId();
  615. }
  616. @GetMapping("getUnitOfMeasureId")
  617. @ApiOperation(value = "得到下拉计量id")
  618. public Map<String, Object> getUnitOfMeasureId() {
  619. return rmsFeign.getUnitOfMeasureId();
  620. }
  621. @GetMapping("getShipperId")
  622. @ApiOperation(value = "得到下拉托运人id")
  623. public Map<String, Object> getShipperId() {
  624. return rmsFeign.getShipperId();
  625. }
  626. @GetMapping("getGatepostRulesId")
  627. @ApiOperation(value = "得到下拉门岗规则id")
  628. public Map<String, Object> getGatepostRulesId() {
  629. return rmsFeign.getGatepostRulesId();
  630. }
  631. @GetMapping("getTransportTypeId")
  632. @ApiOperation(value = "运输类型下拉")
  633. public Map<String,Object> getTransportTypeId(){
  634. return rmsFeign.getTransportTypeId();
  635. }
  636. @GetMapping("/getVehicleTypeId")
  637. @ApiOperation(value = "得到下拉车辆类型id")
  638. public Map<String, Object> getVehicleTypeId() {
  639. return rmsFeign.getVehicleTypeId();
  640. }
  641. //通知
  642. @ApiOperation(value = "获取公告信息", notes = "分页查询")
  643. @ApiImplicitParams({
  644. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  645. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  646. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  647. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  648. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  649. })
  650. @PostMapping(value = "/getNoticeList")
  651. public Map<String, Object> getNoticeList(@RequestBody(required = false) Map<String, Object> mapValue,
  652. Integer apiId,
  653. Integer pageNum,
  654. Integer pageSize,
  655. String con
  656. ) {
  657. if (mapValue == null) {
  658. mapValue = new HashMap<>();
  659. }
  660. return rmsFeign.getNoticeList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  661. }
  662. @ApiOperation(value="新增公告信息", notes="根据DilNotice对象创建")
  663. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "DilNotice")
  664. @PostMapping(value = "/insertNotice")
  665. public Map<String, Object> insertNotice(@RequestBody(required = false) Map<String, Object> map) {
  666. return rmsFeign.insertNotice(map);
  667. }
  668. @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
  669. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
  670. @PostMapping(value = "/updateNotice", produces = "application/json;charset=UTF-8")
  671. public Map<String, Object> updateNotice(@RequestBody(required = false) Map<String, Object> map) {
  672. return rmsFeign.updateNotice(map);
  673. }
  674. @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
  675. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  676. @PostMapping(value = "/deleteNotice/{id}")//BigDecimal
  677. public Map<String, Object> deleteNotice(@PathVariable("id") BigDecimal id) {
  678. return rmsFeign.deleteNotice(id);
  679. }
  680. //港口
  681. @ApiOperation(value = "获取港口", notes = "分页查询")
  682. @PostMapping(value = "/getPort")
  683. public Map<String, Object> getPortList(@RequestBody(required = false) Map<String, Object> mapVal,
  684. Integer apiId,
  685. Integer pageNum,
  686. Integer pageSize,
  687. String con
  688. ) {
  689. if (mapVal == null) {
  690. mapVal = new HashMap<>();
  691. }
  692. return rmsFeign.getPortList(mapVal == null ? new HashMap<>() : mapVal, apiId, pageNum, pageSize, con);
  693. }
  694. //码头
  695. @ApiOperation(value = "获取码头", notes = "分页查询")
  696. @PostMapping(value = "/getPier")
  697. public Map<String, Object> getPierList(@RequestBody(required = false) Map<String, Object> mapVal,
  698. Integer apiId,
  699. Integer pageNum,
  700. Integer pageSize,
  701. String con
  702. ) {
  703. if (mapVal == null) {
  704. mapVal = new HashMap<>();
  705. }
  706. return rmsFeign.getPierList(mapVal == null ? new HashMap<>() : mapVal, apiId, pageNum, pageSize, con);
  707. }
  708. @ApiOperation(value = "获取港存堆场", notes = "分页查询")
  709. @PostMapping(value = "/getYardList")
  710. public Map<String, Object> getPortYardList(@RequestBody(required = false) Map<String, Object> mapVal,
  711. Integer apiId,
  712. Integer pageNum,
  713. Integer pageSize,
  714. String con
  715. ) {
  716. if (mapVal == null) {
  717. mapVal = new HashMap<>();
  718. }
  719. return rmsFeign.getPortYardList(mapVal == null ? new HashMap<>() : mapVal, apiId, pageNum, pageSize, con);
  720. }
  721. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  722. @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")
  723. @PostMapping(value = "/getNoticeById/{id}")
  724. public Map<String, Object> getNoticeById(@PathVariable("id") BigDecimal id){
  725. return rmsFeign.getNoticeById(id);
  726. }
  727. //油价
  728. @ApiOperation(value = "获取油价信息", notes = "分页查询")
  729. @ApiImplicitParams({
  730. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  731. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  732. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  733. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  734. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  735. })
  736. @PostMapping(value = "/getOilPriceResultList")
  737. public Map<String, Object> getOilPriceResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  738. Integer apiId,
  739. Integer pageNum,
  740. Integer pageSize,
  741. String con
  742. ) {
  743. if (mapValue == null) {
  744. mapValue = new HashMap<>();
  745. }
  746. return rmsFeign.getOilPriceResultList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  747. }
  748. @ApiOperation(value="新增油价信息", notes="根据DilNotice对象创建")
  749. @ApiImplicitParam(name = "addOilPrice", value = "详细实体dilNotice", required = true, dataType = "DilNotice")
  750. @PostMapping(value = "/insertOilPrice")
  751. public Map<String, Object> insertOilPrice(@RequestBody(required = false) Map<String, Object> map) {
  752. return rmsFeign.insertOilPrice(map);
  753. }
  754. @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
  755. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
  756. @PostMapping(value = "/updateOilPrice", produces = "application/json;charset=UTF-8")
  757. public Map<String, Object> updateOilPrice(@RequestBody(required = false) Map<String, Object> map) {
  758. return rmsFeign.updateOilPrice(map);
  759. }
  760. @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
  761. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  762. @PostMapping(value = "/deleteOilPrice/{id}")//BigDecimal
  763. public Map<String, Object> deleteOilPrice(@PathVariable("id") BigDecimal id) {
  764. return rmsFeign.deleteOilPrice(id);
  765. }
  766. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  767. @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")
  768. @PostMapping(value = "/getOilPriceById/{id}")
  769. public Map<String, Object> getOilPriceById(@PathVariable("id") BigDecimal id){
  770. return rmsFeign.getOilPriceById(id);
  771. }
  772. //*******************************下拉框************************
  773. @GetMapping("getNoticeTypeId")
  774. @ApiOperation(value = "得到公告类型Id")
  775. public Map<String,Object> getNoticeTypeId(){
  776. return rmsFeign.getNoticeTypeId();
  777. }
  778. @GetMapping("getPortType")
  779. @ApiOperation(value = "得到港口类型Id")
  780. public Map<String,Object> getPortType(){
  781. return rmsFeign.getPortType();
  782. }
  783. @ApiOperation(value="新增原料仓库信息", notes="根据rmsWarehouse对象创建")
  784. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "rmsWarehouse")
  785. @PostMapping(value = "/insertWarehouse")
  786. public Map<String, Object> insertWarehouse(@RequestBody(required = false) Map<String, Object> map) {
  787. return rmsFeign.insertWarehouse(map);
  788. }
  789. //展示收货客户信息
  790. @ApiOperation(value = "获取收货客户信息", notes = "分页查询")
  791. @ApiImplicitParams({
  792. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  793. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  794. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  795. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  796. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  797. })
  798. @PostMapping(value = "/getConsigneeList")
  799. public Map<String, Object> getConsigneeList(@RequestBody(required = false) Map<String, Object> mapValue,
  800. Integer apiId,
  801. Integer pageNum,
  802. Integer pageSize,
  803. String con
  804. ) {
  805. return rmsFeign.getConsigneeList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  806. }
  807. @ApiOperation(value="新增收货客户信息", notes="根据rmsConsignee对象创建")
  808. @ApiImplicitParam(name = "rmsConsignee", value = "详细实体rmsConsignee", required = true, dataType = "rmsConsignee")
  809. @PostMapping(value = "/insertConsignee")
  810. public Map<String, Object> insertConsignee(@RequestBody(required = false) Map<String, Object> map){
  811. return rmsFeign.insertConsignee(map);
  812. }
  813. @ApiOperation(value="删除", notes="根据rmsConsignee对象创建")
  814. @ApiImplicitParam(name = "收货客户信息id", value = "id", required = true, dataType = "int")
  815. @PostMapping(value = "/deleteConsignee/{id}")
  816. public Map<String, Object> deleteConsignee(@PathVariable("id")BigDecimal id){
  817. return rmsFeign.deleteConsignee(id);
  818. }
  819. @ApiOperation(value="获取运力信息", notes="根据url的id来获取详细信息")
  820. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  821. @PostMapping(value = "/getConsigneeById/{id}")
  822. public Map<String,Object> getConsigneeById(@PathVariable("id")BigDecimal id){
  823. return rmsFeign.getConsigneeById(id);
  824. }
  825. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCapacity信息来更新详细信息")
  826. @ApiImplicitParams({
  827. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short"),
  828. @ApiImplicitParam(name = "rmsConsignee", value = "详细实体rmsConsignee", required = true, dataType = "RmsConsignee")
  829. })
  830. @PostMapping(value = "/updateConsignee", produces = "application/json;charset=UTF-8")
  831. public Map<String, Object> updateConsignee( @RequestBody Map<String, Object> map){
  832. return rmsFeign.updateConsignee(map);
  833. }
  834. /*
  835. *边写边搜索承运商
  836. * */
  837. @ApiOperation(value="根据用户输入输出承运商", notes="模糊查询")
  838. @ApiImplicitParams({
  839. @ApiImplicitParam(name = "con",value = "用户输入的承运商名", required = false, dataType = "String")
  840. })
  841. @PostMapping("/getCarrierName")
  842. public Map<String,Object> getCarrierName(@RequestParam(value ="state") String state){
  843. return rmsFeign.getCarrierName(state);
  844. }
  845. //港口
  846. @PostMapping("/insertPort")
  847. public Map<String, Object> insertPort(@RequestBody(required = false) Map<String, Object> map) {
  848. return rmsFeign.insertPort(map);
  849. }
  850. //
  851. @PostMapping("/insertPier")
  852. public Map<String, Object> insertPier(@RequestBody(required = false) Map<String, Object> map) {
  853. return rmsFeign.insertPier(map);
  854. }
  855. //港口
  856. @PostMapping("/insertPortYard")
  857. public Map<String, Object> insertPortYard(@RequestBody(required = false) Map<String, Object> map) {
  858. return rmsFeign.insertPortYard(map);
  859. }
  860. @PostMapping(value = "/deletePort/{portId}")//BigDecimal
  861. public Map<String, Object> deletePort(@PathVariable("portId") BigDecimal portId) {
  862. return rmsFeign.deletePort(portId);
  863. }
  864. @PostMapping(value = "/deletePier/{pierId}")//BigDecimal
  865. public Map<String, Object> deletePier(@PathVariable("pierId") BigDecimal pierId) {
  866. return rmsFeign.deletePier(pierId);
  867. }
  868. @PostMapping(value = "/deletePortYard/{warehouseId}")//BigDecimal
  869. public Map<String, Object> deletePortYard(@PathVariable("warehouseId") BigDecimal warehouseId) {
  870. return rmsFeign.deletePortYard(warehouseId);
  871. }
  872. //上传图片
  873. @PostMapping(value = "/upload")
  874. public Map<String,Object> upLoadPhoto(@RequestParam("file") MultipartFile file){
  875. return rmsFeign.upLoadPhoto(file);
  876. }
  877. //根据运力id查询承运商
  878. @PostMapping(value = "getCarrierNameById/{id}")
  879. public Map<String,Object> getCarrierNameById(@PathVariable("id") BigDecimal id){
  880. return rmsFeign.getCarrierNameById(id);
  881. }
  882. //根据司机id查询承运商
  883. @PostMapping(value = "getCarrierNameByDriverId/{id}")
  884. public Map<String,Object> getCarrierNameByDriverId(@PathVariable("id") BigDecimal id){
  885. return rmsFeign.getCarrierNameByDriverId(id);
  886. }
  887. /*
  888. txf
  889. */
  890. @ApiOperation(value="新增组织结构实绩")
  891. @PostMapping(value = "/addShipperResult")
  892. public Map<String,Object> addShipperResult(@RequestBody(required = false) Map<String, Object> map){
  893. return rmsFeign.addShipperResult(map);
  894. }
  895. @ApiOperation(value="修改组织结构实绩")
  896. @PostMapping(value = "/updateShipperResult")
  897. public Map<String,Object> updateShipperResult(@RequestBody(required = false) Map<String, Object> map){
  898. return rmsFeign.updateShipperResult(map);
  899. }
  900. @ApiOperation(value="修改组织结构实绩")
  901. @PostMapping(value = "/deleteShipperResult")
  902. public Map<String,Object> deleteShipperResult(@RequestBody(required = false) Map<String, Object> map){
  903. return rmsFeign.deleteShipperResult(map);
  904. }
  905. }