RMScontroller.java 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  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. String carrierSSOId) {
  384. return rmsFeign.getCapacityList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con,carrierSSOId);
  385. }
  386. @ApiOperation(value="新增汽车衡信息", notes="根据rmsCapacity对象创建")
  387. @ApiImplicitParam(name = "rmsTruckCalculate", value = "详细实体rmsTruckCalculate", required = true, dataType = "rmsTruckCalculate")
  388. @PostMapping(value = "/insertTruckCalculate")
  389. public Map<String, Object> insertTruckCalculate(@RequestBody(required = false) Map<String, Object> map){
  390. return rmsFeign.insertTruckCalculate(map);
  391. }
  392. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  393. @ApiImplicitParam(name = "汽车衡id", value = "id", required = true, dataType = "int")
  394. @PostMapping(value = "/deleteTruckCalculate/{id}")
  395. public Map<String, Object> deleteTruckCalculate(@PathVariable("id")BigDecimal id){
  396. return rmsFeign.deleteTruckCalculate(id);
  397. }
  398. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  399. @ApiImplicitParam(name = "汽车衡物资中间表id", value = "id", required = true, dataType = "int")
  400. @PostMapping(value = "/deleteTruckCalculateMaterial/{id}")
  401. public Map<String, Object> deleteTruckCalculateMaterial(@PathVariable("id")BigDecimal id){
  402. return rmsFeign.deleteTruckCalculateMaterial(id);
  403. }
  404. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  405. @ApiImplicitParams({
  406. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  407. @ApiImplicitParam(name = "rmsTruckCalculate", value = "详细实体rmsTruckCalculate", required = true, dataType = "RmsTruckCalculate")
  408. })
  409. @PostMapping(value = "/updateTruckCalculate", produces = "application/json;charset=UTF-8")
  410. public Map<String, Object> updateTruckCalculate(@RequestBody Map<String, Object> map){
  411. return rmsFeign.updateTruckCalculate(map);
  412. }
  413. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  414. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  415. @PostMapping(value = "/getTruckCalculateById/{id}")
  416. public Map<String,Object> getTruckCalculateById(@PathVariable("id") BigDecimal id){
  417. return rmsFeign.getTruckCalculateById(id);
  418. }
  419. @PostMapping("/getCalculateOfMaterialList")
  420. @ApiOperation(value="根据id查询汽车横下的物资表")
  421. public Map<String,Object> getCalculateOfMaterialList(@RequestBody(required = false)Map<String, Object> mapValue,
  422. Integer pageNum,
  423. Integer pageSize,
  424. Integer apiId,
  425. BigDecimal truckCalculateId){
  426. return rmsFeign.getCalculateOfMaterialList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,truckCalculateId);
  427. }
  428. @PostMapping("/getTruckCalculateList")
  429. @ApiOperation(value = "模糊查询汽车衡")
  430. public Map<String, Object> getTruckCalculateList(@RequestBody(required = false) Map<String, Object> mapValue,
  431. Integer pageNum,
  432. Integer pageSize,
  433. Integer apiId,
  434. String con) {
  435. return rmsFeign.getTruckCalculateList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  436. }
  437. @ApiOperation(value="新增汽车衡下的物资", notes="根据rmsWarehouse对象创建")
  438. @ApiImplicitParam(name = "rmsTruckCalculateMaterial", value = "详细实体rmsTruckCalculateMaterial", required = true, dataType = "rmsTruckCalculateMaterial")
  439. @PostMapping(value = "/insertTruckCalculateOfMaterial")
  440. public Map<String, Object> insertTruckCalculateOfMaterial(@RequestBody(required = false) Map<String, Object> map){
  441. return rmsFeign.insertTruckCalculateOfMaterial(map);
  442. }
  443. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  444. @ApiImplicitParam(name = "仓库id", value = "id", required = true, dataType = "int")
  445. @PostMapping(value = "/deleteWarehouse/{id}")
  446. public Map<String, Object> deleteWarehouse(@PathVariable("id")BigDecimal id){
  447. return rmsFeign.deleteWarehouse(id);
  448. }
  449. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  450. @ApiImplicitParams({
  451. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  452. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "RmsWarehouse")
  453. })
  454. @PostMapping(value = "/updateWarehouse", produces = "application/json;charset=UTF-8")
  455. public Map<String, Object> updateWarehouse( @RequestBody Map<String, Object> map){
  456. return rmsFeign.updateWarehouse(map);
  457. }
  458. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  459. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  460. @PostMapping(value = "/getWarehouseById/{id}")
  461. public Map<String, Object> getWarehouseById(@PathVariable("id") BigDecimal id){
  462. return rmsFeign.getWarehouseById(id);
  463. }
  464. @PostMapping("/getWarehouseList")
  465. @ApiOperation(value = "模糊查询原料仓库")
  466. public Map<String, Object> getWarehouseList(@RequestBody(required = false) Map<String, Object> mapValue,
  467. Integer pageNum,
  468. Integer pageSize,
  469. Integer apiId,
  470. String con) {
  471. return rmsFeign.getWarehouseList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  472. }
  473. @ApiOperation(value="展示司机排班信息", notes="分页查询")
  474. @ApiImplicitParams({
  475. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  476. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  477. @ApiImplicitParam(name = "apiId", value = "196", required = false, dataType = "BigDecimal"),
  478. })
  479. @PostMapping(value = "/getDriverCapacityList")
  480. public Map<String, Object> getDriverCapacityList(@RequestBody(required = false) Map<String,Object> mapValue,
  481. Integer pageNum,
  482. Integer pageSize,
  483. Integer apiId){
  484. return rmsFeign.getDriverCapacityList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  485. }
  486. @ApiOperation(value="创建", notes="根据RmsDriverCapacity对象创建")
  487. @ApiImplicitParam(name = "rmsDriverCapacity", value = "详细实体rmsDriverCapacity", required = true, dataType = "RmsDriverCapacity")
  488. @PostMapping(value = "/insertDriverCapacity")
  489. public Map<String, Object> insertDriverCapacity(@RequestBody(required = false) Map<String, Object> map ){
  490. return rmsFeign.insertDriverCapacity(map);
  491. }
  492. @ApiOperation(value="展示门岗信息")
  493. @ApiImplicitParams({
  494. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  495. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  496. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  497. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  498. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  499. })
  500. @PostMapping("/getGatepostList")
  501. public Map<String, Object> getGatepostList(@RequestBody(required=false) Map<String,Object> mapValue,
  502. Integer apiId,
  503. Integer pageNum,
  504. Integer pageSize,
  505. String con
  506. ){
  507. return rmsFeign.getGatepostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  508. }
  509. @ApiOperation(value="新增门岗信息", notes="根据rmsGatepost对象创建")
  510. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  511. @PostMapping(value = "/insertGatepost")
  512. public Map<String, Object> insertGatepost(@RequestBody(required = false) Map<String, Object> map){
  513. return rmsFeign.insertGatepost(map);
  514. }
  515. @ApiOperation(value="删除", notes="根据rmsGatepost对象创建")
  516. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  517. @PostMapping(value = "/deleteGatepost/{id}")
  518. public Map<String, Object> deleteGatepost(@PathVariable("id")BigDecimal id){
  519. return rmsFeign.deleteGatepost(id);
  520. }
  521. @ApiOperation(value="更新门岗信息", notes="根据rmsGatepost对象创建")
  522. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  523. @PostMapping(value = "/updateGatepost")
  524. public Map<String, Object> updateGatepost(@RequestBody(required = false) Map<String, Object> map){
  525. return rmsFeign.updateGatepost(map);
  526. }
  527. @ApiOperation(value="根据id查询门岗信息", notes="根据rmsGatepost对象创建")
  528. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  529. @PostMapping(value = "/getGatepostById/{id}")
  530. public Map<String, Object> getGatepostById(@PathVariable("id")BigDecimal id){
  531. return rmsFeign.getGatepostById(id);
  532. }
  533. @ApiOperation(value="根据id查询门岗规则信息", notes="根据rmsGatepost对象创建")
  534. @ApiImplicitParams({
  535. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  536. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  537. })
  538. @PostMapping(value = "/getGatepostRulesById/{id}")
  539. public Map<String, Object> getGatepostRulesById(@PathVariable("id")BigDecimal id,
  540. Integer apiId){
  541. return rmsFeign.getGatepostRulesById(id,apiId);
  542. }
  543. @ApiOperation(value="展示门岗规则信息")
  544. @ApiImplicitParams({
  545. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  546. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  547. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  548. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  549. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  550. })
  551. @PostMapping("/getGatepostRulesList")
  552. public Map<String, Object> getGatepostRulesList(@RequestBody(required=false) Map<String,Object> mapValue,
  553. Integer apiId,
  554. Integer pageNum,
  555. Integer pageSize,
  556. String con
  557. ){
  558. return rmsFeign.getGatepostRulesList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  559. }
  560. @ApiOperation(value="删除", notes="根据rulesId删除")
  561. @ApiImplicitParam(name = "门岗规则id", value = "rulesId", required = true, dataType = "int")
  562. @PostMapping(value = "/deleteGatepostRules/{rulesId}")
  563. public Map<String, Object> deleteGatepostRules(@PathVariable("rulesId") BigDecimal rulesId) {
  564. return rmsFeign.deleteGatepostRules(rulesId);
  565. }
  566. @ApiOperation(value="新增门岗规则")
  567. @ApiImplicitParams({
  568. @ApiImplicitParam(name = "mapValue", value = "门岗规则", required = false, dataType = "Map"),
  569. })
  570. @PostMapping("/insertGatepostRule")
  571. public Map<String, Object> insertGatepostRule(@RequestBody(required = false) Map<String,Object> mapValue){
  572. return rmsFeign.insertGatepostRule(mapValue);
  573. }
  574. @ApiOperation(value="获取门岗名")
  575. @ApiImplicitParams({
  576. @ApiImplicitParam(name = "门岗id", value = "gatepostId", required = true, dataType = "int")
  577. })
  578. @PostMapping("/getGatepostName/{gatepostId}")
  579. public Map<String, Object> getGatepostName(@PathVariable("gatepostId") BigDecimal gatepostId){
  580. return rmsFeign.getGatepostName(gatepostId);
  581. }
  582. @PostMapping("/getMaterialTypeList")
  583. @ApiOperation(value = "框计算物资种类")
  584. public Map<String, Object> getMaterialTypeList(@RequestBody(required = false) Map<String, Object> mapValue,
  585. Integer pageNum,
  586. Integer pageSize,
  587. Integer apiId,
  588. String con) {
  589. return rmsFeign.getMaterialTypeList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  590. }
  591. //*******************************下拉框************************
  592. @GetMapping("getCapacityTypeId")
  593. @ApiOperation(value = "得到下拉运力id")
  594. public Map<String, Object> getCapacityTypeId() {
  595. return rmsFeign.getCapacityTypeId();
  596. }
  597. @GetMapping(value = "getWarehouseTypeId")
  598. @ApiOperation(value = "获取原料仓库类型下拉id")
  599. public Map<String, Object> getWarehouseTypeId(){
  600. return rmsFeign.getWarehouseTypeId();
  601. }
  602. @GetMapping(value = "getPortId")
  603. @ApiOperation(value = "获取港存库所属港口下拉id")
  604. public Map<String, Object> getPortId(){
  605. return rmsFeign.getPortId();
  606. }
  607. @GetMapping(value="getCarrierId")
  608. @ApiOperation(value = "获取承运商下拉id")
  609. public Map<String,Object> getCarrierId(){
  610. return rmsFeign.getCarrierId();
  611. }
  612. @GetMapping("getMaterialTypeId")
  613. @ApiOperation(value = "得到下拉物资类型id")
  614. public Map<String, Object> getMaterialTypeId() {
  615. return rmsFeign.getMaterialTypeId();
  616. }
  617. @GetMapping("getUnitOfMeasureId")
  618. @ApiOperation(value = "得到下拉计量id")
  619. public Map<String, Object> getUnitOfMeasureId() {
  620. return rmsFeign.getUnitOfMeasureId();
  621. }
  622. @GetMapping("getShipperId")
  623. @ApiOperation(value = "得到下拉托运人id")
  624. public Map<String, Object> getShipperId() {
  625. return rmsFeign.getShipperId();
  626. }
  627. @GetMapping("getGatepostRulesId")
  628. @ApiOperation(value = "得到下拉门岗规则id")
  629. public Map<String, Object> getGatepostRulesId() {
  630. return rmsFeign.getGatepostRulesId();
  631. }
  632. @GetMapping("getTransportTypeId")
  633. @ApiOperation(value = "运输类型下拉")
  634. public Map<String,Object> getTransportTypeId(){
  635. return rmsFeign.getTransportTypeId();
  636. }
  637. @GetMapping("/getVehicleTypeId")
  638. @ApiOperation(value = "得到下拉车辆类型id")
  639. public Map<String, Object> getVehicleTypeId() {
  640. return rmsFeign.getVehicleTypeId();
  641. }
  642. //通知
  643. @ApiOperation(value = "获取公告信息", notes = "分页查询")
  644. @ApiImplicitParams({
  645. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  646. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  647. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  648. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  649. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  650. })
  651. @PostMapping(value = "/getNoticeList")
  652. public Map<String, Object> getNoticeList(@RequestBody(required = false) Map<String, Object> mapValue,
  653. Integer apiId,
  654. Integer pageNum,
  655. Integer pageSize,
  656. String con
  657. ) {
  658. if (mapValue == null) {
  659. mapValue = new HashMap<>();
  660. }
  661. return rmsFeign.getNoticeList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  662. }
  663. @ApiOperation(value="新增公告信息", notes="根据DilNotice对象创建")
  664. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "DilNotice")
  665. @PostMapping(value = "/insertNotice")
  666. public Map<String, Object> insertNotice(@RequestBody(required = false) Map<String, Object> map) {
  667. return rmsFeign.insertNotice(map);
  668. }
  669. @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
  670. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
  671. @PostMapping(value = "/updateNotice", produces = "application/json;charset=UTF-8")
  672. public Map<String, Object> updateNotice(@RequestBody(required = false) Map<String, Object> map) {
  673. return rmsFeign.updateNotice(map);
  674. }
  675. @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
  676. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  677. @PostMapping(value = "/deleteNotice/{id}")//BigDecimal
  678. public Map<String, Object> deleteNotice(@PathVariable("id") BigDecimal id) {
  679. return rmsFeign.deleteNotice(id);
  680. }
  681. //港口
  682. @ApiOperation(value = "获取港口", notes = "分页查询")
  683. @PostMapping(value = "/getPort")
  684. public Map<String, Object> getPortList(@RequestBody(required = false) Map<String, Object> mapVal,
  685. Integer apiId,
  686. Integer pageNum,
  687. Integer pageSize,
  688. String con
  689. ) {
  690. if (mapVal == null) {
  691. mapVal = new HashMap<>();
  692. }
  693. return rmsFeign.getPortList(mapVal == null ? new HashMap<>() : mapVal, apiId, pageNum, pageSize, con);
  694. }
  695. //码头
  696. @ApiOperation(value = "获取码头", notes = "分页查询")
  697. @PostMapping(value = "/getPier")
  698. public Map<String, Object> getPierList(@RequestBody(required = false) Map<String, Object> mapVal,
  699. Integer apiId,
  700. Integer pageNum,
  701. Integer pageSize,
  702. String con
  703. ) {
  704. if (mapVal == null) {
  705. mapVal = new HashMap<>();
  706. }
  707. return rmsFeign.getPierList(mapVal == null ? new HashMap<>() : mapVal, apiId, pageNum, pageSize, con);
  708. }
  709. @ApiOperation(value = "获取港存堆场", notes = "分页查询")
  710. @PostMapping(value = "/getYardList")
  711. public Map<String, Object> getPortYardList(@RequestBody(required = false) Map<String, Object> mapVal,
  712. Integer apiId,
  713. Integer pageNum,
  714. Integer pageSize,
  715. String con
  716. ) {
  717. if (mapVal == null) {
  718. mapVal = new HashMap<>();
  719. }
  720. return rmsFeign.getPortYardList(mapVal == null ? new HashMap<>() : mapVal, apiId, pageNum, pageSize, con);
  721. }
  722. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  723. @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")
  724. @PostMapping(value = "/getNoticeById/{id}")
  725. public Map<String, Object> getNoticeById(@PathVariable("id") BigDecimal id){
  726. return rmsFeign.getNoticeById(id);
  727. }
  728. //油价
  729. @ApiOperation(value = "获取油价信息", notes = "分页查询")
  730. @ApiImplicitParams({
  731. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  732. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  733. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  734. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  735. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  736. })
  737. @PostMapping(value = "/getOilPriceResultList")
  738. public Map<String, Object> getOilPriceResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  739. Integer apiId,
  740. Integer pageNum,
  741. Integer pageSize,
  742. String con
  743. ) {
  744. if (mapValue == null) {
  745. mapValue = new HashMap<>();
  746. }
  747. return rmsFeign.getOilPriceResultList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  748. }
  749. @ApiOperation(value="新增油价信息", notes="根据DilNotice对象创建")
  750. @ApiImplicitParam(name = "addOilPrice", value = "详细实体dilNotice", required = true, dataType = "DilNotice")
  751. @PostMapping(value = "/insertOilPrice")
  752. public Map<String, Object> insertOilPrice(@RequestBody(required = false) Map<String, Object> map) {
  753. return rmsFeign.insertOilPrice(map);
  754. }
  755. @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
  756. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
  757. @PostMapping(value = "/updateOilPrice", produces = "application/json;charset=UTF-8")
  758. public Map<String, Object> updateOilPrice(@RequestBody(required = false) Map<String, Object> map) {
  759. return rmsFeign.updateOilPrice(map);
  760. }
  761. @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
  762. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  763. @PostMapping(value = "/deleteOilPrice/{id}")//BigDecimal
  764. public Map<String, Object> deleteOilPrice(@PathVariable("id") BigDecimal id) {
  765. return rmsFeign.deleteOilPrice(id);
  766. }
  767. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  768. @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")
  769. @PostMapping(value = "/getOilPriceById/{id}")
  770. public Map<String, Object> getOilPriceById(@PathVariable("id") BigDecimal id){
  771. return rmsFeign.getOilPriceById(id);
  772. }
  773. //*******************************下拉框************************
  774. @GetMapping("getNoticeTypeId")
  775. @ApiOperation(value = "得到公告类型Id")
  776. public Map<String,Object> getNoticeTypeId(){
  777. return rmsFeign.getNoticeTypeId();
  778. }
  779. @GetMapping("getPortType")
  780. @ApiOperation(value = "得到港口类型Id")
  781. public Map<String,Object> getPortType(){
  782. return rmsFeign.getPortType();
  783. }
  784. @ApiOperation(value="新增原料仓库信息", notes="根据rmsWarehouse对象创建")
  785. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "rmsWarehouse")
  786. @PostMapping(value = "/insertWarehouse")
  787. public Map<String, Object> insertWarehouse(@RequestBody(required = false) Map<String, Object> map) {
  788. return rmsFeign.insertWarehouse(map);
  789. }
  790. //展示收货客户信息
  791. @ApiOperation(value = "获取收货客户信息", notes = "分页查询")
  792. @ApiImplicitParams({
  793. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  794. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  795. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  796. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  797. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  798. })
  799. @PostMapping(value = "/getConsigneeList")
  800. public Map<String, Object> getConsigneeList(@RequestBody(required = false) Map<String, Object> mapValue,
  801. Integer apiId,
  802. Integer pageNum,
  803. Integer pageSize,
  804. String con
  805. ) {
  806. return rmsFeign.getConsigneeList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  807. }
  808. @ApiOperation(value="新增收货客户信息", notes="根据rmsConsignee对象创建")
  809. @ApiImplicitParam(name = "rmsConsignee", value = "详细实体rmsConsignee", required = true, dataType = "rmsConsignee")
  810. @PostMapping(value = "/insertConsignee")
  811. public Map<String, Object> insertConsignee(@RequestBody(required = false) Map<String, Object> map){
  812. return rmsFeign.insertConsignee(map);
  813. }
  814. @ApiOperation(value="删除", notes="根据rmsConsignee对象创建")
  815. @ApiImplicitParam(name = "收货客户信息id", value = "id", required = true, dataType = "int")
  816. @PostMapping(value = "/deleteConsignee/{id}")
  817. public Map<String, Object> deleteConsignee(@PathVariable("id")BigDecimal id){
  818. return rmsFeign.deleteConsignee(id);
  819. }
  820. @ApiOperation(value="获取运力信息", notes="根据url的id来获取详细信息")
  821. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  822. @PostMapping(value = "/getConsigneeById/{id}")
  823. public Map<String,Object> getConsigneeById(@PathVariable("id")BigDecimal id){
  824. return rmsFeign.getConsigneeById(id);
  825. }
  826. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCapacity信息来更新详细信息")
  827. @ApiImplicitParams({
  828. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short"),
  829. @ApiImplicitParam(name = "rmsConsignee", value = "详细实体rmsConsignee", required = true, dataType = "RmsConsignee")
  830. })
  831. @PostMapping(value = "/updateConsignee", produces = "application/json;charset=UTF-8")
  832. public Map<String, Object> updateConsignee( @RequestBody Map<String, Object> map){
  833. return rmsFeign.updateConsignee(map);
  834. }
  835. /*
  836. *边写边搜索承运商
  837. * */
  838. @ApiOperation(value="根据用户输入输出承运商", notes="模糊查询")
  839. @ApiImplicitParams({
  840. @ApiImplicitParam(name = "con",value = "用户输入的承运商名", required = false, dataType = "String")
  841. })
  842. @PostMapping("/getCarrierName")
  843. public Map<String,Object> getCarrierName(@RequestParam(value ="state") String state){
  844. return rmsFeign.getCarrierName(state);
  845. }
  846. //港口
  847. @PostMapping("/insertPort")
  848. public Map<String, Object> insertPort(@RequestBody(required = false) Map<String, Object> map) {
  849. return rmsFeign.insertPort(map);
  850. }
  851. //
  852. @PostMapping("/insertPier")
  853. public Map<String, Object> insertPier(@RequestBody(required = false) Map<String, Object> map) {
  854. return rmsFeign.insertPier(map);
  855. }
  856. //港口
  857. @PostMapping("/insertPortYard")
  858. public Map<String, Object> insertPortYard(@RequestBody(required = false) Map<String, Object> map) {
  859. return rmsFeign.insertPortYard(map);
  860. }
  861. @PostMapping(value = "/deletePort/{portId}")//BigDecimal
  862. public Map<String, Object> deletePort(@PathVariable("portId") BigDecimal portId) {
  863. return rmsFeign.deletePort(portId);
  864. }
  865. @PostMapping(value = "/deletePier/{pierId}")//BigDecimal
  866. public Map<String, Object> deletePier(@PathVariable("pierId") BigDecimal pierId) {
  867. return rmsFeign.deletePier(pierId);
  868. }
  869. @PostMapping(value = "/deletePortYard/{warehouseId}")//BigDecimal
  870. public Map<String, Object> deletePortYard(@PathVariable("warehouseId") BigDecimal warehouseId) {
  871. return rmsFeign.deletePortYard(warehouseId);
  872. }
  873. /**
  874. * 得到二级部门的下拉
  875. * @return
  876. */
  877. @GetMapping("/getSecondShipper")
  878. public Map<String,Object> getSecondShipper() {
  879. return rmsFeign.getSecondShipper();
  880. }
  881. /**
  882. * 得到三级部门的下拉
  883. * @return
  884. */
  885. @GetMapping("/getThirdShipper")
  886. public Map<String,Object> getThirdShipper(@RequestParam Integer shipperId) {
  887. return rmsFeign.getThirdShipper(shipperId);
  888. }
  889. /**
  890. * 新增人员权限
  891. * @return
  892. */
  893. @PostMapping("/addPersonnel")
  894. public Map<String,Object> addPersonnel(@RequestBody Map<String,Object> map) {
  895. return rmsFeign.addPersonnel(map);
  896. }
  897. /**
  898. * 查询SSO主键和机构编码
  899. * @return
  900. */
  901. @PostMapping("/getShipperMap")
  902. public Map<String,Object> getShipperMap(@RequestParam Integer shipperId) {
  903. return rmsFeign.getShipperMap(shipperId);
  904. }
  905. //根据运力id查询承运商
  906. @PostMapping(value = "getCarrierNameById/{id}")
  907. public Map<String,Object> getCarrierNameById(@PathVariable("id") BigDecimal id){
  908. return rmsFeign.getCarrierNameById(id);
  909. }
  910. //根据司机id查询承运商
  911. @PostMapping(value = "getCarrierNameByDriverId/{id}")
  912. public Map<String,Object> getCarrierNameByDriverId(@PathVariable("id") BigDecimal id){
  913. return rmsFeign.getCarrierNameByDriverId(id);
  914. }
  915. /*
  916. txf
  917. */
  918. @ApiOperation(value="新增组织结构实绩")
  919. @PostMapping(value = "/addShipperResult")
  920. public Map<String,Object> addShipperResult(@RequestBody(required = false) Map<String, Object> map){
  921. return rmsFeign.addShipperResult(map);
  922. }
  923. @ApiOperation(value="修改组织结构实绩")
  924. @PostMapping(value = "/updateShipperResult")
  925. public Map<String,Object> updateShipperResult(@RequestBody(required = false) Map<String, Object> map){
  926. return rmsFeign.updateShipperResult(map);
  927. }
  928. @ApiOperation(value="修改组织结构实绩")
  929. @PostMapping(value = "/deleteShipperResult")
  930. public Map<String,Object> deleteShipperResult(@RequestBody(required = false) Map<String, Object> map){
  931. return rmsFeign.deleteShipperResult(map);
  932. }
  933. @PostMapping(value = "/getCarrierNameBySSOId")
  934. public Map<String,Object> getCarrierNameBySSOId(@RequestParam("carrierSSOId") String carrierSSOId){
  935. return rmsFeign.getCarrierNameBySSOId(carrierSSOId);
  936. }
  937. //边输边查收货客户父节点
  938. @PostMapping(value = "getConsigneeFarId")
  939. public Map<String,Object> getConsigneeFarId(@RequestParam(value ="state") String state){
  940. return rmsFeign.getConsigneeFarId(state);
  941. }
  942. @PostMapping("/isInHere")
  943. public Integer isInHere(@RequestParam String personnelJobNumber) {
  944. return rmsFeign.isInHere(personnelJobNumber);
  945. }
  946. @ApiOperation(value="创建", notes="添加油品名称")
  947. @ApiImplicitParam(name = "oilTypeName", value = "油品名称", required = true, dataType = "String")
  948. @PostMapping(value = "/addOilType")
  949. public Map<String, Object> addOilType(String oilTypeName){
  950. return rmsFeign.addOilType(oilTypeName);
  951. }
  952. @ApiOperation(value="创建", notes="查询油品名称")
  953. @PostMapping(value = "/oilNameSelect")
  954. public Map<String, Object> oilNameSelect(){
  955. return rmsFeign.oilNameSelect();
  956. }
  957. }