| | |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | import java.lang.reflect.Field; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 服务实现类 |
| | | * |
| | |
| | | return page.setRecords(baseMapper.selectLicetPage(page, licet)); |
| | | } |
| | | |
| | | /** |
| | | * @param list |
| | | * @param licet |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map<Object, Object>> selectLicetPages(LicetVO licet,List<String> list){ |
| | | String id = ""; |
| | | String ptype = ""; |
| | | String originalname = ""; |
| | | String template = ""; |
| | | if (list.size()>0){ |
| | | for (String s : list) { |
| | | if (s.equals("id")){ |
| | | id = "id"; |
| | | } |
| | | if (s.equals("originalname")){ |
| | | originalname = "originalname"; |
| | | } |
| | | if (s.equals("ptype")){ |
| | | ptype = "ptype"; |
| | | } |
| | | if (s.equals("template")){ |
| | | template = "template"; |
| | | } |
| | | } |
| | | } |
| | | //查询 |
| | | List<Map<Object, Object>> licets = baseMapper.selectLicets(licet,id,ptype,originalname,template); |
| | | return licets; |
| | | } |
| | | |
| | | } |