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
...@@ -18,6 +18,11 @@ public class SysOrderDevice { ...@@ -18,6 +18,11 @@ public class SysOrderDevice {
private String deviceType; private String deviceType;
/**
* 设备类型名称
*/
private String deviceTypeName;
private String installLocation; private String installLocation;
private Integer sort; private Integer sort;
...@@ -70,4 +75,12 @@ public class SysOrderDevice { ...@@ -70,4 +75,12 @@ public class SysOrderDevice {
this.sort = sort; this.sort = sort;
} }
public String getDeviceTypeName() {
return deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -2309,6 +2309,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2309,6 +2309,7 @@ public class OrderServiceImpl implements IOrderService {
oDevice.setOrderId(orderId); oDevice.setOrderId(orderId);
oDevice.setDeviceNo(sysOrderDevice.getDeviceNo()); oDevice.setDeviceNo(sysOrderDevice.getDeviceNo());
oDevice.setDeviceType(sysOrderDevice.getDeviceType()); oDevice.setDeviceType(sysOrderDevice.getDeviceType());
oDevice.setInstallLocation(sysOrderDevice.getInstallLocation());
orderDeviceDao.insertSelective(oDevice); orderDeviceDao.insertSelective(oDevice);
} }
} else if (BizConstants.ORDER_AFTER_SALE_TYPE_REPAIR == afterSaleType) { } else if (BizConstants.ORDER_AFTER_SALE_TYPE_REPAIR == afterSaleType) {
...@@ -2322,6 +2323,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2322,6 +2323,7 @@ public class OrderServiceImpl implements IOrderService {
oDevice.setOrderId(orderId); oDevice.setOrderId(orderId);
oDevice.setDeviceNo(sysOrderDevice.getDeviceNo()); oDevice.setDeviceNo(sysOrderDevice.getDeviceNo());
oDevice.setDeviceType(sysOrderDevice.getDeviceType()); oDevice.setDeviceType(sysOrderDevice.getDeviceType());
oDevice.setInstallLocation(sysOrderDevice.getInstallLocation());
orderDeviceDao.insertSelective(oDevice); orderDeviceDao.insertSelective(oDevice);
} }
} }
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<result column="device_type" jdbcType="VARCHAR" property="deviceType" /> <result column="device_type" jdbcType="VARCHAR" property="deviceType" />
<result column="install_location" jdbcType="VARCHAR" property="installLocation" /> <result column="install_location" jdbcType="VARCHAR" property="installLocation" />
<result column="sort" jdbcType="INTEGER" property="sort" /> <result column="sort" jdbcType="INTEGER" property="sort" />
<result column="deviceTypeName" jdbcType="VARCHAR" property="deviceTypeName" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, order_id, device_no, device_type, install_location, sort id, order_id, device_no, device_type, install_location, sort
...@@ -104,8 +105,10 @@ ...@@ -104,8 +105,10 @@
<select id="getOrderDeviceList" parameterType="com.glsx.ordercenter.pojo.SysOrderDevice" resultMap="BaseResultMap"> <select id="getOrderDeviceList" parameterType="com.glsx.ordercenter.pojo.SysOrderDevice" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> sod.id, sod.order_id, sod.device_no, sod.device_type, sod.install_location, sod.sort,
from sys_order_device 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} where order_id = #{orderId,jdbcType=INTEGER}
order by sort asc, id asc order by sort asc, id asc
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!