后端修改

dev
277151821@qq.com 2024-03-05 11:36:33 +08:00
parent d96a569e66
commit 3d1a78869c
5 changed files with 55 additions and 0 deletions

View File

@ -202,4 +202,24 @@ public class FreighttTrailerController extends BaseController {
return map; 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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
String corpId = Jurisdiction.getCORPINFO_ID();
List<PageData> list = freightTrailerService.trailerList(corpId); //列出Question列表
map.put("list", list);
map.put("result", errInfo);
return map;
}
} }

View File

@ -66,5 +66,13 @@ public interface FreightTrailerMapper {
* @throws Exception * @throws Exception
*/ */
List<PageData> trailerList(String corpId); List<PageData> trailerList(String corpId);
/**
*
*
* @param
* @throws Exception
*/
List<PageData> vehicleList(String corpId);
} }

View File

@ -67,5 +67,13 @@ public interface FreightTrailerService {
*/ */
public List<PageData> trailerList(String corpId) throws Exception; public List<PageData> trailerList(String corpId) throws Exception;
/**
*
*
* @param
* @throws Exception
*/
public List<PageData> vehicleList(String corpId) throws Exception;
} }

View File

@ -93,5 +93,15 @@ public class FreightTrailerServiceImpl implements FreightTrailerService {
return freightTrailerMapper.trailerList(corpId); return freightTrailerMapper.trailerList(corpId);
} }
/**
*
*
* @param
* @throws Exception
*/
public List<PageData> vehicleList(String corpId) throws Exception {
return freightTrailerMapper.vehicleList(corpId);
}
} }

View File

@ -235,4 +235,13 @@
where f.ISDELETE = '0' and f.CORPINFO_ID = #{corpId} where f.ISDELETE = '0' and f.CORPINFO_ID = #{corpId}
</select> </select>
<!-- 货运挂车列表ALL -->
<select id="vehicleList" parameterType="page" resultType="pd">
select
*
from
v_traffic f
where f.CORPINFO_ID = #{corpId}
</select>
</mapper> </mapper>