diff --git a/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java b/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java index 901d691..07c3060 100644 --- a/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java +++ b/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java @@ -202,4 +202,24 @@ public class FreighttTrailerController extends BaseController { return map; } + /** + * 列表 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/vehicleList") + // @RequiresPermissions( value = {"question:list" , "courseware:list"}, logical = Logical.OR) + @ResponseBody + @LogAnno(menuType = "基础信息管理", menuServer = "营运车辆", instructionsOperate = "营运车辆", instructionsType = "列表") + public Object vehicleList() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + String corpId = Jurisdiction.getCORPINFO_ID(); + List list = freightTrailerService.trailerList(corpId); //列出Question列表 + map.put("list", list); + map.put("result", errInfo); + return map; + } + } diff --git a/src/main/java/com/zcloud/mapper/dsno2/freighttrailer/FreightTrailerMapper.java b/src/main/java/com/zcloud/mapper/dsno2/freighttrailer/FreightTrailerMapper.java index 80c9b6b..7699754 100644 --- a/src/main/java/com/zcloud/mapper/dsno2/freighttrailer/FreightTrailerMapper.java +++ b/src/main/java/com/zcloud/mapper/dsno2/freighttrailer/FreightTrailerMapper.java @@ -66,5 +66,13 @@ public interface FreightTrailerMapper { * @throws Exception */ List trailerList(String corpId); + + /** + * 列表 + * + * @param + * @throws Exception + */ + List vehicleList(String corpId); } diff --git a/src/main/java/com/zcloud/service/freighttrailer/FreightTrailerService.java b/src/main/java/com/zcloud/service/freighttrailer/FreightTrailerService.java index c847c32..ec0e977 100644 --- a/src/main/java/com/zcloud/service/freighttrailer/FreightTrailerService.java +++ b/src/main/java/com/zcloud/service/freighttrailer/FreightTrailerService.java @@ -67,5 +67,13 @@ public interface FreightTrailerService { */ public List trailerList(String corpId) throws Exception; + /** + * 列表 + * + * @param + * @throws Exception + */ + public List vehicleList(String corpId) throws Exception; + } diff --git a/src/main/java/com/zcloud/service/freighttrailer/impl/FreightTrailerServiceImpl.java b/src/main/java/com/zcloud/service/freighttrailer/impl/FreightTrailerServiceImpl.java index 1ea671e..7b91bb4 100644 --- a/src/main/java/com/zcloud/service/freighttrailer/impl/FreightTrailerServiceImpl.java +++ b/src/main/java/com/zcloud/service/freighttrailer/impl/FreightTrailerServiceImpl.java @@ -93,5 +93,15 @@ public class FreightTrailerServiceImpl implements FreightTrailerService { return freightTrailerMapper.trailerList(corpId); } + /** + * 列表 + * + * @param + * @throws Exception + */ + public List vehicleList(String corpId) throws Exception { + return freightTrailerMapper.vehicleList(corpId); + } + } diff --git a/src/main/resources/mybatis/dsno2/freighttrailer/FreightTrailerMapper.xml b/src/main/resources/mybatis/dsno2/freighttrailer/FreightTrailerMapper.xml index df868bb..f013d01 100644 --- a/src/main/resources/mybatis/dsno2/freighttrailer/FreightTrailerMapper.xml +++ b/src/main/resources/mybatis/dsno2/freighttrailer/FreightTrailerMapper.xml @@ -235,4 +235,13 @@ where f.ISDELETE = '0' and f.CORPINFO_ID = #{corpId} + + +