Commit b6a82ec5 by duanhq

设备详情列表修改 v 1.2.0

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22021 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent bac4fd3b
......@@ -169,6 +169,9 @@ public class OrderServiceImpl implements IOrderService {
@Autowired
private DeviceRepertoryService deviceRepertoryService;
@Autowired
private SysIndentMapper sysIndentMapper;
/**
*
*/
......@@ -1581,12 +1584,12 @@ public class OrderServiceImpl implements IOrderService {
SysDevice device = sysDeviceList.get(0);
//设备关联的订单未确认收货不允许激活
// SysIndent sysIndent = sysIndentMapper.getByUserIdAndDeviceNo(userId,device.getDeviceNo());
// if(sysIndent == null ||
// sysIndent.getIndentStatus() != IndentStatusEnum.INDENT_COMPLETE.getIndentStatus() ){
// return new ResultObject(ResultCodeEnum.DEVICE_NOT_RECEIVE.getCode(),ResultCodeEnum.DEVICE_NOT_RECEIVE.getMsg());
// }
//设备关联的订单未确认收货不允许激活
SysIndent sysIndent = sysIndentMapper.getByUserIdAndDeviceNo(userId,device.getDeviceNo());
if(sysIndent == null ||
sysIndent.getIndentStatus() != IndentStatusEnum.INDENT_COMPLETE.getIndentStatus() ){
return new ResultObject(ResultCodeEnum.DEVICE_NOT_RECEIVE.getCode(),ResultCodeEnum.DEVICE_NOT_RECEIVE.getMsg());
}
//已激活设备无法被激活
if(device.getDeviceStatus() == Constants.DEVICE_STATUS_ISACTIVE){
......
......@@ -309,7 +309,9 @@
FROM
sys_device sd
LEFT JOIN sys_dict_data sdd ON sd.device_type = sdd.data_key
WHERE sd.user_id = #{userId}
LEFT JOIN sys_indent si ON sd.indent_no = si.indent_no
WHERE si.indent_status = 50
AND sd.user_id = #{userId}
<if test="deviceNo != null">
and sd.device_no LIKE "%"#{deviceNo}"%"
</if>
......@@ -332,7 +334,9 @@
sys_device sd
LEFT JOIN sys_user su ON sd.user_id = su.id
LEFT JOIN sys_dict_data sdd ON sd.device_type = sdd.data_key
WHERE
LEFT JOIN sys_indent si ON sd.indent_no = si.indent_no
WHERE si.indent_status = 50
AND
sd.user_id IN (
select
ssm.mechanic_id
......@@ -361,7 +365,9 @@
FROM
sys_device sd
LEFT JOIN sys_dict_data sdd ON sd.device_type = sdd.data_key
WHERE sd.user_id = #{userId}
LEFT JOIN sys_indent si ON sd.indent_no = si.indent_no
WHERE si.indent_status = 50
AND sd.user_id = #{userId}
<if test="deviceNo != null">
and sd.device_no LIKE "%"#{deviceNo}"%"
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!