Commit 06c945d6 by huluobin

bug fix

parent e3c9475c
...@@ -169,6 +169,11 @@ public class CareerCmdServiceImpl implements CareerCmdService { ...@@ -169,6 +169,11 @@ public class CareerCmdServiceImpl implements CareerCmdService {
@Override @Override
public Career career(Integer technicianId) { public Career career(Integer technicianId) {
return careerMapper.selectOne(new LambdaQueryWrapper<Career>().eq(Career::getTechnicianId, technicianId)); Career career = careerMapper.selectOne(new LambdaQueryWrapper<Career>().eq(Career::getTechnicianId, technicianId));
if (career == null) {
career = new Career();
career.setTechnicianId(technicianId);
}
return career;
} }
} }
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