|
|
@@ -137,6 +137,7 @@ public class AmbInvestServiceImpl extends BaseMybatisDao<AmbInvestMapper> implem
|
|
|
}
|
|
|
params.put("startTime",in.getStartTime());
|
|
|
params.put("endTime",in.getEndTime()+" 23:59:59");
|
|
|
+ params.put("status",in.getStatus());
|
|
|
if (in.getRoleType()==2||in.getRoleType()==3){
|
|
|
params.put("ambId",in.getAmbId());
|
|
|
}
|
|
|
@@ -188,6 +189,7 @@ public class AmbInvestServiceImpl extends BaseMybatisDao<AmbInvestMapper> implem
|
|
|
if (myAmb.getId()==1L){
|
|
|
newMy.setForeign(myAmb.getForeign().add(ambInvest.getAmount()));
|
|
|
}else {
|
|
|
+ newMy.setForeign(myAmb.getForeign().add(ambInvest.getAmount()));
|
|
|
newMy.setTotalAmount(myAmb.getTotalAmount().subtract(ambInvest.getAmount()));
|
|
|
newMy.setSurplus(myAmb.getSurplus().subtract(ambInvest.getAmount()));
|
|
|
}
|