Commit 16e4736a by YG8429

修改小程序查询本人权益记录和上级用户权益记录

parent ed0873bc
...@@ -10,6 +10,9 @@ import share.common.core.page.TableDataInfo; ...@@ -10,6 +10,9 @@ import share.common.core.page.TableDataInfo;
import share.common.enums.BusinessType; import share.common.enums.BusinessType;
import share.common.utils.poi.ExcelUtil; import share.common.utils.poi.ExcelUtil;
import share.system.domain.EquityFundLog; import share.system.domain.EquityFundLog;
import share.system.domain.SConsumer;
import share.system.domain.vo.DurationLogVo;
import share.system.domain.vo.FrontTokenComponent;
import share.system.service.EquityFundLogService; import share.system.service.EquityFundLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -28,40 +31,24 @@ public class EquityFundLogController extends BaseController { ...@@ -28,40 +31,24 @@ public class EquityFundLogController extends BaseController {
private EquityFundLogService equityFundLogService; private EquityFundLogService equityFundLogService;
/** /**
* 查询权益金记录列表 * 查询本人权益金记录列表
*/ */
@PostMapping("/list") @GetMapping("/list")
public TableDataInfo list(EquityFundLog equityFundLog) { public TableDataInfo list(EquityFundLog equityFundLog) {
startPage(); startPage();
SConsumer user = FrontTokenComponent.getWxSConsumerEntry();
equityFundLog.setUid(user.getId());
List<EquityFundLog> list = equityFundLogService.selectEquityFundLogList(equityFundLog); List<EquityFundLog> list = equityFundLogService.selectEquityFundLogList(equityFundLog);
return getDataTable(list); return getDataTable(list);
} }
/** @GetMapping("/query")
* 获取权益金记录详细信息 public AjaxResult query(EquityFundLog equityFundLog) {
*/ SConsumer user = FrontTokenComponent.getWxSConsumerEntry();
@PreAuthorize("@ss.hasPermi('system:equityFundLog:query')") equityFundLog.setNewUid(user.getId());
@GetMapping(value = "/{id}") List<EquityFundLog> list = equityFundLogService.selectEquityFundLogList(equityFundLog);
public AjaxResult getInfo(@PathVariable("id") Long id) { return success(list);
return success(equityFundLogService.selectEquityFundLogById(id));
}
/**
* 查询权益金记录列表
*/
// @PreAuthorize("@ss.hasPermi('system:equityFundLog:listUid')")
@GetMapping("/listUid/{uid}")
public TableDataInfo equityFundLogListByUid(@PathVariable("uid") Long uid) {
startPage();
List<EquityFundLog> list = equityFundLogService.selectEquityFundLogByUid(uid);
return getDataTable(list);
} }
@GetMapping("/listNewUid/{id}")
public TableDataInfo equityFundLogListByNewUid(@PathVariable("id") Long id) {
startPage();
List<EquityFundLog> list = equityFundLogService.selectEquityFundLogByNewUid(id);
return getDataTable(list);
}
} }
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