| | |
| | | package com.consum.base.controller; |
| | | |
| | | import cn.hutool.core.util.ReflectUtil; |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.core.utils.CommonUtil; |
| | | import com.consum.base.core.utils.MapUtils; |
| | |
| | | private LWarehouseFlowService lWarehouseFlowService; |
| | | |
| | | @GetMapping("/list") |
| | | public ResponseValue queryFormProcureList(LWarehouseFlowParam param) { |
| | | public ResponseValue queryFormProcureList() { |
| | | LWarehouseFlowParam param = CommonUtil.getObjFromReq(LWarehouseFlowParam.class); |
| | | LWarehouseFlowParam param2 = new LWarehouseFlowParam(); |
| | | CommonUtil.copyProperties(param, param2); |
| | | param = param2; |
| | | |
| | | S_user_core currentUser = this.getCurrentUser(); |
| | | if (currentUser == null) { |
| | | return ResponseValue.error("登录用户信息不存在"); |
| | |
| | | }); |
| | | try { |
| | | Field fieldDatas = GenericPager.class.getDeclaredField("datas"); |
| | | fieldDatas.setAccessible(true); |
| | | fieldDatas.set(genericPager, result); |
| | | // fieldDatas.setAccessible(true); |
| | | // fieldDatas.set(genericPager, result); |
| | | ReflectUtil.setFieldValue(genericPager, fieldDatas, result); |
| | | } catch (Exception e) { |
| | | logger.error(e.getMessage(), e); |
| | | } |
| | |
| | | |
| | | |
| | | @GetMapping("/detail/list") |
| | | public ResponseValue queryFormProcureList1(LWarehouseFlowParam param) { |
| | | public ResponseValue queryFormProcureList1() { |
| | | LWarehouseFlowParam param = CommonUtil.getObjFromReq(LWarehouseFlowParam.class); |
| | | LWarehouseFlowParam param2 = new LWarehouseFlowParam(); |
| | | CommonUtil.copyProperties(param, param2); |
| | | param = param2; |
| | | S_user_core currentUser = this.getCurrentUser(); |
| | | if (currentUser == null) { |
| | | return ResponseValue.error("登录用户信息不存在"); |
| | |
| | | return ResponseValue.error("登录用户信息不存在"); |
| | | } |
| | | LWarehouseFlowParam param = CommonUtil.getObjFromReq(LWarehouseFlowParam.class); |
| | | LWarehouseFlowParam param2 = new LWarehouseFlowParam(); |
| | | CommonUtil.copyProperties(param, param2); |
| | | param = param2; |
| | | /*当前登录人只能看到自己机构下的列表*/ |
| | | FinSysTenantUser sysInfo = this.getSysInfo(); |
| | | String tenantId = sysInfo.getTenantId(); |