Commit 6fdfc841 by 丁伟峰

年龄如果获取不到,填写0

1 parent 7f8a7f8f
......@@ -186,8 +186,12 @@ public class OrderCreateServiceImpl implements OrderCreateService {
oa.setEngineerCode(assignEngineerCode);
EngineerInfoEntity engineerInfo = engineerInfoDao.getByEngineerCode(assignEngineerCode);
oa.setEngineerName(engineerInfo.getName());
int age = (int)DateUtils.getAge(engineerInfo.getBirth());
oa.setEngineerAge(age);
if(StringUtils.isNotBlank(engineerInfo.getBirth())) {
int age = (int) DateUtils.getAge(engineerInfo.getBirth());
oa.setEngineerAge(age);
} else {
oa.setEngineerAge(0);
}
oa.setEngineerPhone(engineerInfo.getPhone());
oa.setPreStatus("VIRTUAL");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!