Commit b8c8f3df by duanhq

订单详情新增服务商信息 v 1.3.0

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22756 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 6a09553e
...@@ -41,6 +41,16 @@ public class MerchantInfo implements Serializable{ ...@@ -41,6 +41,16 @@ public class MerchantInfo implements Serializable{
private static final long serialVersionUID = -9112150707570352119L; private static final long serialVersionUID = -9112150707570352119L;
private Integer id; private Integer id;
private String name; private String name;
private String phone;
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Integer getId() { public Integer getId() {
return id; return id;
} }
......
...@@ -1492,6 +1492,17 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1492,6 +1492,17 @@ public class OrderServiceImpl implements IOrderService {
machanicInfo.setPhone(sysUser.getPhoneNumber()); machanicInfo.setPhone(sysUser.getPhoneNumber());
order.setMachanicInfo(machanicInfo); order.setMachanicInfo(machanicInfo);
} }
//服务商信息
if (order.getMerchantId() != null) {
MerchantInfo merchantInfo = new MerchantInfo();
SysUser sysUser = sysUserDao.selectByPrimaryKey(order.getMerchantId());
if(sysUser!=null){
merchantInfo.setId(order.getMechanicId());
merchantInfo.setName(sysUser.getName());
merchantInfo.setPhone(sysUser.getPhoneNumber());
order.setMerchantInfo(merchantInfo);
}
}
// 车辆信息信息 // 车辆信息信息
Integer serId = order.getCarSeries(); Integer serId = order.getCarSeries();
if (serId != null) { if (serId != null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!