|
|
@@ -131,32 +131,20 @@ public class AmbInvestApiController extends CertifyApiController {
|
|
|
|
|
|
/**
|
|
|
* 投资明细列表
|
|
|
- * @return
|
|
|
+ * @param id 阿米巴编号
|
|
|
+ * @return type 0我投资 1我被投资
|
|
|
*/
|
|
|
@RequestMapping(value="/AmbInvestDtailsList",method = RequestMethod.GET)
|
|
|
- public Result AmbInvestDtailsList(Long id){
|
|
|
+ public Result AmbInvestDtailsList(Long id,Integer type ){
|
|
|
Result res =new Result();
|
|
|
if (id==null){
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"当前阿米巴","当前阿米巴"));
|
|
|
return res;
|
|
|
}
|
|
|
- res.data(ambInvestService.AmbInvestDtailsList(id));
|
|
|
+ res.data(ambInvestService.AmbInvestDtailsList(id,type));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 投资明细列表
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping(value="/AmbIncomeDtailsList",method = RequestMethod.GET)
|
|
|
- public Result AmbIncomeDtailsList(Long id){
|
|
|
- Result res =new Result();
|
|
|
- if (id==null){
|
|
|
- res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"当前阿米巴","当前阿米巴"));
|
|
|
- return res;
|
|
|
- }
|
|
|
- res.data(ambInvestService.AmbIncomeDtailsList(id));
|
|
|
- return res;
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
}
|