| | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.MonInfMapper; |
| | | import com.whyc.pojo.MonInf; |
| | | import com.whyc.pojo.db_batt.MonInf; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public Response getAllMon(String monType,int pageNum,int pageSize) { |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | if(monType!=null||monType.equals("")){ |
| | | if(monType!=null&&monType.equals("")){ |
| | | wrapper.eq("mon_type",monType); |
| | | } |
| | | wrapper.orderByAsc("mon_id"); |