Commit 437e4715 by YG8429

修改小程序接口

parent 5c98c300
...@@ -30,8 +30,7 @@ public class EquityFundLogController extends BaseController { ...@@ -30,8 +30,7 @@ public class EquityFundLogController extends BaseController {
/** /**
* 查询权益金记录列表 * 查询权益金记录列表
*/ */
@PreAuthorize("@ss.hasPermi('system:equityFundLog:list')") @PostMapping("/list")
@GetMapping("/list")
public TableDataInfo list(EquityFundLog equityFundLog) { public TableDataInfo list(EquityFundLog equityFundLog) {
startPage(); startPage();
List<EquityFundLog> list = equityFundLogService.selectEquityFundLogList(equityFundLog); List<EquityFundLog> list = equityFundLogService.selectEquityFundLogList(equityFundLog);
...@@ -46,4 +45,15 @@ public class EquityFundLogController extends BaseController { ...@@ -46,4 +45,15 @@ public class EquityFundLogController extends BaseController {
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(equityFundLogService.selectEquityFundLogById(id)); return success(equityFundLogService.selectEquityFundLogById(id));
} }
/**
* 查询权益金记录列表
*/
// @PreAuthorize("@ss.hasPermi('system:equityFundLog:listUid')")
@GetMapping("/listUid")
public TableDataInfo equityFundLogListByUid(@PathVariable("uid") Long uid) {
startPage();
List<EquityFundLog> list = equityFundLogService.selectEquityFundLogByUid(uid);
return getDataTable(list);
}
} }
...@@ -59,4 +59,6 @@ public interface EquityFundLogService extends IService<EquityFundLog> ...@@ -59,4 +59,6 @@ public interface EquityFundLogService extends IService<EquityFundLog>
* @return 结果 * @return 结果
*/ */
public int deleteEquityFundLogById(Long id); public int deleteEquityFundLogById(Long id);
List<EquityFundLog> selectEquityFundLogByUid(Long uid);
} }
package share.system.service.impl; package share.system.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import share.common.utils.DateUtils; import share.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -94,4 +96,10 @@ public class EquityFundLogServiceImpl extends ServiceImpl<EquityFundLogMapper, E ...@@ -94,4 +96,10 @@ public class EquityFundLogServiceImpl extends ServiceImpl<EquityFundLogMapper, E
{ {
return equityFundLogMapper.deleteEquityFundLogById(id); return equityFundLogMapper.deleteEquityFundLogById(id);
} }
@Override
public List<EquityFundLog> selectEquityFundLogByUid(Long id) {
return equityFundLogMapper.selectList(new LambdaQueryWrapper<EquityFundLog>().eq(EquityFundLog::getUid,id));
}
} }
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