package com.steerinfo.dil.controller; import com.steerinfo.dil.annotaion.LogAround; import com.steerinfo.dil.annotaion.RequestLimit; import com.steerinfo.dil.feign.RmsFeign; import com.steerinfo.dil.util.BaseRESTfulController; import com.steerinfo.framework.controller.BaseController; import com.steerinfo.framework.controller.RESTfulResult; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import lombok.extern.java.Log; import oracle.jdbc.proxy.annotation.Post; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import java.math.BigDecimal; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @RestController @RequestMapping("${api.version}/rms") public class RMScontroller extends BaseRESTfulController { @Autowired RmsFeign rmsFeign; @ApiOperation(value = "查询所有作业环节") @PostMapping("/getStepTypeList") public Map getStepTypeList() { return rmsFeign.getStepTypeList(); } @ApiOperation(value = "查询运输路线") @ApiImplicitParams({ @ApiImplicitParam(name = "apiId", value = "249", required = false, dataType = "Integer"), }) @PostMapping(value = "/getLineList") public Map getLineList(@RequestBody(required = false) Map mapValue, Integer pageNum, Integer pageSize, Integer apiId) { return rmsFeign.getLineList(mapValue == null ? new HashMap<>() : mapValue, pageNum, pageSize, apiId); } @ApiOperation(value = "新增运输路线") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "运输路线", required = false, dataType = "Map"), }) @PostMapping("/insertLine") @LogAround(foreignKeys = {"lineId"}, foreignKeyTypes = {"运输路线"}) public Map insertLine(@RequestBody(required = false) Map mapVal) { return rmsFeign.insertLine(mapVal); } @ApiOperation(value = "删除运输路线") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "运输路线", required = false, dataType = "Map"), }) @PostMapping("/deleteLine") @LogAround(foreignKeys = {"lineId"}, foreignKeyTypes = {"运输路线"}) public Map deleteLine(@RequestBody(required = false) Map mapVal) { return rmsFeign.deleteLine(mapVal); } @ApiOperation(value = "根据id查询线路详情", notes = "") @ApiImplicitParam(name = "rmsLineStep", value = "rmsLineStep", required = true, dataType = "rmsLineStep") @PostMapping(value = "/getRmsLineStep/{id}") public Map getRmsLineStep(@PathVariable("id") BigDecimal id) { return rmsFeign.getRmsLineStep(id); } //================物资类型 @PostMapping("/getMaterialTypeList") @ApiOperation(value = "查询物资种类列表") public Map getMaterialTypeList(@RequestBody(required = false) Map mapValue, Integer pageNum, Integer pageSize, Integer apiId, String con) { return rmsFeign.getMaterialTypeList(mapValue == null ? new HashMap<>() : mapValue, pageNum, pageSize, apiId, con); } @ApiOperation("新增物资类型") @PostMapping("/insertMaterialType") @LogAround(foreignKeys = {"materialTypeId"}, foreignKeyTypes = "物资类型", description = "新增物资类型") public RESTfulResult insertMaterialType(@RequestBody(required = false) Map map) { return rmsFeign.insertMaterialType(map); } @ApiOperation(value = "删除物资类型") @ApiImplicitParam(name = "rmsMaterialType", value = "rmsMaterialType", required = true, dataType = "rmsMaterialType") @PostMapping(value = "/deleteMaterialType") @LogAround(foreignKeys = {"materialTypeId"}, foreignKeyTypes = "物资类型", description = "删除物资类型") public RESTfulResult deleteMaterialType(@RequestBody(required = false) Map map) { return rmsFeign.deleteMaterialType(map); } @ApiOperation(value = "同步物资类型") @ApiImplicitParam(name = "rmsMaterialType", value = "rmsMaterialType", required = true, dataType = "rmsMaterialType") @PostMapping(value = "/syncMaterialType") @LogAround(foreignKeys = {"materialTypeId"}, foreignKeyTypes = "物资类型", description = "修改物资类型") public Map syncMaterialType(@RequestBody(required = false) Map map) { return rmsFeign.syncMaterialType(map); } @ApiOperation(value = "更新物资类型") @ApiImplicitParam(name = "rmsMaterialType", value = "rmsMaterialType", required = true, dataType = "rmsMaterialType") @PostMapping(value = "/updateMaterialType") @LogAround(foreignKeys = {"materialTypeId"}, foreignKeyTypes = "物资类型", description = "修改物资类型") public Map updateMaterialType(@RequestBody(required = false) Map map) { return rmsFeign.updateMaterialType(map); } @ApiOperation(value = "根据id查询物资类型信息", notes = "") @ApiImplicitParam(name = "rmsMaterialType", value = "rmsMaterialType", required = true, dataType = "rmsMaterialType") @PostMapping(value = "/getMaterialTypeById/{id}") public Map getMaterialTypeById(@PathVariable("id") BigDecimal id) { return rmsFeign.getMaterialTypeById(id); } //====================物资 @ApiOperation(value = "获取物资列表") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping("/getMaterialList") public Map getMaterialList(@RequestBody(required = false) Map mapValue, Integer apiId, Integer pageNum, Integer pageSize ) { return rmsFeign.getMaterialList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize); } @ApiOperation(value = "新增物资", notes = "根据rmsMaterial对象创建") @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial") @PostMapping(value = "/insertMaterial") @LogAround(foreignKeys = {"materialId"}, foreignKeyTypes = {"物资"}, description = "新增物资") public Map insertMaterial(@RequestBody(required = false) Map map) { return rmsFeign.insertMaterial(map); } @ApiOperation(value = "删除", notes = "根据rmsCarrier对象创建") @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial") @PostMapping(value = "/deleteMaterial") @LogAround(foreignKeys = {"materialId"}, foreignKeyTypes = {"物资"}, description = "删除物资") public Map deleteMaterial(@RequestBody(required = false) Map map) { return rmsFeign.deleteMaterial(map); } @ApiOperation(value = "更新物资", notes = "根据rmsMaterial对象创建") @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial") @PostMapping(value = "/updateMaterial") @LogAround(foreignKeys = {"materialId"}, foreignKeyTypes = {"物资"}, description = "修改物资") public Map updateMaterial(@RequestBody(required = false) Map map) { return rmsFeign.updateMaterial(map); } @ApiOperation(value = "根据id查询原料信息", notes = "根据rmsCarrier对象创建") @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial") @PostMapping(value = "/getMaterialById/{id}") public Map getMaterialById(@PathVariable("id") BigDecimal id) { return rmsFeign.getMaterialById(id); } @ApiOperation(value = "同步物资", notes = "根据rmsMaterial对象创建") @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsMaterial", required = true, dataType = "rmsMaterial") @PostMapping(value = "/syncMaterial") @LogAround(foreignKeys = {"materialId"}, foreignKeyTypes = {"物资"}, description = "同步物资") public Map syncMaterial(@RequestBody(required = false) Map map) { return rmsFeign.syncMaterial(map); } //====================作业点 @ApiOperation(value = "获取作业点列表") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping("/getOperationPointList") public Map getOperationPointList(@RequestBody(required = false) Map mapValue, Integer apiId, Integer pageNum, Integer pageSize ) { return rmsFeign.getOperationPointList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize); } @ApiOperation(value = "新增作业点", notes = "根据rmsOperationPoint对象创建") @ApiImplicitParam(name = "rmsOperationPoint", value = "详细实体rmsOperationPoint", required = true, dataType = "rmsOperationPoint") @PostMapping(value = "/insertOperationPoint") @LogAround(foreignKeys = {"operationPointId"}, foreignKeyTypes = {"作业点"}, description = "新增作业点") public Map insertOperationPoint(@RequestBody(required = false) Map map) { return rmsFeign.insertOperationPoint(map); } @ApiOperation(value = "删除", notes = "根据rmsCarrier对象创建") @ApiImplicitParam(name = "rmsOperationPoint", value = "详细实体rmsOperationPoint", required = true, dataType = "rmsOperationPoint") @PostMapping(value = "/deleteOperationPoint") @LogAround(foreignKeys = {"operationPointId"}, foreignKeyTypes = {"作业点"}, description = "删除作业点") public Map deleteOperationPoint(@RequestBody(required = false) Map map) { return rmsFeign.deleteOperationPoint(map); } @ApiOperation(value = "更新作业点", notes = "根据rmsOperationPoint对象创建") @ApiImplicitParam(name = "rmsOperationPoint", value = "详细实体rmsOperationPoint", required = true, dataType = "rmsOperationPoint") @PostMapping(value = "/updateOperationPoint") @LogAround(foreignKeys = {"operationPointId"}, foreignKeyTypes = {"作业点"}, description = "修改作业点") public Map updateOperationPoint(@RequestBody(required = false) Map map) { return rmsFeign.updateOperationPoint(map); } @ApiOperation(value = "根据id查询原料信息", notes = "根据rmsCarrier对象创建") @ApiImplicitParam(name = "rmsOperationPoint", value = "详细实体rmsOperationPoint", required = true, dataType = "rmsOperationPoint") @PostMapping(value = "/getOperationPointById/{id}") public Map getOperationPointById(@PathVariable("id") BigDecimal id) { return rmsFeign.getOperationPointById(id); } @ApiOperation(value = "更新作业点同步作业点", notes = "根据rmsOperationPoint对象创建") @ApiImplicitParam(name = "rmsOperationPoint", value = "详细实体rmsOperationPoint", required = true, dataType = "rmsOperationPoint") @PostMapping(value = "/syncOperationPoint") @LogAround(foreignKeys = {"operationPointId"}, foreignKeyTypes = {"作业点"}, description = "同步作业点") public Map syncOperationPoint(@RequestBody(required = false) Map map) { return rmsFeign.syncOperationPoint(map); } //============人员信息 @ApiOperation(value = "获取人员信息列表") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping("/getPersonnelList") public Map getPersonnelList(@RequestBody(required = false) Map mapVal, Integer apiId, Integer pageNum, Integer pageSize, String con ) { return rmsFeign.getPersonnelList(mapVal == null ? new HashMap<>() : mapVal, apiId, pageNum, pageSize, con); } @ApiOperation(value = "新增人员信息", notes = "根据rmsMaterial对象创建") @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel") @PostMapping(value = "/insertPersonnel") @LogAround(foreignKeys = {"personnelId"}, foreignKeyTypes = {"人员"}) public Map insertPersonnel(@RequestBody(required = false) Map map) { return rmsFeign.insertPersonnel(map); } @ApiOperation(value = "删除", notes = "根据rmsPersonnel对象创建") @ApiImplicitParam(name = "rmsMaterial", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel") @PostMapping(value = "/deletePersonnel") @LogAround(foreignKeys = {"personnelId"}, foreignKeyTypes = {"人员"}) public Map deletePersonnel(@RequestBody(required = false) Map map) { return rmsFeign.deletePersonnel(map); } @ApiOperation(value = "更新人员信息", notes = "根据rmsMaterial对象创建") @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel") @PostMapping(value = "/updatePersonnel") @LogAround(foreignKeys = {"personnelId"}, foreignKeyTypes = {"人员"}) public Map updatePersonnel(@RequestBody(required = false) Map map) { return rmsFeign.updatePersonnel(map); } @ApiOperation(value = "根据id更新详细人员信息", notes = "根据rmsPersonnel对象创建") @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel") @PostMapping(value = "/getPersonnelById/{personnelId}") public Map getPersonnelById(@PathVariable("personnelId") BigDecimal personnelId) { return rmsFeign.getPersonnelById(personnelId); } @ApiOperation(value = "根据id更新详细人员信息", notes = "根据rmsPersonnel对象创建") @ApiImplicitParam(name = "rmsPersonnel", value = "详细实体rmsPersonnel", required = true, dataType = "rmsPersonnel") @PostMapping(value = "/syncPersonnel") @LogAround(foreignKeys = {"personnelId"}, foreignKeyTypes = {"人员"}) public Map syncPersonnel(@RequestBody(required = false) Map map) { return rmsFeign.syncPersonnel(map); } //================公司 @ApiOperation(value = "展示公司信息") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping("/getCompanyList") public Map getCompanyList(@RequestBody(required = false) Map mapValue, Integer apiId, Integer pageNum, Integer pageSize ) { return rmsFeign.getCompanyList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize); } @ApiOperation(value = "新增公司信息", notes = "根据rmsCompany对象创建") @ApiImplicitParam(name = "rmsCompany", value = "详细实体rmsCompany", required = true, dataType = "rmsCompany") @PostMapping(value = "/insertCompany") @LogAround(foreignKeys = {"companyId"}, foreignKeyTypes = "公司", description = "新增公司单位") public Map insertCompany(@RequestBody(required = false) Map map) { return rmsFeign.insertCompany(map); } @ApiOperation(value = "删除") @ApiImplicitParam(name = "公司id", value = "id", required = true, dataType = "int") @PostMapping(value = "/deleteCompany") @LogAround(foreignKeys = {"companyId"}, foreignKeyTypes = "公司", description = "删除公司单位") public Map deleteCompany(@RequestBody Map map) { return rmsFeign.deleteCompany(map); } @ApiOperation(value = "更新公司信息", notes = "根据rmsCompany对象创建") @ApiImplicitParam(name = "rmsCompany", value = "详细实体rmsCompany", required = true, dataType = "rmsCompany") @PostMapping(value = "/updateCompany") @LogAround(foreignKeys = {"companyId"}, foreignKeyTypes = "公司", description = "修改公司单位") public Map updateCompany(@RequestBody(required = false) Map map) { return rmsFeign.updateCompany(map); } @ApiOperation(value = "根据id查询公司信息", notes = "根据rmsCompany对象创建") @ApiImplicitParam(name = "公司id", value = "id", required = true, dataType = "int") @PostMapping(value = "/getCompanyById/{id}") public Map getCompanyById(@PathVariable("id") BigDecimal id) { return rmsFeign.getCompanyById(id); } @ApiOperation(value = "同步公司", notes = "根据rmsCompany对象创建") @ApiImplicitParam(name = "rmsCompany", value = "详细实体rmsCompany", required = true, dataType = "rmsCompany") @PostMapping(value = "/syncCompany") @LogAround(foreignKeys = {"companyId"}, foreignKeyTypes = {"公司"}, description = "同步公司") public Map syncCompany(@RequestBody(required = false) Map map) { return rmsFeign.syncCompany(map); } //运力 @ApiOperation(value = "新增运力信息", notes = "根据rmsCapacity对象创建") @ApiImplicitParam(name = "rmsCapacity", value = "详细实体rmsCapacity", required = true, dataType = "rmsCapacity") @PostMapping(value = "/insertCapacity") @LogAround(foreignKeys = {"capacityId"}, foreignKeyTypes = {"运力"}) public Map insertCapacity(@RequestBody(required = false) Map map) { return rmsFeign.insertCapacity(map); } @ApiOperation(value = "删除", notes = "根据rmsCarrier对象创建") @ApiImplicitParam(name = "运力id", value = "id", required = true, dataType = "int") @PostMapping(value = "/deleteCapacity") @LogAround(foreignKeys = {"capacityId"}, foreignKeyTypes = {"运力"}) public Map deleteCapacity(@RequestBody(required = false) Map map) { return rmsFeign.deleteCapacity(map); } @ApiOperation(value = "获取运力详细信息", notes = "根据url的id来获取详细信息") @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal") @PostMapping(value = "/getCapacityById") public Map getCapacityById(@RequestBody Map map) { return rmsFeign.getCapacityById(map); } @ApiOperation(value = "更新详细信息", notes = "根据url的id来指定更新对象,并根据传过来的rmsCapacity信息来更新详细信息") @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short"), @ApiImplicitParam(name = "rmsCapacity", value = "详细实体rmsCapacity", required = true, dataType = "RmsCapacity") }) @PostMapping(value = "/updateCapacity", produces = "application/json;charset=UTF-8") @LogAround(foreignKeys = {"capacityId"}, foreignKeyTypes = {"运力"}) public Map updateCapacity(@RequestBody Map map) { return rmsFeign.updateCapacity(map); } @PostMapping("/getCapacityList") @ApiOperation(value = "模糊查询运力") public Map getCapacityList(@RequestBody(required = false) Map mapValue, Integer pageNum, Integer pageSize, Integer apiId, String con, String carrierSSOId) { return rmsFeign.getCapacityList(mapValue == null ? new HashMap<>() : mapValue, pageNum, pageSize, apiId, con, carrierSSOId); } @ApiOperation(value = "删除", notes = "根据rmsCarrier对象创建") @ApiImplicitParam(name = "仓库id", value = "id", required = true, dataType = "int") @PostMapping(value = "/deleteWarehouse/{id}") public Map deleteWarehouse(@PathVariable("id") BigDecimal id) { return rmsFeign.deleteWarehouse(id); } @ApiOperation(value = "更新详细信息", notes = "根据url的id来指定更新对象,并根据传过来的rmsCarDriver信息来更新详细信息") @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal"), @ApiImplicitParam(name = "rmsWarehouse", value = "详细实体rmsWarehouse", required = true, dataType = "RmsWarehouse") }) @PostMapping(value = "/updateWarehouse", produces = "application/json;charset=UTF-8") public Map updateWarehouse(@RequestBody Map map) { return rmsFeign.updateWarehouse(map); } @ApiOperation(value = "获取详细信息", notes = "根据url的id来获取详细信息") @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal") @PostMapping(value = "/getWarehouseById/{id}") public Map getWarehouseById(@PathVariable("id") BigDecimal id) { return rmsFeign.getWarehouseById(id); } @PostMapping("/getWarehouseList") @ApiOperation(value = "模糊查询原料仓库") public Map getWarehouseList(@RequestBody(required = false) Map mapValue, Integer pageNum, Integer pageSize, Integer apiId, String con) { return rmsFeign.getWarehouseList(mapValue == null ? new HashMap<>() : mapValue, pageNum, pageSize, apiId, con); } @ApiOperation(value = "展示司机排班信息", notes = "分页查询") @ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"), @ApiImplicitParam(name = "apiId", value = "196", required = false, dataType = "BigDecimal"), }) @PostMapping(value = "/getDriverCapacityList") public Map getDriverCapacityList(@RequestBody(required = false) Map mapValue, Integer pageNum, Integer pageSize, Integer apiId) { return rmsFeign.getDriverCapacityList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize); } @ApiOperation(value = "创建", notes = "根据RmsDriverCapacity对象创建") @ApiImplicitParam(name = "rmsDriverCapacity", value = "详细实体rmsDriverCapacity", required = true, dataType = "RmsDriverCapacity") @PostMapping(value = "/insertDriverCapacity") public Map insertDriverCapacity(@RequestBody(required = false) Map map) { return rmsFeign.insertDriverCapacity(map); } @ApiOperation(value = "展示门岗信息") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping("/getGatepostList") public Map getGatepostList(@RequestBody(required = false) Map mapValue, Integer apiId, Integer pageNum, Integer pageSize, String con ) { return rmsFeign.getGatepostList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con); } @ApiOperation(value = "新增门岗信息", notes = "根据rmsGatepost对象创建") @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost") @PostMapping(value = "/insertGatepost") public Map insertGatepost(@RequestBody(required = false) Map map) { return rmsFeign.insertGatepost(map); } @ApiOperation(value = "删除", notes = "根据rmsGatepost对象创建") @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int") @PostMapping(value = "/deleteGatepost/{id}") public Map deleteGatepost(@PathVariable("id") BigDecimal id) { return rmsFeign.deleteGatepost(id); } @ApiOperation(value = "更新门岗信息", notes = "根据rmsGatepost对象创建") @ApiImplicitParam(name = "rmsGatepost", value = "详细实体rmsGatepost", required = true, dataType = "rmsGatepost") @PostMapping(value = "/updateGatepost") public Map updateGatepost(@RequestBody(required = false) Map map) { return rmsFeign.updateGatepost(map); } @ApiOperation(value = "根据id查询门岗信息", notes = "根据rmsGatepost对象创建") @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int") @PostMapping(value = "/getGatepostById/{id}") public Map getGatepostById(@PathVariable("id") BigDecimal id) { return rmsFeign.getGatepostById(id); } @ApiOperation(value = "根据id查询门岗规则信息", notes = "根据rmsGatepost对象创建") @ApiImplicitParams({ @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "门岗id", value = "id", required = true, dataType = "int") }) @PostMapping(value = "/getGatepostRulesById/{id}") public Map getGatepostRulesById(@PathVariable("id") BigDecimal id, Integer apiId) { return rmsFeign.getGatepostRulesById(id, apiId); } @ApiOperation(value = "展示门岗规则信息") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping("/getGatepostRulesList") public Map getGatepostRulesList(@RequestBody(required = false) Map mapValue, Integer apiId, Integer pageNum, Integer pageSize, String con ) { return rmsFeign.getGatepostRulesList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con); } @ApiOperation(value = "删除", notes = "根据rulesId删除") @ApiImplicitParam(name = "门岗规则id", value = "rulesId", required = true, dataType = "int") @PostMapping(value = "/deleteGatepostRules/{rulesId}") public Map deleteGatepostRules(@PathVariable("rulesId") BigDecimal rulesId) { return rmsFeign.deleteGatepostRules(rulesId); } @ApiOperation(value = "新增门岗规则") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "门岗规则", required = false, dataType = "Map"), }) @PostMapping("/insertGatepostRule") public Map insertGatepostRule(@RequestBody(required = false) Map mapValue) { return rmsFeign.insertGatepostRule(mapValue); } @ApiOperation(value = "获取门岗名") @ApiImplicitParams({ @ApiImplicitParam(name = "门岗id", value = "gatepostId", required = true, dataType = "int") }) @PostMapping("/getGatepostName/{gatepostId}") public Map getGatepostName(@PathVariable("gatepostId") BigDecimal gatepostId) { return rmsFeign.getGatepostName(gatepostId); } //*******************************下拉框************************ @GetMapping("getCapacityTypeId") @ApiOperation(value = "得到下拉运力id") public Map getCapacityTypeId() { return rmsFeign.getCapacityTypeId(); } @GetMapping("getMaterialTypeId") @ApiOperation(value = "得到下拉物资类型id") public Map getMaterialTypeId() { return rmsFeign.getMaterialTypeId(); } @GetMapping("getTransportTypeId") @ApiOperation(value = "运输类型下拉") public Map getTransportTypeId() { return rmsFeign.getTransportTypeId(); } @PostMapping(value = "/getNoticeList") public Map getNoticeList(@RequestBody(required = false) Map mapValue, Integer apiId, Integer pageNum, Integer pageSize, String con ) { if (mapValue == null) { mapValue = new HashMap<>(); } return rmsFeign.getNoticeList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con); } @ApiOperation(value = "新增公告信息", notes = "根据DilNotice对象创建") @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "DilNotice") @PostMapping(value = "/insertNotice") public Map insertNotice(@RequestBody(required = false) Map map) { return rmsFeign.insertNotice(map); } @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建") @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice") @PostMapping(value = "/updateNotice", produces = "application/json;charset=UTF-8") public Map updateNotice(@RequestBody(required = false) Map map) { return rmsFeign.updateNotice(map); } @ApiOperation(value = "删除", notes = "根据url的id来指定删除对象") @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal") @PostMapping(value = "/deleteNotice/{id}")//BigDecimal public Map deleteNotice(@PathVariable("id") BigDecimal id) { return rmsFeign.deleteNotice(id); } @ApiOperation(value = "获取详细信息", notes = "根据url的id来获取详细信息") @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal") @PostMapping(value = "/getNoticeById/{id}") public Map getNoticeById(@PathVariable("id") BigDecimal id) { return rmsFeign.getNoticeById(id); } //油价 @ApiOperation(value = "获取油价信息", notes = "分页查询") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping(value = "/getOilPriceResultList") public Map getOilPriceResultList(@RequestBody(required = false) Map mapValue, Integer apiId, Integer pageNum, Integer pageSize, String con ) { if (mapValue == null) { mapValue = new HashMap<>(); } return rmsFeign.getOilPriceResultList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con); } @ApiOperation(value = "新增油价信息", notes = "根据DilNotice对象创建") @ApiImplicitParam(name = "addOilPrice", value = "详细实体dilNotice", required = true, dataType = "DilNotice") @PostMapping(value = "/insertOilPrice") public Map insertOilPrice(@RequestBody(required = false) Map map) { return rmsFeign.insertOilPrice(map); } @ApiOperation(value = "更新油价信息", notes = "根据油价ID来更新油价") @PostMapping(value = "/updateOilPrice") public Map updateOilPrice(@RequestBody(required = false) Map mapValue) { return rmsFeign.updateOilPrice(mapValue); } @ApiOperation(value = "删除", notes = "根据url的id来指定删除对象") @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal") @PostMapping(value = "/deleteOilPrice/{id}")//BigDecimal public Map deleteOilPrice(@PathVariable("id") BigDecimal id) { return rmsFeign.deleteOilPrice(id); } @ApiOperation(value = "获取详细信息", notes = "根据url的id来获取详细信息") @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal") @PostMapping(value = "/getOilPriceById/{id}") public Map getOilPriceById(@PathVariable("id") BigDecimal id) { return rmsFeign.getOilPriceById(id); } //根据运力id查询公司 @PostMapping(value = "getCarrierNameById/{id}") public Map getCarrierNameById(@PathVariable("id") BigDecimal id) { return rmsFeign.getCarrierNameById(id); } //根据司机id查询公司 @PostMapping(value = "getCarrierNameByDriverId/{id}") public Map getCarrierNameByDriverId(@PathVariable("id") BigDecimal id) { return rmsFeign.getCarrierNameByDriverId(id); } @ApiOperation(value = "创建", notes = "添加油品名称") @ApiImplicitParam(name = "oilTypeName", value = "油品名称", required = true, dataType = "String") @PostMapping(value = "/addOilType") public Map addOilType(String oilTypeName) { return rmsFeign.addOilType(oilTypeName); } @ApiOperation(value = "创建", notes = "查询油品名称") @PostMapping(value = "/oilNameSelect") public Map oilNameSelect() { return rmsFeign.oilNameSelect(); } @ApiOperation("解除公司和车辆的绑定关系") @PostMapping("/deleteCapacityCarrier") public RESTfulResult deleteCapacityCarrier(@RequestBody(required = false) Map map) { return rmsFeign.deleteCapacityCarrier(map != null ? map : new HashMap<>()); } @ApiOperation("渲染运力修改数据") @PostMapping("/getCapacityInfoById/{id}") public Map getCapacityInfoById(@PathVariable("id") Integer id) { return rmsFeign.getCapacityInfoById(id); } @ApiOperation(value = "查询运力类型") @PostMapping("/getCapacityType") public Map getCapacityType(@RequestBody(required = false) Map map, Integer apiId, Integer pageNum, Integer pageSize) { if (map == null) { map = new HashMap<>(); } return rmsFeign.getCapacityType(map, apiId, pageNum, pageSize); } @ApiOperation(value = "新增运力类型") @PostMapping(value = "/insertCapacityType") @LogAround(foreignKeys = {"capacityTypeId"}, foreignKeyTypes = {"运力类型"}) public Map insertCapacityType(@RequestBody(required = false) Map map) { return rmsFeign.insertCapacityType(map); } @ApiOperation(value = "删除运力类型") @PostMapping(value = "/deleteCapacityType") @LogAround(foreignKeys = {"capacityTypeId"}, foreignKeyTypes = {"运力类型"}) public Map deleteCapacityType(@RequestBody(required = false) Map map) { return rmsFeign.deleteCapacityType(map); } @ApiOperation(value = "查询运输范围") @PostMapping("/getTransRangeList") public Map getTransRangeList(@RequestBody(required = false) Map map, Integer apiId, Integer pageNum, Integer pageSize) { if (map == null) { map = new HashMap<>(); } return rmsFeign.getTransRangeList(map, apiId, pageNum, pageSize); } @ApiOperation(value = "新增运输范围") @PostMapping(value = "/insertTransRange") @LogAround(foreignKeys = {"transRangeId"}, foreignKeyTypes = "运输范围") public Map insertTransRange(@RequestBody(required = false) Map map) { return rmsFeign.insertTransRange(map); } @PostMapping(value = "/test") @LogAround(foreignKeys = {"orderId"}, foreignKeyTypes = {"运输订单"}, description = "测试日志功能") public RESTfulResult test(@RequestBody(required = false) Map map) { return success(map, "测试成功!"); } @ApiOperation(value = "新增集装箱数据") @PostMapping("insetShipContainer") public Map insetShipContainer(@RequestBody(required = false) Map map) { return rmsFeign.insetShipContainer(map); } @ApiOperation(value = "修改集装箱数据") @PostMapping("updateShipContainer") public Map updateShipContainer(@RequestBody List> mapList) { return rmsFeign.updateShipContainer(mapList); } @ApiOperation("查询集装箱数据") @PostMapping("getShippingContainer") public Map getShippingContainer(@RequestBody(required = false) Map map, @RequestParam(required = false) Integer apiId, @RequestParam(required = false) Integer pageNum, @RequestParam(required = false) Integer pageSize) { if (map == null) { map = new HashMap<>(); } return rmsFeign.getShippingContainer(map, apiId, pageNum, pageSize); } // ========================= 岗位信息维护 @ApiOperation(value = "岗位信息") @ApiImplicitParams({ @ApiImplicitParam(name = "map", value = "参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), }) @PostMapping(value = "/getrmsrmsjobinfos") public Map getAmsTransPriceList(@RequestBody(required = false) Map map, Integer apiId, Integer pageNum, Integer pageSize) { return rmsFeign.list(map == null ? new HashMap<>() : map, apiId, pageNum, pageSize); } @ApiOperation(value="新增岗位信息") @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map") @LogAround(foreignKeys = {"jobId"},foreignKeyTypes = {"岗位信息"}) @PostMapping("/add") public Map insertTransPrice(@RequestBody(required = false) Map map) { return rmsFeign.add(map); } @ApiOperation(value="修改岗位信息") @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map") @PutMapping(value = "/{id}") @LogAround(foreignKeys = {"jobId"},foreignKeyTypes = {"岗位信息"}) public Map purchaseOrderUpdate(@PathVariable BigDecimal id,@RequestBody(required = false) Map map){ return rmsFeign.update(id,map); } @ApiOperation(value="岗位信息逻辑删除") @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map") @PutMapping(value = "/logicdelete") @LogAround(foreignKeys = {"jobId"},foreignKeyTypes = {"岗位信息"}) public Map purchaseOrderLogicDelete(@RequestBody(required = false) Map map){ return rmsFeign.logicdelete(map); } @PostMapping(value = "/readExcel") public RESTfulResult readExcel(MultipartFile file){ return rmsFeign.readExcel(file); } }