Commit 13a63fe4 authored by mengbali153's avatar mengbali153

非标产值申请

parent f44e6cc3
...@@ -35,9 +35,9 @@ public class NonStandardApplyController { ...@@ -35,9 +35,9 @@ public class NonStandardApplyController {
@ApiOperation(value = "非标产值申请分页") @ApiOperation(value = "非标产值申请分页")
@GetMapping("/getPage") @GetMapping("/getPage")
public BaseResponse getPage(PageQuery pageQuery, String name) { public BaseResponse getPage(PageQuery pageQuery, String name,Integer userId) {
try { try {
return iNonStandardApplyService.getPage(pageQuery, name); return iNonStandardApplyService.getPage(pageQuery, name,userId);
} catch (Exception e) { } catch (Exception e) {
log.debug("非标产值申请分页列表{}", e); log.debug("非标产值申请分页列表{}", e);
} }
......
...@@ -27,7 +27,7 @@ public interface INonStandardApplyService extends IService<NonStandardApply> { ...@@ -27,7 +27,7 @@ public interface INonStandardApplyService extends IService<NonStandardApply> {
* @param pageQuery 非标产值信息分页 * @param pageQuery 非标产值信息分页
* @return IPage<NoneStandardApply> * @return IPage<NoneStandardApply>
*/ */
BaseResponse<IPage<NonStandardApplyVo>> getPage(PageQuery pageQuery, String name); BaseResponse<IPage<NonStandardApplyVo>> getPage(PageQuery pageQuery, String name,Integer userId);
/** /**
* 获取所有非标产值申请信息 * 获取所有非标产值申请信息
......
...@@ -43,9 +43,10 @@ public class NonStandardApplyServiceImpl extends ServiceImpl<NonStandardApplyMap ...@@ -43,9 +43,10 @@ public class NonStandardApplyServiceImpl extends ServiceImpl<NonStandardApplyMap
private NonStandardApplyMapper nonStandardApplyMapper; private NonStandardApplyMapper nonStandardApplyMapper;
@Override @Override
public BaseResponse<IPage<NonStandardApplyVo>> getPage(PageQuery pageQuery, String name) { public BaseResponse<IPage<NonStandardApplyVo>> getPage(PageQuery pageQuery, String name,Integer userId) {
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("name", name); params.put("name", name);
params.put("userId", userId);
Page<NonStandardApplyVo> page = new Page<>(pageQuery.getPageNo(), pageQuery.getPageSize()); Page<NonStandardApplyVo> page = new Page<>(pageQuery.getPageNo(), pageQuery.getPageSize());
IPage<NonStandardApplyVo> pages = nonStandardApplyMapper.getPage(page, params); IPage<NonStandardApplyVo> pages = nonStandardApplyMapper.getPage(page, params);
return BaseResponse.okData(pages); return BaseResponse.okData(pages);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment