| | |
| | | |
| | | List<Battinf> getSateAnalysis(int userId); |
| | | |
| | | //根据机房id查询电池组id(排序取groupIndex=0) |
| | | int searchBattGroupId(String stationId); |
| | | } |
| | |
| | | UserInf uinf = ActionUtil.getUser(); |
| | | String userId = uinf.getUId().toString(); |
| | | List<Battinf> list = mapper.getJcdisBatt(userId); |
| | | int battgroupId = 0; |
| | | for (Battinf binf : list) { |
| | | battgroupId = binfMapper.searchBattGroupId(binf.getStationId()); |
| | | binf.setBattGroupId(battgroupId); |
| | | battgroupId = 0; |
| | | } |
| | | return new Response().setII(1, list.size() > 0, list, "获取本年已核容电池组"); |
| | | } |
| | | |
| | |
| | | and db_user.tb_user_inf.uid = db_user.tb_user_battgroup_baojigroup_usr.uid |
| | | and db_user.tb_user_inf.uid = #{userId}) |
| | | </select> |
| | | <select id="searchBattGroupId" resultType="java.lang.Integer"> |
| | | select distinct battGroupId |
| | | from db_battinf.tb_battinf |
| | | where StationId = #{stationId} |
| | | and GroupIndexInFBSDevice = 0 limit 1 |
| | | </select> |
| | | |
| | | </mapper> |