Commit 2b742cbc by jianglong

修改查询交易

parent 0fd6ec76
...@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -11,6 +11,7 @@ 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 java.util.Map; import java.util.Map;
@RestController @RestController
...@@ -60,6 +61,15 @@ public class FxtselResource { ...@@ -60,6 +61,15 @@ public class FxtselResource {
return ResponseSet.simpleSuccess(fxtselService.dealWithByInr(trnCodeQueryVo)); return ResponseSet.simpleSuccess(fxtselService.dealWithByInr(trnCodeQueryVo));
} }
/**
* 详情页面初始化
*/
@PostMapping("/selectXxdByPrimaryKey")
public ResponseSet selectXxdByPrimaryKey(@RequestBody Map<String,String> map){
return ResponseSet.simpleSuccess(fxtselService.selectXxdByPrimaryKey(map));
}
} }
......
...@@ -20,4 +20,6 @@ public interface FxtselService { ...@@ -20,4 +20,6 @@ public interface FxtselService {
PageInfo listjshpp(FxtselQueryVo fxtselQueryVo); PageInfo listjshpp(FxtselQueryVo fxtselQueryVo);
List<TrncodVo> dealWithByInr(TrnCodeQueryVo trnCodeQueryVo); List<TrncodVo> dealWithByInr(TrnCodeQueryVo trnCodeQueryVo);
Object selectXxdByPrimaryKey(Map<String, String> map);
} }
package com.brilliance.isc.funds.fxtsel.service.impl; package com.brilliance.isc.funds.fxtsel.service.impl;
import com.brilliance.isc.bo.Srm;
import com.brilliance.isc.bo.Trn;
import com.brilliance.isc.bo.model.Fxdgrp; import com.brilliance.isc.bo.model.Fxdgrp;
import com.brilliance.isc.bo.model.Lidgrp;
import com.brilliance.isc.bo.model.Ltdgrp;
import com.brilliance.isc.common.sysmod.SysmodService;
import com.brilliance.isc.funds.bo.funds.FxtfopStoreBo;
import com.brilliance.isc.funds.common.component.FxToolComponent; import com.brilliance.isc.funds.common.component.FxToolComponent;
import com.brilliance.isc.common.util.StringUtils; import com.brilliance.isc.common.util.StringUtils;
//import com.brilliance.isc.funds.bo.Fxdgrp; //import com.brilliance.isc.funds.bo.Fxdgrp;
import com.brilliance.isc.mda.dao.FxdMapper; import com.brilliance.isc.mda.dao.FxdMapper;
import com.brilliance.isc.mda.dao.TrnMapper;
import com.brilliance.isc.vo.TrncodVo; import com.brilliance.isc.vo.TrncodVo;
import com.brilliance.isc.vo.funds.FxtselQueryVo; import com.brilliance.isc.vo.funds.FxtselQueryVo;
import com.brilliance.isc.vo.TrnCodeQueryVo; import com.brilliance.isc.vo.TrnCodeQueryVo;
import com.brilliance.isc.vo.funds.FxdWithPtsCbbResponseVo; import com.brilliance.isc.vo.funds.FxdWithPtsCbbResponseVo;
import com.brilliance.isc.funds.fxtsel.service.FxtselService; import com.brilliance.isc.funds.fxtsel.service.FxtselService;
import com.brilliance.mda.runtime.mda.util.MdaUtils;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
...@@ -19,6 +27,7 @@ import org.slf4j.LoggerFactory; ...@@ -19,6 +27,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.*; import java.util.*;
@Service @Service
...@@ -29,6 +38,12 @@ public class FxtselServiceImpl implements FxtselService { ...@@ -29,6 +38,12 @@ public class FxtselServiceImpl implements FxtselService {
@Autowired @Autowired
private FxdMapper fxdMapper; private FxdMapper fxdMapper;
@Resource
private TrnMapper trnMapper;
@Resource
private SysmodService sysmodService;
@Autowired @Autowired
private FxToolComponent fxToolComponent; private FxToolComponent fxToolComponent;
...@@ -92,4 +107,25 @@ public class FxtselServiceImpl implements FxtselService { ...@@ -92,4 +107,25 @@ public class FxtselServiceImpl implements FxtselService {
} }
return result; return result;
} }
@Override
public Object selectXxdByPrimaryKey(Map<String, String> map) {
String objinr = map.get("objinr");
String objtyp = map.get("objtyp");
String pntinr = map.get("pntinr");
FxtfopStoreBo fxtfopStoreBo = new FxtfopStoreBo();
fxtfopStoreBo.reset();
if(objinr.length() == 16) {
Trn trnLid = trnMapper.selectByObjinrTrn(objtyp, objinr, "FXTFOP");
if (!Objects.isNull(trnLid)) {
fxtfopStoreBo = sysmodService.streamGetNameInSubDir(FxtfopStoreBo.class, trnLid.getInr());
}
}
fxtfopStoreBo.setFxdgrp(fxToolComponent.getFxdgrpByInr(objinr));
return fxtfopStoreBo;
}
} }
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