| | |
| | | import com.yuanchu.limslaboratory.pojo.Report; |
| | | import com.yuanchu.limslaboratory.pojo.vo.ReportVo; |
| | | import com.yuanchu.limslaboratory.service.ReportService; |
| | | import com.yuanchu.limslaboratory.utils.RedisUtil; |
| | | import com.yuanchu.limslaboratory.utils.ServletUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<ReportVo> selectAllReport(Page<Object> page, Integer status, String name) { |
| | | return reportMapper.selectAllReport(page, status, name); |
| | | public IPage<ReportVo> selectAllReport(Page<Object> page, Integer status, String name,boolean checked) { |
| | | Object obj = RedisUtil.get(ServletUtils.getRequest().getHeader("X-Token")); |
| | | Integer id=null; |
| | | if(checked&&!ObjectUtils.isEmpty(obj)){ |
| | | Map loginUser = (Map) obj; |
| | | id=Integer.parseInt(String.valueOf(loginUser.get("id"))); |
| | | } |
| | | return reportMapper.selectAllReport(page, status, name,id,checked); |
| | | } |
| | | |
| | | //提交 |