Commit 38392ed1 by yao.xiao

修改-Calendar获得月份加1

parent 7b61dd23
......@@ -2025,7 +2025,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
Calendar c = Calendar.getInstance();
c.setTime(leadsAssigneds.getTimeToClose());
int timeToCloseMonth = c.get(Calendar.MONTH);
int timeToCloseMonth = c.get(Calendar.MONTH)+1;
if (Arrays.asList(quarter).contains(timeToCloseMonth)){
defaultPieces += leadsAssigneds.getPieces();
defaultCommission = defaultCommission.add(leadsAssigneds.getFyc());
......
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