Commit cf9733f6 by zhanghj

V1.5.0--优化和修复售后接口

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24631 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 86ec8ce5
......@@ -17,6 +17,11 @@ public class SysOrderDevice {
private String deviceNo;
private String deviceType;
/**
* 设备类型名称
*/
private String deviceTypeName;
private String installLocation;
......@@ -69,5 +74,13 @@ public class SysOrderDevice {
public void setSort(Integer sort) {
this.sort = sort;
}
public String getDeviceTypeName() {
return deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
}
\ No newline at end of file
......@@ -2309,6 +2309,7 @@ public class OrderServiceImpl implements IOrderService {
oDevice.setOrderId(orderId);
oDevice.setDeviceNo(sysOrderDevice.getDeviceNo());
oDevice.setDeviceType(sysOrderDevice.getDeviceType());
oDevice.setInstallLocation(sysOrderDevice.getInstallLocation());
orderDeviceDao.insertSelective(oDevice);
}
} else if (BizConstants.ORDER_AFTER_SALE_TYPE_REPAIR == afterSaleType) {
......@@ -2322,6 +2323,7 @@ public class OrderServiceImpl implements IOrderService {
oDevice.setOrderId(orderId);
oDevice.setDeviceNo(sysOrderDevice.getDeviceNo());
oDevice.setDeviceType(sysOrderDevice.getDeviceType());
oDevice.setInstallLocation(sysOrderDevice.getInstallLocation());
orderDeviceDao.insertSelective(oDevice);
}
}
......
......@@ -8,6 +8,7 @@
<result column="device_type" jdbcType="VARCHAR" property="deviceType" />
<result column="install_location" jdbcType="VARCHAR" property="installLocation" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="deviceTypeName" jdbcType="VARCHAR" property="deviceTypeName" />
</resultMap>
<sql id="Base_Column_List">
id, order_id, device_no, device_type, install_location, sort
......@@ -104,8 +105,10 @@
<select id="getOrderDeviceList" parameterType="com.glsx.ordercenter.pojo.SysOrderDevice" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sys_order_device
sod.id, sod.order_id, sod.device_no, sod.device_type, sod.install_location, sod.sort,
sdd.data_value as deviceTypeName
from sys_order_device sod
LEFT JOIN sys_dict_data sdd ON sod.device_type = sdd.data_key
where order_id = #{orderId,jdbcType=INTEGER}
order by sort asc, id asc
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!