|
|
@ -188,12 +188,12 @@ public class ProWhiteOrderServiceImpl implements IProWhiteOrderService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@DS("#header.poolName")
|
|
|
|
@DS("#header.poolName")
|
|
|
|
public AjaxResult deleteProOrderByIds(String[] ids) {
|
|
|
|
public AjaxResult deleteProOrderByIds(String[] ids) {
|
|
|
|
|
|
|
|
// 校验逻辑
|
|
|
|
for (String id : ids) {
|
|
|
|
for (String id : ids) {
|
|
|
|
// 通过母订单查询自定单list
|
|
|
|
// 通过母订单查询自定单list
|
|
|
|
String[] orderIds = proOrderMapper.selectOrderIdByParentOrder(id);
|
|
|
|
String[] orderIds = proOrderMapper.selectOrderIdByParentOrder(id);
|
|
|
|
// 通过子订单id列表查询
|
|
|
|
// 通过子订单id列表查询
|
|
|
|
for (String orderId : orderIds) {
|
|
|
|
for (String orderId : orderIds) {
|
|
|
|
|
|
|
|
|
|
|
|
List<ProOrderWorkorder> proOrderWorkorderList = proOrderWorkorderMapper.selectProOrderWorkorderByOrderId(orderId);
|
|
|
|
List<ProOrderWorkorder> proOrderWorkorderList = proOrderWorkorderMapper.selectProOrderWorkorderByOrderId(orderId);
|
|
|
|
if (proOrderWorkorderList.size() > 0) {
|
|
|
|
if (proOrderWorkorderList.size() > 0) {
|
|
|
|
for (ProOrderWorkorder workOrder : proOrderWorkorderList) {
|
|
|
|
for (ProOrderWorkorder workOrder : proOrderWorkorderList) {
|
|
|
@ -208,15 +208,22 @@ public class ProWhiteOrderServiceImpl implements IProWhiteOrderService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 删除逻辑
|
|
|
|
// 删除逻辑
|
|
|
|
|
|
|
|
for (String id : ids) {
|
|
|
|
|
|
|
|
String[] orderIds = proOrderMapper.selectOrderIdByParentOrder(id);
|
|
|
|
|
|
|
|
for (String orderId : orderIds) {
|
|
|
|
|
|
|
|
List<ProOrderWorkorder> proOrderWorkorderList = proOrderWorkorderMapper.selectProOrderWorkorderByOrderId(orderId);
|
|
|
|
if (proOrderWorkorderList.size() > 0) {
|
|
|
|
if (proOrderWorkorderList.size() > 0) {
|
|
|
|
for (ProOrderWorkorder workorder : proOrderWorkorderList) {
|
|
|
|
for (ProOrderWorkorder workOrder : proOrderWorkorderList) {
|
|
|
|
// 删除批次信息
|
|
|
|
// 删除批次信息
|
|
|
|
proOrderWorkorderBatchMapper.deleteProOrderWorkorderBatchByWorkorderId(workorder.getWorkorderId());
|
|
|
|
proOrderWorkorderBatchMapper.deleteProOrderWorkorderBatchByWorkorderId(workOrder.getWorkorderId());
|
|
|
|
// 删除湿料详情
|
|
|
|
// 删除湿料详情
|
|
|
|
proWetMaterialPlanDetailMapper.deleteProWetMaterialPlanDetailByWorkId(workorder.getWorkorderId());
|
|
|
|
proWetMaterialPlanDetailMapper.deleteProWetMaterialPlanDetailByWorkId(workOrder.getWorkorderId());
|
|
|
|
// 删除工单
|
|
|
|
// 删除工单
|
|
|
|
proOrderWorkorderMapper.deleteProOrderWorkorderByWorkorderId(workorder.getWorkorderId());
|
|
|
|
proOrderWorkorderMapper.deleteProOrderWorkorderByWorkorderId(workOrder.getWorkorderId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|