Commit 77c4e6fb by sdif

陪诊员详情工作年限

parent 49806c7c
......@@ -246,6 +246,10 @@ public class EmployeesServiceImpl implements IEmployeesService {
*/
@Override
public EmployeesVo queryByApp(Integer id) {
// 获取当前日期
LocalDate currentDate = LocalDate.now();
// 获取当前年份
int year = currentDate.getYear();
EmployeesVo employeesVo = baseMapper.selectEmployeesById(id);
if(null != employeesVo){
List<TotalOrderVo> totalOrder = totalOrderMapper.selectVoList(Wrappers.<TotalOrder>lambdaQuery()
......@@ -260,6 +264,7 @@ public class EmployeesServiceImpl implements IEmployeesService {
}
}
}
employeesVo.setWrokYear(year - Integer.parseInt(employeesVo.getStartYear()));
employeesVo.setTotalOrderVo(totalOrder);
}
return employeesVo;
......
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