Commit 8c5cddb0 by zhoujunpeng

FtdService修改

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