| | |
| | | package com.fgkj.services; |
| | | |
| | | import com.fgkj.dto.Batt_Maint_Dealarm; |
| | | import com.fgkj.dto.PageBean; |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.User_sms; |
| | | import com.fgkj.mapper.impl.User_smsMapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | @Service |
| | | public class User_smsService { |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private User_smsMapper mapper; |
| | | |
| | | |
| | |
| | | return model; |
| | | } |
| | | //4.9短信息查询 |
| | | public ServiceModel serchByCondition(Object obj){ |
| | | public ServiceModel serchByCondition(User_sms bmd){ |
| | | ServiceModel model = new ServiceModel(); |
| | | List list=mapper.serchByCondition(obj); |
| | | // for (Object object : list) { |
| | | // System.out.println(object); |
| | | // } |
| | | |
| | | //分页 |
| | | PageBean pageBean = bmd.getPageBean(); |
| | | PageHelper.startPage(pageBean.getPageNum(),pageBean.getPageSize(),true); |
| | | List<User_sms> list=mapper.serchByCondition(bmd); |
| | | if(list!=null && list.size()>0){ |
| | | PageInfo<User_sms> pageInfo = new PageInfo<>(list); |
| | | model.setCode(1); |
| | | model.setData(list); |
| | | model.setData(pageInfo); |
| | | } |
| | | //System.out.println(model); |
| | | return model; |