Commit 8c5cddb0 by zhoujunpeng

FtdService修改

parent 968b6d12
......@@ -5,7 +5,7 @@ import com.brilliance.isc.funds.basesel.ftdsel.service.FtdselService;
import com.brilliance.isc.funds.basesel.trncod.service.TrncodService;
import com.brilliance.isc.vo.ResponseSet;
import com.brilliance.isc.vo.TrnCodeQueryVo;
import org.springframework.web.bind.annotation.RequestBody;
import com.brilliance.isc.vo.funds.FttselQueryVo;import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
......@@ -22,7 +22,7 @@ public class FtdselController {
private TrncodService trncodService;
@RequestMapping("/query")
public ResponseSet list(@RequestBody FtdVo vo) {
public ResponseSet list(@RequestBody FttselQueryVo vo) {
return ResponseSet.simpleSuccess(
ftdselService.query(vo)
);
......
package com.brilliance.isc.funds.basesel.ftdsel.service;
import com.brilliance.isc.bo.FtdVo;
import com.github.pagehelper.PageInfo;
import com.brilliance.isc.vo.funds.FtdWithPtsCbbResponseVo;import com.brilliance.isc.vo.funds.FttselQueryVo;import com.github.pagehelper.PageInfo;
public interface FtdselService {
PageInfo<FtdVo> query(FtdVo ftdVo);
PageInfo<FtdWithPtsCbbResponseVo> query(FttselQueryVo ftdVo);
}
\ No newline at end of file
......@@ -3,7 +3,7 @@ package com.brilliance.isc.funds.basesel.ftdsel.service.impl;
import com.brilliance.isc.bo.FtdVo;
import com.brilliance.isc.funds.basesel.ftdsel.service.FtdselService;
import com.brilliance.isc.mda.dao.FtdMapper;
import com.github.pagehelper.PageHelper;
import com.brilliance.isc.vo.funds.FtdWithPtsCbbResponseVo;import com.brilliance.isc.vo.funds.FttselQueryVo;import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
......@@ -16,13 +16,12 @@ public class FtdselServiceImpl implements FtdselService {
private FtdMapper ftdMapper;
@Override
public PageInfo<FtdVo> query(FtdVo vo) {
public PageInfo<FtdWithPtsCbbResponseVo> query(FttselQueryVo vo) {
//搜索
PageHelper.startPage(vo.getPageNo(), vo.getPageSize(), null).setReasonable(true);
List<FtdVo> list = ftdMapper.query(vo);
PageHelper.startPage(1, vo.getPageSize(), null).setReasonable(true);
List<FtdWithPtsCbbResponseVo> list = ftdMapper.queryFtd(vo);
return new PageInfo<>(list);
// String branch = fxtselQueryVo.getBranch();
// if (Strings.isEmpty(branch)) {
// branch = SettleContext.getSessionUserVo().getOwnOrgDepartmentNumber();
......
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