| | |
| | | List<Battinf> stationList = service.getStationList(userInf.getUId().intValue()); |
| | | return new Response().set(1,stationList); |
| | | } |
| | | @GetMapping("/searchByBattProducer") |
| | | @ApiOperation(value = "获取所有电池品牌") |
| | | public Response getAllBattProducer(){ |
| | | return service.searchBattProducer(); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/add") |
| | |
| | | |
| | | List<Battinf> getStationList(int userId); |
| | | |
| | | |
| | | List<String> getAllBattProducer(); |
| | | |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public Response searchBattProducer(){ |
| | | List<String> list = battInfMapper.getAllBattProducer(); |
| | | return new Response().set(1,list); |
| | | } |
| | | |
| | | |
| | | |
| | | public void addBatch(List<Battinf> battInfList){ |
| | |
| | | |
| | | </select> |
| | | |
| | | <select id="getAllBattProducer" resultType="string"> |
| | | select DISTINCT(BattProducer) from db_battinf.tb_battinf ORDER BY BattProducer |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |