Commit 7e076a64 by YG8429

新增小程序查询当前用户上级接口

parent d0a6f0cf
...@@ -56,4 +56,12 @@ public class EquityFundLogController extends BaseController { ...@@ -56,4 +56,12 @@ public class EquityFundLogController extends BaseController {
List<EquityFundLog> list = equityFundLogService.selectEquityFundLogByUid(uid); List<EquityFundLog> list = equityFundLogService.selectEquityFundLogByUid(uid);
return getDataTable(list); return getDataTable(list);
} }
@GetMapping("/listNewUid/{id}")
public TableDataInfo equityFundLogListByNewUid(@PathVariable("id") Long id) {
startPage();
List<EquityFundLog> list = equityFundLogService.selectEquityFundLogByNewUid(id);
return getDataTable(list);
}
} }
...@@ -61,4 +61,6 @@ public interface EquityFundLogService extends IService<EquityFundLog> ...@@ -61,4 +61,6 @@ public interface EquityFundLogService extends IService<EquityFundLog>
public int deleteEquityFundLogById(Long id); public int deleteEquityFundLogById(Long id);
List<EquityFundLog> selectEquityFundLogByUid(Long uid); List<EquityFundLog> selectEquityFundLogByUid(Long uid);
List<EquityFundLog> selectEquityFundLogByNewUid(Long newUid);
} }
...@@ -102,4 +102,10 @@ public class EquityFundLogServiceImpl extends ServiceImpl<EquityFundLogMapper, E ...@@ -102,4 +102,10 @@ public class EquityFundLogServiceImpl extends ServiceImpl<EquityFundLogMapper, E
return equityFundLogMapper.selectList(new LambdaQueryWrapper<EquityFundLog>().eq(EquityFundLog::getUid,id)); return equityFundLogMapper.selectList(new LambdaQueryWrapper<EquityFundLog>().eq(EquityFundLog::getUid,id));
} }
@Override
public List<EquityFundLog> selectEquityFundLogByNewUid(Long newUid) {
return equityFundLogMapper.selectList(new LambdaQueryWrapper<EquityFundLog>().eq(EquityFundLog::getNewUid,newUid));
}
} }
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