RMScontroller.java 56 KB

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