|
|
@@ -47,10 +47,9 @@ public class AmbInvestServiceImpl extends BaseMybatisDao<AmbInvestMapper> implem
|
|
|
public int pushInvestTransfer(InputAmbInvest in) {
|
|
|
AmbSystem myAmb =null;
|
|
|
if (in.getRoleType()==1){
|
|
|
- myAmb= ambSystemMapper.selectByPrimaryKey(in.getMyAmbId());
|
|
|
+ myAmb= ambSystemMapper.selectByPrimaryKey(1l);
|
|
|
}else {
|
|
|
myAmb=ambSystemMapper.selectByPrimaryKey(in.getMyAmbId());
|
|
|
-
|
|
|
}
|
|
|
AmbSystem other=ambSystemMapper.selectByPrimaryKey(in.getOtherAmbId());
|
|
|
AmbInvest ambInvest=new AmbInvest();
|
|
|
@@ -116,7 +115,9 @@ public class AmbInvestServiceImpl extends BaseMybatisDao<AmbInvestMapper> implem
|
|
|
}
|
|
|
params.put("startTime",in.getStartTime());
|
|
|
params.put("endTime",in.getEndTime()+" 23:59:59");
|
|
|
-
|
|
|
+ if (in.getRoleType()==2||in.getRoleType()==3){
|
|
|
+ params.put("ambId",in.getAmbId());
|
|
|
+ }
|
|
|
|
|
|
return findPage("selectInvestList","selectInvestCount",params,in.getPageNo(),in.getPageSize());
|
|
|
}
|