Commit def8cff1 by yuanlin

提交包活干检修安装拆除审核驳回 finished by yuanlin

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26753 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 37e4dbb1
......@@ -915,7 +915,7 @@ public class OrderController extends BaseController {
List<SysOrderDevice> orderDeviceList = orderDeviceService.getOrderDeviceList(orderDevice);
for(SysOrderDevice sysOrderDevice : orderDeviceList){
//如果是正常设备不需要返回
if(sysOrderDevice.getRepairType() == 4){
if(sysOrderDevice.getRepairType() != null && sysOrderDevice.getRepairType() == 4){
continue;
}
SysOrderDeviceSupplier supplierByType = orderService.getSupplierByType(id, sysOrderDevice.getDeviceType(),sysOrderDevice.getSort());
......
......@@ -185,11 +185,7 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService {
operatorOrder.setServiceCode(serviceCode);
repairOrderReq.setDevList(devices);
//如果安装单是空 直接生成检修单
SysOrder sysOrder = addDSCOrderRepair(operatorOrder, repairOrderReq, BizConstants.CREATE_ORDER_NO_NORMSAL,normalDevice.getDevType());
if (sysOrder != null) {
//添加检修记录
addRepairRecord(sysOrder.getId(), orderList, 2);
}
addDSCOrderRepair(operatorOrder, repairOrderReq, BizConstants.CREATE_ORDER_NO_NORMSAL,normalDevice.getDevType());
devices.clear();
}
logger.info("插入正常检修单完成"+operatorOrder.getOrderSn());
......@@ -566,8 +562,6 @@ public class DaSouCheOrderServiceImpl implements DaSouCheOrderService {
} else if (repairType == BizConstants.ORDER_REPAIR_ADD) {
//增加订单进度
recordOrderStatus(sysOrder, BizConstants.ORDER_REPAIR_ADD,wireLine,wireLess,tiny,"检修照片地址:"+images.toString(),faultList.toString());
} else if(repairType == BizConstants.ORDER_REPAIR_NORMAL){
recordOrderStatus(sysOrder, BizConstants.ORDER_REPAIR_NORMAL,wireLine,wireLess,tiny,"检修照片地址:"+images.toString(),faultList.toString());
}
//添加设备组合
addSysOrderDevice(sysOrder, repairOrderReq,repairType);
......
......@@ -1403,7 +1403,7 @@
and sos.id IS NULL
</when>
</choose>
and so.order_type != 4
and so.order_type != 4 and so.order_type != 5
GROUP BY so.id
order by so.create_time desc
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!