RMScontroller.java 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  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="根据rmsCarrier对象创建")
  379. @ApiImplicitParam(name = "汽车衡物资中间表id", value = "id", required = true, dataType = "int")
  380. @PostMapping(value = "/deleteTruckCalculateMaterial/{id}")
  381. public Map<String, Object> deleteTruckCalculateMaterial(@PathVariable("id")BigDecimal id){
  382. return rmsFeign.deleteTruckCalculateMaterial(id);
  383. }
  384. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  385. @ApiImplicitParams({
  386. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  387. @ApiImplicitParam(name = "rmsTruckCalculate", value = "详细实体rmsTruckCalculate", required = true, dataType = "RmsTruckCalculate")
  388. })
  389. @PostMapping(value = "/updateTruckCalculate", produces = "application/json;charset=UTF-8")
  390. public Map<String, Object> updateTruckCalculate(@RequestBody Map<String, Object> map){
  391. return rmsFeign.updateTruckCalculate(map);
  392. }
  393. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  394. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  395. @PostMapping(value = "/getTruckCalculateById/{id}")
  396. public Map<String,Object> getTruckCalculateById(@PathVariable("id") BigDecimal id){
  397. return rmsFeign.getTruckCalculateById(id);
  398. }
  399. @PostMapping("/getCalculateOfMaterialList")
  400. @ApiOperation(value="根据id查询汽车横下的物资表")
  401. public Map<String,Object> getCalculateOfMaterialList(@RequestBody(required = false)Map<String, Object> mapValue,
  402. Integer pageNum,
  403. Integer pageSize,
  404. Integer apiId,
  405. BigDecimal truckCalculateId){
  406. return rmsFeign.getCalculateOfMaterialList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,truckCalculateId);
  407. }
  408. @PostMapping("/getTruckCalculateList")
  409. @ApiOperation(value = "模糊查询汽车衡")
  410. public Map<String, Object> getTruckCalculateList(@RequestBody(required = false) Map<String, Object> mapValue,
  411. Integer pageNum,
  412. Integer pageSize,
  413. Integer apiId,
  414. String con) {
  415. return rmsFeign.getTruckCalculateList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  416. }
  417. @ApiOperation(value="新增汽车衡下的物资", notes="根据rmsWarehouse对象创建")
  418. @ApiImplicitParam(name = "rmsTruckCalculateMaterial", value = "详细实体rmsTruckCalculateMaterial", required = true, dataType = "rmsTruckCalculateMaterial")
  419. @PostMapping(value = "/insertTruckCalculateOfMaterial")
  420. public Map<String, Object> insertTruckCalculateOfMaterial(@RequestBody(required = false) Map<String, Object> map){
  421. return rmsFeign.insertTruckCalculateOfMaterial(map);
  422. }
  423. @ApiOperation(value="删除", notes="根据rmsCarrier对象创建")
  424. @ApiImplicitParam(name = "仓库id", value = "id", required = true, dataType = "int")
  425. @PostMapping(value = "/deleteWarehouse/{id}")
  426. public Map<String, Object> deleteWarehouse(@PathVariable("id")BigDecimal id){
  427. return rmsFeign.deleteWarehouse(id);
  428. }
  429. @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息")
  430. @ApiImplicitParams({
  431. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"),
  432. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "RmsWarehouse")
  433. })
  434. @PostMapping(value = "/updateWarehouse", produces = "application/json;charset=UTF-8")
  435. public Map<String, Object> updateWarehouse( @RequestBody Map<String, Object> map){
  436. return rmsFeign.updateWarehouse(map);
  437. }
  438. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  439. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  440. @PostMapping(value = "/getWarehouseById/{id}")
  441. public Map<String, Object> getWarehouseById(@PathVariable("id") BigDecimal id){
  442. return rmsFeign.getWarehouseById(id);
  443. }
  444. @PostMapping("/getWarehouseList")
  445. @ApiOperation(value = "模糊查询原料仓库")
  446. public Map<String, Object> getWarehouseList(@RequestBody(required = false) Map<String, Object> mapValue,
  447. Integer pageNum,
  448. Integer pageSize,
  449. Integer apiId,
  450. String con) {
  451. return rmsFeign.getWarehouseList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  452. }
  453. @ApiOperation(value="展示司机排班信息", notes="分页查询")
  454. @ApiImplicitParams({
  455. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  456. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  457. @ApiImplicitParam(name = "apiId", value = "196", required = false, dataType = "BigDecimal"),
  458. })
  459. @PostMapping(value = "/getDriverCapacityList")
  460. public Map<String, Object> getDriverCapacityList(@RequestBody(required = false) Map<String,Object> mapValue,
  461. Integer pageNum,
  462. Integer pageSize,
  463. Integer apiId){
  464. return rmsFeign.getDriverCapacityList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  465. }
  466. @ApiOperation(value="创建", notes="根据RmsDriverCapacity对象创建")
  467. @ApiImplicitParam(name = "rmsDriverCapacity", value = "详细实体rmsDriverCapacity", required = true, dataType = "RmsDriverCapacity")
  468. @PostMapping(value = "/insertDriverCapacity")
  469. public Map<String, Object> insertDriverCapacity(@RequestBody(required = false) Map<String, Object> map ){
  470. return rmsFeign.insertDriverCapacity(map);
  471. }
  472. @ApiOperation(value="展示门岗信息")
  473. @ApiImplicitParams({
  474. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  475. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  476. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  477. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  478. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  479. })
  480. @PostMapping("/getGatepostList")
  481. public Map<String, Object> getGatepostList(@RequestBody(required=false) Map<String,Object> mapValue,
  482. Integer apiId,
  483. Integer pageNum,
  484. Integer pageSize,
  485. String con
  486. ){
  487. return rmsFeign.getGatepostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  488. }
  489. @ApiOperation(value="新增门岗信息", notes="根据rmsGatepost对象创建")
  490. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  491. @PostMapping(value = "/insertGatepost")
  492. public Map<String, Object> insertGatepost(@RequestBody(required = false) Map<String, Object> map){
  493. return rmsFeign.insertGatepost(map);
  494. }
  495. @ApiOperation(value="删除", notes="根据rmsGatepost对象创建")
  496. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  497. @PostMapping(value = "/deleteGatepost/{id}")
  498. public Map<String, Object> deleteGatepost(@PathVariable("id")BigDecimal id){
  499. return rmsFeign.deleteGatepost(id);
  500. }
  501. @ApiOperation(value="更新门岗信息", notes="根据rmsGatepost对象创建")
  502. @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost")
  503. @PostMapping(value = "/updateGatepost")
  504. public Map<String, Object> updateGatepost(@RequestBody(required = false) Map<String, Object> map){
  505. return rmsFeign.updateGatepost(map);
  506. }
  507. @ApiOperation(value="根据id查询门岗信息", notes="根据rmsGatepost对象创建")
  508. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  509. @PostMapping(value = "/getGatepostById/{id}")
  510. public Map<String, Object> getGatepostById(@PathVariable("id")BigDecimal id){
  511. return rmsFeign.getGatepostById(id);
  512. }
  513. @ApiOperation(value="根据id查询门岗规则信息", notes="根据rmsGatepost对象创建")
  514. @ApiImplicitParams({
  515. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  516. @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int")
  517. })
  518. @PostMapping(value = "/getGatepostRulesById/{id}")
  519. public Map<String, Object> getGatepostRulesById(@PathVariable("id")BigDecimal id,
  520. Integer apiId){
  521. return rmsFeign.getGatepostRulesById(id,apiId);
  522. }
  523. @ApiOperation(value="展示门岗规则信息")
  524. @ApiImplicitParams({
  525. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  526. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  527. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  528. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  529. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  530. })
  531. @PostMapping("/getGatepostRulesList")
  532. public Map<String, Object> getGatepostRulesList(@RequestBody(required=false) Map<String,Object> mapValue,
  533. Integer apiId,
  534. Integer pageNum,
  535. Integer pageSize,
  536. String con
  537. ){
  538. return rmsFeign.getGatepostRulesList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  539. }
  540. @ApiOperation(value="删除", notes="根据rulesId删除")
  541. @ApiImplicitParam(name = "门岗规则id", value = "rulesId", required = true, dataType = "int")
  542. @PostMapping(value = "/deleteGatepostRules/{rulesId}")
  543. public Map<String, Object> deleteGatepostRules(@PathVariable("rulesId") BigDecimal rulesId) {
  544. return rmsFeign.deleteGatepostRules(rulesId);
  545. }
  546. @ApiOperation(value="新增门岗规则")
  547. @ApiImplicitParams({
  548. @ApiImplicitParam(name = "mapValue", value = "门岗规则", required = false, dataType = "Map"),
  549. })
  550. @PostMapping("/insertGatepostRule")
  551. public Map<String, Object> insertGatepostRule(@RequestBody(required = false) Map<String,Object> mapValue){
  552. return rmsFeign.insertGatepostRule(mapValue);
  553. }
  554. @ApiOperation(value="获取门岗名")
  555. @ApiImplicitParams({
  556. @ApiImplicitParam(name = "门岗id", value = "gatepostId", required = true, dataType = "int")
  557. })
  558. @PostMapping("/getGatepostName/{gatepostId}")
  559. public Map<String, Object> getGatepostName(@PathVariable("gatepostId") BigDecimal gatepostId){
  560. return rmsFeign.getGatepostName(gatepostId);
  561. }
  562. @PostMapping("/getMaterialTypeList")
  563. @ApiOperation(value = "框计算物资种类")
  564. public Map<String, Object> getMaterialTypeList(@RequestBody(required = false) Map<String, Object> mapValue,
  565. Integer pageNum,
  566. Integer pageSize,
  567. Integer apiId,
  568. String con) {
  569. return rmsFeign.getMaterialTypeList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  570. }
  571. //*******************************下拉框************************
  572. @GetMapping("getCapacityTypeId")
  573. @ApiOperation(value = "得到下拉运力id")
  574. public Map<String, Object> getCapacityTypeId() {
  575. return rmsFeign.getCapacityTypeId();
  576. }
  577. @GetMapping(value = "getWarehouseTypeId")
  578. @ApiOperation(value = "获取原料仓库类型下拉id")
  579. public Map<String, Object> getWarehouseTypeId(){
  580. return rmsFeign.getWarehouseTypeId();
  581. }
  582. @GetMapping(value = "getPortId")
  583. @ApiOperation(value = "获取港存库所属港口下拉id")
  584. public Map<String, Object> getPortId(){
  585. return rmsFeign.getPortId();
  586. }
  587. @GetMapping(value="getCarrierId")
  588. @ApiOperation(value = "获取承运商下拉id")
  589. public Map<String,Object> getCarrierId(){
  590. return rmsFeign.getCarrierId();
  591. }
  592. @GetMapping("getMaterialTypeId")
  593. @ApiOperation(value = "得到下拉物资类型id")
  594. public Map<String, Object> getMaterialTypeId() {
  595. return rmsFeign.getMaterialTypeId();
  596. }
  597. @GetMapping("getUnitOfMeasureId")
  598. @ApiOperation(value = "得到下拉计量id")
  599. public Map<String, Object> getUnitOfMeasureId() {
  600. return rmsFeign.getUnitOfMeasureId();
  601. }
  602. @GetMapping("getShipperId")
  603. @ApiOperation(value = "得到下拉托运人id")
  604. public Map<String, Object> getShipperId() {
  605. return rmsFeign.getShipperId();
  606. }
  607. @GetMapping("getGatepostRulesId")
  608. @ApiOperation(value = "得到下拉门岗规则id")
  609. public Map<String, Object> getGatepostRulesId() {
  610. return rmsFeign.getGatepostRulesId();
  611. }
  612. @GetMapping("getTransportTypeId")
  613. @ApiOperation(value = "运输类型下拉")
  614. public Map<String,Object> getTransportTypeId(){
  615. return rmsFeign.getTransportTypeId();
  616. }
  617. @GetMapping("/getVehicleTypeId")
  618. @ApiOperation(value = "得到下拉车辆类型id")
  619. public Map<String, Object> getVehicleTypeId() {
  620. return rmsFeign.getVehicleTypeId();
  621. }
  622. //通知
  623. @ApiOperation(value = "获取公告信息", notes = "分页查询")
  624. @ApiImplicitParams({
  625. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  626. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  627. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  628. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  629. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  630. })
  631. @PostMapping(value = "/getNoticeList")
  632. public Map<String, Object> getNoticeList(@RequestBody(required = false) Map<String, Object> mapValue,
  633. Integer apiId,
  634. Integer pageNum,
  635. Integer pageSize,
  636. String con
  637. ) {
  638. if (mapValue == null) {
  639. mapValue = new HashMap<>();
  640. }
  641. return rmsFeign.getNoticeList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  642. }
  643. @ApiOperation(value="新增公告信息", notes="根据DilNotice对象创建")
  644. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "DilNotice")
  645. @PostMapping(value = "/insertNotice")
  646. public Map<String, Object> insertNotice(@RequestBody(required = false) Map<String, Object> map) {
  647. return rmsFeign.insertNotice(map);
  648. }
  649. @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
  650. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
  651. @PostMapping(value = "/updateNotice", produces = "application/json;charset=UTF-8")
  652. public Map<String, Object> updateNotice(@RequestBody(required = false) Map<String, Object> map) {
  653. return rmsFeign.updateNotice(map);
  654. }
  655. @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
  656. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  657. @PostMapping(value = "/deleteNotice/{id}")//BigDecimal
  658. public Map<String, Object> deleteNotice(@PathVariable("id") BigDecimal id) {
  659. return rmsFeign.deleteNotice(id);
  660. }
  661. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  662. @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")
  663. @PostMapping(value = "/getNoticeById/{id}")
  664. public Map<String, Object> getNoticeById(@PathVariable("id") BigDecimal id){
  665. return rmsFeign.getNoticeById(id);
  666. }
  667. //油价
  668. @ApiOperation(value = "获取公告信息", notes = "分页查询")
  669. @ApiImplicitParams({
  670. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  671. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  672. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  673. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  674. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  675. })
  676. @PostMapping(value = "/getOilPriceResultList")
  677. public Map<String, Object> getOilPriceResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  678. Integer apiId,
  679. Integer pageNum,
  680. Integer pageSize,
  681. String con
  682. ) {
  683. if (mapValue == null) {
  684. mapValue = new HashMap<>();
  685. }
  686. return rmsFeign.getOilPriceResultList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  687. }
  688. @ApiOperation(value="新增油价信息", notes="根据DilNotice对象创建")
  689. @ApiImplicitParam(name = "addOilPrice", value = "详细实体dilNotice", required = true, dataType = "DilNotice")
  690. @PostMapping(value = "/insertOilPrice")
  691. public Map<String, Object> insertOilPrice(@RequestBody(required = false) Map<String, Object> map) {
  692. return rmsFeign.insertOilPrice(map);
  693. }
  694. @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
  695. @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
  696. @PostMapping(value = "/updateOilPrice", produces = "application/json;charset=UTF-8")
  697. public Map<String, Object> updateOilPrice(@RequestBody(required = false) Map<String, Object> map) {
  698. return rmsFeign.updateOilPrice(map);
  699. }
  700. @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
  701. @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
  702. @PostMapping(value = "/deleteOilPrice/{id}")//BigDecimal
  703. public Map<String, Object> deleteOilPrice(@PathVariable("id") BigDecimal id) {
  704. return rmsFeign.deleteOilPrice(id);
  705. }
  706. @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
  707. @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")
  708. @PostMapping(value = "/getOilPriceById/{id}")
  709. public Map<String, Object> getOilPriceById(@PathVariable("id") BigDecimal id){
  710. return rmsFeign.getOilPriceById(id);
  711. }
  712. //*******************************下拉框************************
  713. @GetMapping("getNoticeTypeId")
  714. @ApiOperation(value = "得到公告类型Id")
  715. public Map<String,Object> getNoticeTypeId(){
  716. return rmsFeign.getNoticeTypeId();
  717. }
  718. @ApiOperation(value="新增原料仓库信息", notes="根据rmsWarehouse对象创建")
  719. @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "rmsWarehouse")
  720. @PostMapping(value = "/insertWarehouse")
  721. public Map<String, Object> insertWarehouse(@RequestBody(required = false) Map<String, Object> map) {
  722. return rmsFeign.insertWarehouse(map);
  723. }
  724. }