| | |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.ld.igds.models.Granary; |
| | | import com.ld.igds.util.ContextUtil; |
| | | import com.ld.igds.view.service.HGranaryService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | @DataProvider |
| | | public void pageGranary(Page<Granary> page, Map<String, Object> param) |
| | | throws Exception { |
| | | if(null == param){ |
| | | param = new HashMap<>(); |
| | | } |
| | | if(null == param.get("deptId")){ |
| | | param.put("deptId", ContextUtil.subDeptId(null)); |
| | | } |
| | | granaryService.pageData(page, param); |
| | | } |
| | | |