RMScontroller.java 55 KB

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