Commit 11506763 by zhengxj

finish 参数绑定 on 20190829

by zhengxj 

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23697 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent bc80ce58
...@@ -1516,8 +1516,9 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1516,8 +1516,9 @@ public class OrderServiceImpl implements IOrderService {
} }
// 服务商信息 // 服务商信息
if (order.getMerchantId() != null) { if (order.getMerchantId() != null) {
ServiceInfo serviceInfo = new ServiceInfo(); ServiceInfo serviceInfo = new ServiceInfo();
if (null != order.getMerchantId()) {
SysUser sysUser = sysUserDao.selectByPrimaryKey(order.getMerchantId()); SysUser sysUser = sysUserDao.selectByPrimaryKey(order.getMerchantId());
if (sysUser != null) { if (sysUser != null) {
serviceInfo.setId(order.getMerchantId()); serviceInfo.setId(order.getMerchantId());
...@@ -1527,10 +1528,10 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1527,10 +1528,10 @@ public class OrderServiceImpl implements IOrderService {
&& null != order.getMerchantId()) { && null != order.getMerchantId()) {
serviceInfo.setName(sysUserDao.selectOrgNameByUserId(order.getMerchantId())); serviceInfo.setName(sysUserDao.selectOrgNameByUserId(order.getMerchantId()));
} }
serviceInfo.setContact(sysUser.getName()); serviceInfo.setContact(sysUser.getUsername());
serviceInfo.setPhone(sysUser.getPhoneNumber()); serviceInfo.setPhone(sysUser.getPhoneNumber());
order.setServiceInfo(serviceInfo); order.setServiceInfo(serviceInfo);
}
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!