RMScontroller.java 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  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 java.math.BigDecimal;
  10. import java.util.HashMap;
  11. import java.util.Map;
  12. @RestController
  13. @RequestMapping("${api.version}/rms")
  14. public class RMScontroller {
  15. @Autowired
  16. RmsFeign rmsFeign;
  17. /**
  18. * @author huk
  19. * @return
  20. */
  21. //查询所有作业环节
  22. @ApiOperation(value="查询所有作业环节")
  23. @PostMapping("/getLink")
  24. public Map<String, Object> getlink(){
  25. return rmsFeign.getlink();
  26. }
  27. /**
  28. * @author huk
  29. * @return
  30. */
  31. //新增运输路线
  32. @ApiOperation(value="新增运输路线")
  33. @ApiImplicitParams({
  34. @ApiImplicitParam(name = "mapValue", value = "运输路线", required = false, dataType = "Map"),
  35. })
  36. @PostMapping("/insertSelective")
  37. public Map<String, Object> insertSelective(@RequestBody(required = false) Map<String,Object> mapVal){
  38. return rmsFeign.insertSelective(mapVal);
  39. }
  40. @ApiOperation(value="查询运输路线")
  41. @ApiImplicitParams({
  42. @ApiImplicitParam(name = "apiId", value = "249", required = false, dataType = "Integer"),
  43. })
  44. @PostMapping(value = "/getAllLineDesk")
  45. public Map<String, Object> getAllLineDesk(@RequestBody(required = false) Map<String,Object> mapValue,
  46. Integer pageNum,
  47. Integer pageSize,
  48. Integer apiId,
  49. Integer lineType,
  50. String con){
  51. return rmsFeign.getAllLineDesk(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, lineType, con);
  52. }
  53. @ApiOperation(value = "根据主键查询出数据以供修改")
  54. @PostMapping("/getLinkToUpdate")
  55. public Map<String, Object> getLinkToUpdate(@RequestParam Integer lineId) {
  56. return rmsFeign.getLinkToUpdate(lineId);
  57. }
  58. @ApiOperation(value = "根据运输线路主表ID修改数据")
  59. @PostMapping("/updateByPrimaryKeySelective")
  60. public Map<String, Object> updateByPrimaryKeySelective(@RequestBody(required = false) Map<String,Object> mapVal) {
  61. return rmsFeign.updateByPrimaryKeySelective(mapVal);
  62. }
  63. @ApiOperation(value = "根据运输线路主表ID修改数据,为逻辑删除")
  64. @PostMapping("/updateRmsLine")
  65. Map<String, Object> updateRmsLine(@RequestBody(required = false) Map<String,Object> mapVal){
  66. return rmsFeign.updateRmsLine(mapVal);
  67. }
  68. @ApiOperation(value = "根据运输路线的主表id查询运输订单是否相关联")
  69. @PostMapping("/getCountNumber")
  70. public Map<String, Object> getCountNumber(@RequestParam Integer lineId) {
  71. return rmsFeign.getCountNumber(lineId);
  72. }
  73. //查询所有作业环节
  74. @ApiOperation(value="新增作业环节")
  75. @PostMapping("/LinkInsertSelective")
  76. public Map<String,Object> LinkInsertSelective(@RequestBody(required = false) Map<String,Object> mapValue){
  77. return rmsFeign.LinkInsertSelective(mapValue);
  78. }
  79. //********************************************************************************************************
  80. @ApiOperation(value="创建", notes="根据RmsCarDriver对象创建")
  81. @ApiImplicitParam(name = "rmsCarDriver", value = "详细实体rmsCarDriver", required = true, dataType = "RmsCarDriver")
  82. @PostMapping(value = "/insertCarDriver")
  83. public Map<String, Object> insertCarDriver(@RequestBody(required = false) Map<String, Object> map){
  84. return rmsFeign.insertCarDriver(map);
  85. }
  86. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  87. @ApiImplicitParams({
  88. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  89. @ApiImplicitParam(name = "rmsCarDriver", value = "详细实体rmsCarDriver", required = true, dataType = "RmsCarDriver")
  90. })
  91. @PostMapping(value = "/updateCarDriver", produces = "application/json;charset=UTF-8")
  92. public Map<String, Object> updateCarDriver(@RequestBody Map<String, Object> map){
  93. return rmsFeign.updateCarDriver(map);
  94. }
  95. @ApiOperation(value="删除司机信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息删除司机信息")
  96. @ApiImplicitParams({
  97. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  98. @ApiImplicitParam(name = "rmsCarDriver", value = "详细实体rmsCarDriver", required = true, dataType = "RmsCarDriver")
  99. })
  100. @PostMapping(value = "/deleteCarDriver/{id}")
  101. Map<String, Object> deleteCarDriver(@PathVariable("id") BigDecimal id) {
  102. return rmsFeign.deleteCarDriver(id);
  103. }
  104. @ApiOperation(value="获取司机详细信息", notes="根据url的id来获取详细信息")
  105. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  106. @PostMapping(value = "/getCarDriverById/{id}")
  107. public Map<String, Object> getCarDriverById(@PathVariable("id") BigDecimal id){
  108. return rmsFeign.getCarDriverById(id);
  109. }
  110. @PostMapping("/getCarDriverList")
  111. @ApiOperation(value = "模糊查询司机")
  112. public Map<String, Object> getCarDriverList(@RequestBody(required = false) Map<String, Object> mapValue,
  113. Integer pageNum,
  114. Integer pageSize,
  115. Integer apiId,
  116. String con) {
  117. return rmsFeign.getCarDriverList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  118. }
  119. //获取承运商列表
  120. @ApiOperation(value="获取承运商列表")
  121. @ApiImplicitParams({
  122. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  123. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  124. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  125. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  126. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  127. })
  128. @PostMapping("/getCarrierList")
  129. public Map<String, Object> getCarrierList(@RequestBody(required=false) Map<String,Object> mapValue,
  130. Integer apiId,
  131. Integer pageNum,
  132. Integer pageSize,
  133. String con
  134. ){
  135. if (mapValue==null){
  136. mapValue=new HashMap<>();
  137. }
  138. return rmsFeign.getCarrierList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  139. }
  140. @ApiOperation(value="新建承运商", notes="根据rmsCarrier对象创建")
  141. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  142. @PostMapping(value = "/insertCarrier")
  143. public Map<String, Object> insertCarrier(@RequestBody(required = false) Map<String, Object> map){
  144. return rmsFeign.insertCarrier(map);
  145. }
  146. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  147. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  148. @PostMapping(value = "/deleteCarrier/{id}")
  149. public Map<String, Object> deleteCarrier(@PathVariable("id")BigDecimal id){
  150. return rmsFeign.deleteCarrier(id);
  151. }
  152. @ApiOperation(value="更新承运商", notes="根据rmsCarrier对象创建")
  153. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  154. @PostMapping(value = "/updateCarrier")
  155. public Map<String, Object> updateCarrier(@RequestBody(required = false) Map<String, Object> map){
  156. return rmsFeign.updateCarrier(map);
  157. }
  158. @ApiOperation(value="根据id查询详细承运商信息", notes="根据rmsCarrier对象创建")
  159. @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "rmsCarrier")
  160. @PostMapping(value = "/getCarrierById/{id}")
  161. public Map<String, Object> getCarrierById(@PathVariable("id")BigDecimal id){
  162. return rmsFeign.getCarrierById(id);
  163. }
  164. //获取物资列表
  165. @ApiOperation(value="获取物资列表")
  166. @ApiImplicitParams({
  167. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  168. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  169. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  170. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  171. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  172. })
  173. @PostMapping("/getMaterialList")
  174. public Map<String, Object> getMaterialList(@RequestBody(required=false) Map<String,Object> mapValue,
  175. Integer apiId,
  176. Integer pageNum,
  177. Integer pageSize,
  178. String con
  179. ){
  180. return rmsFeign.getMaterialList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  181. }
  182. @ApiOperation(value="新增物资", notes="根据rmsMaterial对象创建")
  183. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  184. @PostMapping(value = "/insertMaterial")
  185. public Map<String, Object> insertMaterial(@RequestBody(required = false) Map<String, Object> map){
  186. return rmsFeign.insertMaterial(map);
  187. }
  188. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  189. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  190. @PostMapping(value = "/deleteMaterial/{id}")
  191. public Map<String, Object> deleteMaterial(@PathVariable("id")BigDecimal id){
  192. return rmsFeign.deleteMaterial(id);
  193. }
  194. @ApiOperation(value="更新物资", notes="根据rmsMaterial对象创建")
  195. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  196. @PostMapping(value = "/updateMaterial")
  197. public Map<String, Object> updateMaterial(@RequestBody(required = false) Map<String, Object> map){
  198. return rmsFeign.updateMaterial(map);
  199. }
  200. @ApiOperation(value="根据id查询原料信息", notes="根据rmsCarrier对象创建")
  201. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial")
  202. @PostMapping(value = "/getMaterialById/{id}")
  203. public Map<String, Object> getMaterialById(@PathVariable("id") BigDecimal id){
  204. return rmsFeign.getMaterialById(id);
  205. }
  206. @ApiOperation(value="获取人员信息列表")
  207. @ApiImplicitParams({
  208. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  209. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  210. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  211. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  212. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  213. })
  214. @PostMapping("/getPersonnelList")
  215. public Map<String, Object> getPersonnelList(@RequestBody(required = false) Map<String,Object> mapVal,
  216. Integer apiId,
  217. Integer pageNum,
  218. Integer pageSize,
  219. String con
  220. ){
  221. return rmsFeign.getPersonnelList(mapVal==null?new HashMap<>():mapVal, apiId, pageNum, pageSize,con);
  222. }
  223. @ApiOperation(value="新增人员信息", notes="根据rmsMaterial对象创建")
  224. @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  225. @PostMapping(value = "/insertPersonnel")
  226. public Map<String, Object> insertPersonnel(@RequestBody(required = false) Map<String, Object> map){
  227. return rmsFeign.insertPersonnel(map);
  228. }
  229. @ApiOperation(value="删除", notes="根据rmsPersonnel对象创建")
  230. @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  231. @PostMapping(value = "/deletePersonnel/{id}")
  232. public Map<String, Object> deletePersonnel(@PathVariable("id")BigDecimal id){
  233. return rmsFeign.deletePersonnel(id);
  234. }
  235. @ApiOperation(value="更新人员信息", notes="根据rmsMaterial对象创建")
  236. @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  237. @PostMapping(value = "/updatePersonnel")
  238. public Map<String, Object> updatePersonnel(@RequestBody(required = false) Map<String, Object> map){
  239. return rmsFeign.updatePersonnel(map);
  240. }
  241. @ApiOperation(value="根据id更新详细人员信息", notes="根据rmsPersonnel对象创建")
  242. @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel")
  243. @PostMapping(value = "/getPersonnelById/{personnelId}")
  244. public Map<String, Object> getPersonnelById(@PathVariable("personnelId")BigDecimal personnelId){
  245. return rmsFeign.getPersonnelById(personnelId);
  246. }
  247. @ApiOperation(value="获取托运人列表")
  248. @ApiImplicitParams({
  249. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  250. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  251. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  252. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  253. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  254. })
  255. @PostMapping("/getShipperList")
  256. public Map<String, Object> getShipperList(@RequestBody(required=false) Map<String,Object> mapValue,
  257. Integer apiId,
  258. Integer pageNum,
  259. Integer pageSize,
  260. String con
  261. ){
  262. return rmsFeign.getShipperList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  263. }
  264. @ApiOperation(value="新增托运人信息", notes="根据rmsShipper对象创建")
  265. @ApiImplicitParam(name = "rmsShipper", value = "详细实体rmsShipper", required = true, dataType = "rmsShipper")
  266. @PostMapping(value = "/insertShipper")
  267. public Map<String, Object> insertShipper(@RequestBody(required = false) Map<String, Object> map){
  268. return rmsFeign.insertShipper(map);
  269. }
  270. @ApiImplicitParam(name = "托运人id", value = "id", required = true, dataType = "int")
  271. @PostMapping(value = "/deleteShipper/{id}")
  272. public Map<String, Object> deleteShipper(@PathVariable("id")BigDecimal id){
  273. return rmsFeign.deleteShipper(id);
  274. }
  275. @ApiOperation(value="更新托运人信息", notes="根据rmsShipper对象创建")
  276. @ApiImplicitParam(name = "rmsShipper", value = "详细实体rmsShipper", required = true, dataType = "rmsShipper")
  277. @PostMapping(value = "/updateShipper")
  278. public Map<String, Object> updateShipper(@RequestBody(required = false) Map<String, Object> map){
  279. return rmsFeign.updateShipper(map);
  280. }
  281. @ApiOperation(value="根据id查询详细托运人信息", notes="根据rmsShipper对象创建")
  282. @ApiImplicitParam(name = "托运人id", value = "id", required = true, dataType = "int")
  283. @PostMapping(value = "/getShipperById/{id}")
  284. public Map<String, Object> getShipperById(@PathVariable("id")BigDecimal id){
  285. return rmsFeign.getShipperById(id);
  286. }
  287. // 获取供应商列表
  288. @ApiOperation(value="展示供应商信息")
  289. @ApiImplicitParams({
  290. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  291. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  292. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  293. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  294. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  295. })
  296. @PostMapping("/getSupplierList")
  297. public Map<String, Object> getSupplierList(@RequestBody(required=false) Map<String,Object> mapValue,
  298. Integer apiId,
  299. Integer pageNum,
  300. Integer pageSize,
  301. String con
  302. ){
  303. return rmsFeign.getSupplierList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  304. }
  305. @ApiOperation(value="新增供应商信息", notes="根据rmsSupplier对象创建")
  306. @ApiImplicitParam(name = "rmsSupplier", value = "详细实体rmsSupplier", required = true, dataType = "rmsSupplier")
  307. @PostMapping(value = "/insertSupplier")
  308. public Map<String, Object> insertSupplier(@RequestBody(required = false) Map<String, Object> map){
  309. return rmsFeign.insertSupplier(map);
  310. }
  311. @ApiOperation(value="删除", notes="根据rmsSupplier对象创建")
  312. @ApiImplicitParam(name = "承运商id", value = "id", required = true, dataType = "int")
  313. @PostMapping(value = "/deleteSupplier/{id}")
  314. public Map<String, Object> deleteSupplier(@PathVariable("id")BigDecimal id){
  315. return rmsFeign.deleteSupplier(id);
  316. }
  317. @ApiOperation(value="更新供应商信息", notes="根据rmsSupplier对象创建")
  318. @ApiImplicitParam(name = "rmsSupplier", value = "详细实体rmsSupplier", required = true, dataType = "rmsSupplier")
  319. @PostMapping(value = "/updateSupplier")
  320. public Map<String, Object> updateSupplier(@RequestBody(required = false) Map<String, Object> map){
  321. return rmsFeign.updateSupplier(map);
  322. }
  323. @ApiOperation(value="根据id查询供应商信息", notes="根据rmsSupplier对象创建")
  324. @ApiImplicitParam(name = "承运商id", value = "id", required = true, dataType = "int")
  325. @PostMapping(value = "/getSupplierById/{id}")
  326. public Map<String, Object> getSupplierById(@PathVariable("id")BigDecimal id){
  327. return rmsFeign.getSupplierById(id);
  328. }
  329. // 展示运力信息
  330. @ApiOperation(value="新增运力信息", notes="根据rmsCapacity对象创建")
  331. @ApiImplicitParam(name = "rmsCapacity", value = "详细实体rmsCapacity", required = true, dataType = "rmsCapacity")
  332. @PostMapping(value = "/insertCapacity")
  333. public Map<String, Object> insertCapacity(@RequestBody(required = false) Map<String, Object> map){
  334. return rmsFeign.insertCapacity(map);
  335. }
  336. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  337. @ApiImplicitParam(name = "运力id", value = "id", required = true, dataType = "int")
  338. @PostMapping(value = "/deleteCapacity/{id}")
  339. public Map<String, Object> deleteCapacity(@PathVariable("id")BigDecimal id){
  340. return rmsFeign.deleteCapacity(id);
  341. }
  342. @ApiOperation(value="获取运力详细信息", notes="根据url的id来获取详细信息")
  343. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  344. @PostMapping(value = "/getCapacityById/{id}")
  345. public Map<String,Object> getCapacityById(@PathVariable("id")BigDecimal id){
  346. return rmsFeign.getCapacityById(id);
  347. }
  348. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCapacity信息来更新详细信息")
  349. @ApiImplicitParams({
  350. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short"),
  351. @ApiImplicitParam(name = "rmsCapacity", value = "详细实体rmsCapacity", required = true, dataType = "RmsCapacity")
  352. })
  353. @PostMapping(value = "/updateCapacity", produces = "application/json;charset=UTF-8")
  354. public Map<String, Object> updateCapacity( @RequestBody Map<String, Object> map){
  355. return rmsFeign.updateCapacity(map);
  356. }
  357. @PostMapping("/getCapacityList")
  358. @ApiOperation(value = "模糊查询运力")
  359. public Map<String, Object> getCapacityList(@RequestBody(required = false) Map<String, Object> mapValue,
  360. Integer pageNum,
  361. Integer pageSize,
  362. Integer apiId,
  363. String con) {
  364. return rmsFeign.getCapacityList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  365. }
  366. @ApiOperation(value="新增汽车衡信息", notes="根据rmsCapacity对象创建")
  367. @ApiImplicitParam(name = "rmsTruckCalculate", value = "详细实体rmsTruckCalculate", required = true, dataType = "rmsTruckCalculate")
  368. @PostMapping(value = "/insertTruckCalculate")
  369. public Map<String, Object> insertTruckCalculate(@RequestBody(required = false) Map<String, Object> map){
  370. return rmsFeign.insertTruckCalculate(map);
  371. }
  372. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  373. @ApiImplicitParam(name = "汽车衡id", value = "id", required = true, dataType = "int")
  374. @PostMapping(value = "/deleteTruckCalculate/{id}")
  375. public Map<String, Object> deleteTruckCalculate(@PathVariable("id")BigDecimal id){
  376. return rmsFeign.deleteTruckCalculate(id);
  377. }
  378. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  379. @ApiImplicitParams({
  380. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  381. @ApiImplicitParam(name = "rmsTruckCalculate", value = "详细实体rmsTruckCalculate", required = true, dataType = "RmsTruckCalculate")
  382. })
  383. @PostMapping(value = "/updateTruckCalculate", produces = "application/json;charset=UTF-8")
  384. public Map<String, Object> updateTruckCalculate(@RequestBody Map<String, Object> map){
  385. return rmsFeign.updateTruckCalculate(map);
  386. }
  387. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  388. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  389. @PostMapping(value = "/getTruckCalculateById/{id}")
  390. public Map<String,Object> getTruckCalculateById(@PathVariable("id") BigDecimal id){
  391. return rmsFeign.getTruckCalculateById(id);
  392. }
  393. @PostMapping("/getTruckCalculateList")
  394. @ApiOperation(value = "模糊查询汽车衡")
  395. public Map<String, Object> getTruckCalculateList(@RequestBody(required = false) Map<String, Object> mapValue,
  396. Integer pageNum,
  397. Integer pageSize,
  398. Integer apiId,
  399. String con) {
  400. return rmsFeign.getTruckCalculateList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  401. }
  402. @ApiOperation(value="新增汽车衡信息", notes="根据rmsWarehouse对象创建")
  403. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "rmsWarehouse")
  404. @PostMapping(value = "/insertWarehouse")
  405. public Map<String, Object> insertWarehouse(@RequestBody(required = false) Map<String, Object> map){
  406. return rmsFeign.insertWarehouse(map);
  407. }
  408. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  409. @ApiImplicitParam(name = "仓库id", value = "id", required = true, dataType = "int")
  410. @PostMapping(value = "/deleteWarehouse/{id}")
  411. public Map<String, Object> deleteWarehouse(@PathVariable("id")BigDecimal id){
  412. return rmsFeign.deleteWarehouse(id);
  413. }
  414. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  415. @ApiImplicitParams({
  416. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  417. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "RmsWarehouse")
  418. })
  419. @PostMapping(value = "/updateWarehouse", produces = "application/json;charset=UTF-8")
  420. public Map<String, Object> updateWarehouse( @RequestBody Map<String, Object> map){
  421. return rmsFeign.updateWarehouse(map);
  422. }
  423. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  424. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  425. @PostMapping(value = "/getWarehouseById/{id}")
  426. public Map<String, Object> getWarehouseById(@PathVariable("id") BigDecimal id){
  427. return rmsFeign.getWarehouseById(id);
  428. }
  429. @PostMapping("/getWarehouseList")
  430. @ApiOperation(value = "模糊查询原料仓库")
  431. public Map<String, Object> getWarehouseList(@RequestBody(required = false) Map<String, Object> mapValue,
  432. Integer pageNum,
  433. Integer pageSize,
  434. Integer apiId,
  435. String con) {
  436. return rmsFeign.getWarehouseList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  437. }
  438. @ApiOperation(value="展示司机排班信息", notes="分页查询")
  439. @ApiImplicitParams({
  440. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  441. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  442. @ApiImplicitParam(name = "apiId", value = "196", required = false, dataType = "BigDecimal"),
  443. })
  444. @PostMapping(value = "/getDriverCapacityList")
  445. public Map<String, Object> getDriverCapacityList(@RequestBody(required = false) Map<String,Object> mapValue,
  446. Integer pageNum,
  447. Integer pageSize,
  448. Integer apiId){
  449. return rmsFeign.getDriverCapacityList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  450. }
  451. @ApiOperation(value="创建", notes="根据RmsDriverCapacity对象创建")
  452. @ApiImplicitParam(name = "rmsDriverCapacity", value = "详细实体rmsDriverCapacity", required = true, dataType = "RmsDriverCapacity")
  453. @PostMapping(value = "/insertDriverCapacity")
  454. public Map<String, Object> insertDriverCapacity(@RequestBody(required = false) Map<String, Object> map ){
  455. return rmsFeign.insertDriverCapacity(map);
  456. }
  457. @ApiOperation(value="展示门岗信息")
  458. @ApiImplicitParams({
  459. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  460. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  461. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  462. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  463. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  464. })
  465. @PostMapping("/getGatepostList")
  466. public Map<String, Object> getGatepostList(@RequestBody(required=false) Map<String,Object> mapValue,
  467. Integer apiId,
  468. Integer pageNum,
  469. Integer pageSize,
  470. String con
  471. ){
  472. return rmsFeign.getGatepostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  473. }
  474. @ApiOperation(value="新增门岗信息", notes="根据rmsGatepost对象创建")
  475. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  476. @PostMapping(value = "/insertGatepost")
  477. public Map<String, Object> insertGatepost(@RequestBody(required = false) Map<String, Object> map){
  478. return rmsFeign.insertGatepost(map);
  479. }
  480. @ApiOperation(value="删除", notes="根据rmsGatepost对象创建")
  481. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  482. @PostMapping(value = "/deleteGatepost/{id}")
  483. public Map<String, Object> deleteGatepost(@PathVariable("id")BigDecimal id){
  484. return rmsFeign.deleteGatepost(id);
  485. }
  486. @ApiOperation(value="更新门岗信息", notes="根据rmsGatepost对象创建")
  487. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  488. @PostMapping(value = "/updateGatepost")
  489. public Map<String, Object> updateGatepost(@RequestBody(required = false) Map<String, Object> map){
  490. return rmsFeign.updateGatepost(map);
  491. }
  492. @ApiOperation(value="根据id查询门岗信息", notes="根据rmsGatepost对象创建")
  493. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  494. @PostMapping(value = "/getGatepostById/{id}")
  495. public Map<String, Object> getGatepostById(@PathVariable("id")BigDecimal id){
  496. return rmsFeign.getGatepostById(id);
  497. }
  498. @ApiOperation(value="根据id查询门岗规则信息", notes="根据rmsGatepost对象创建")
  499. @ApiImplicitParams({
  500. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  501. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  502. })
  503. @PostMapping(value = "/getGatepostRulesById/{id}")
  504. public Map<String, Object> getGatepostRulesById(@PathVariable("id")BigDecimal id,
  505. Integer apiId){
  506. return rmsFeign.getGatepostRulesById(id,apiId);
  507. }
  508. @ApiOperation(value="展示门岗规则信息")
  509. @ApiImplicitParams({
  510. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  511. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  512. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  513. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  514. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  515. })
  516. @PostMapping("/getGatepostRulesList")
  517. public Map<String, Object> getGatepostRulesList(@RequestBody(required=false) Map<String,Object> mapValue,
  518. Integer apiId,
  519. Integer pageNum,
  520. Integer pageSize,
  521. String con
  522. ){
  523. return rmsFeign.getGatepostRulesList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  524. }
  525. @ApiOperation(value="删除", notes="根据rulesId删除")
  526. @ApiImplicitParam(name = "门岗规则id", value = "rulesId", required = true, dataType = "int")
  527. @PostMapping(value = "/deleteGatepostRules/{rulesId}")
  528. public Map<String, Object> deleteGatepostRules(@PathVariable("rulesId") BigDecimal rulesId) {
  529. return rmsFeign.deleteGatepostRules(rulesId);
  530. }
  531. @ApiOperation(value="新增门岗规则")
  532. @ApiImplicitParams({
  533. @ApiImplicitParam(name = "mapValue", value = "门岗规则", required = false, dataType = "Map"),
  534. })
  535. @PostMapping("/insertGatepostRule")
  536. public Map<String, Object> insertGatepostRule(@RequestBody(required = false) Map<String,Object> mapValue){
  537. return rmsFeign.insertGatepostRule(mapValue);
  538. }
  539. @ApiOperation(value="获取门岗名")
  540. @ApiImplicitParams({
  541. @ApiImplicitParam(name = "门岗id", value = "gatepostId", required = true, dataType = "int")
  542. })
  543. @PostMapping("/getGatepostName/{gatepostId}")
  544. public Map<String, Object> getGatepostName(@PathVariable("gatepostId") BigDecimal gatepostId){
  545. return rmsFeign.getGatepostName(gatepostId);
  546. }
  547. @PostMapping("/getMaterialTypeList")
  548. @ApiOperation(value = "框计算物资种类")
  549. public Map<String, Object> getMaterialTypeList(@RequestBody(required = false) Map<String, Object> mapValue,
  550. Integer pageNum,
  551. Integer pageSize,
  552. Integer apiId,
  553. String con) {
  554. return rmsFeign.getMaterialTypeList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  555. }
  556. //*******************************下拉框************************
  557. @GetMapping("getCapacityTypeId")
  558. @ApiOperation(value = "得到下拉运力id")
  559. public Map<String, Object> getCapacityTypeId() {
  560. return rmsFeign.getCapacityTypeId();
  561. }
  562. @GetMapping(value = "getWarehouseTypeId")
  563. @ApiOperation(value = "获取原料仓库类型下拉id")
  564. public Map<String, Object> getWarehouseTypeId(){
  565. return rmsFeign.getWarehouseTypeId();
  566. }
  567. @GetMapping(value = "getPortId")
  568. @ApiOperation(value = "获取港存库所属港口下拉id")
  569. public Map<String, Object> getPortId(){
  570. return rmsFeign.getPortId();
  571. }
  572. @GetMapping(value="getCarrierId")
  573. @ApiOperation(value = "获取承运商下拉id")
  574. public Map<String,Object> getCarrierId(){
  575. return rmsFeign.getCarrierId();
  576. }
  577. @GetMapping("getMaterialTypeId")
  578. @ApiOperation(value = "得到下拉物资类型id")
  579. public Map<String, Object> getMaterialTypeId() {
  580. return rmsFeign.getMaterialTypeId();
  581. }
  582. @GetMapping("getUnitOfMeasureId")
  583. @ApiOperation(value = "得到下拉计量id")
  584. public Map<String, Object> getUnitOfMeasureId() {
  585. return rmsFeign.getUnitOfMeasureId();
  586. }
  587. @GetMapping("getShipperId")
  588. @ApiOperation(value = "得到下拉托运人id")
  589. public Map<String, Object> getShipperId() {
  590. return rmsFeign.getShipperId();
  591. }
  592. @GetMapping("getGatepostRulesId")
  593. @ApiOperation(value = "得到下拉门岗规则id")
  594. public Map<String, Object> getGatepostRulesId() {
  595. return rmsFeign.getGatepostRulesId();
  596. }
  597. @GetMapping("getTransportTypeId")
  598. @ApiOperation(value = "运输类型下拉")
  599. public Map<String,Object> getTransportTypeId(){
  600. return rmsFeign.getTransportTypeId();
  601. }
  602. @GetMapping("/getVehicleTypeId")
  603. @ApiOperation(value = "得到下拉车辆类型id")
  604. public Map<String, Object> getVehicleTypeId() {
  605. return rmsFeign.getVehicleTypeId();
  606. }
  607. }