Commit fcc0464e by 刘鑫

fix(自有工程师工作地址): 工程师信息表新增工作地址经纬度信息

1 parent 4e2b9dd7
......@@ -244,7 +244,6 @@ public class BeanRemoteServiceImpl {
engineerInfo.setGender(userDetailInfo.getGender());
engineerInfo.setBirth(StringUtils.isBlank(userDetailInfo.getBirthday()) ? "" : getYear(userDetailInfo.getBirthday()));
engineerInfo.setAddress("");
engineerInfo.setPhone(userDetailInfo.getCellPhone());
engineerInfo.setKind(1 == userDetailInfo.getPartTimeRepair() ? 2 : 1);
engineerInfo.setGrade(Objects.isNull(userDetailInfo.getGrade()) ? "" : userDetailInfo.getGrade());
......@@ -256,7 +255,10 @@ public class BeanRemoteServiceImpl {
//fixme 工作地址存贮
if (Objects.nonNull(address)) {
engineerInfo.setAddress(address.getAddress());
engineerInfo.setWorkAddress(address.getAddress());
engineerInfo.setWorkX(Objects.isNull(address.getLongitude()) ? "" : String.valueOf(address.getLongitude()));
engineerInfo.setWorkY(Objects.isNull(address.getLatitude()) ? "" : String.valueOf(address.getLatitude()));
} else {
engineerInfo.setWorkAddress("");
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!