RMScontroller.java 56 KB

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