| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.LithiumDataMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | private LithiumDataMapper mapper; |
| | | |
| | | //根据电池id查询锂电池信息 |
| | | @Transactional |
| | | public Response getInfoByBattGroupId(int battGroupId) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("BattGroupId",battGroupId); |
| | | List list=mapper.selectList(wrapper); |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().set(1,pageInfo); |
| | | return new Response().setII(1,list.size()>0?true:false,pageInfo,""); |
| | | } |
| | | } |