Commit 2636be9b by Water Wang

optimize

parent 97f18804
......@@ -2515,14 +2515,14 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
Double goalsPremium = null;
if(time == 2){
if(practitionerId != null){
leadsGoals = mktLeadsGoalsDALService.findByTypeAndTimeUnitAndPractitionerId(2,1,practitionerId);
leadsGoals = mktLeadsGoalsDALService.findByTypeAndTimeUnitAndPractitionerId(1,1,practitionerId);
}else{
leadsGoals = mktLeadsGoalsDALService.findByTypeAndTimeUnitAndSubordinateSystemId(2,1,subordinateSystemId);
}
goalsPremium = (leadsGoals != null && leadsGoals.size() > 0) ? leadsGoals.get(0).getCommission() : null;
}else{
if(practitionerId != null){
leadsGoals = mktLeadsGoalsDALService.findByTypeAndTimeUnitAndPractitionerId(2,3,practitionerId);
leadsGoals = mktLeadsGoalsDALService.findByTypeAndTimeUnitAndPractitionerId(1,3,practitionerId);
}else{
leadsGoals = mktLeadsGoalsDALService.findByTypeAndTimeUnitAndSubordinateSystemId(2,3,subordinateSystemId);
}
......
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