解绑问题
This commit is contained in:
parent
2b64cbfa17
commit
43ecf26853
|
|
@ -56,15 +56,15 @@ public class MaintenanceGangServiceImpl implements MaintenanceGangService {
|
|||
|
||||
@Override
|
||||
public int deleteByIds(MaintenanceGang bean) {
|
||||
int i = 0;
|
||||
int i = 1;
|
||||
if(StringHelper.isNotEmpty(bean.getType())){
|
||||
if("1".equals(bean.getType())){
|
||||
i = MaintenanceGangMapper.deleteByIds(bean.getTypeIds());
|
||||
MaintenanceGangMapper.deleteByIds(bean.getTypeIds());
|
||||
}else{
|
||||
if(StringHelper.isNotEmpty(bean.getTypeIds())){
|
||||
List<MaintenanceGang> list = new ArrayList<>();
|
||||
String[] splitTypeIds = bean.getTypeIds().split("@");
|
||||
i = MaintenanceGangMapper.deleteByIdsAll(splitTypeIds);
|
||||
MaintenanceGangMapper.deleteByIdsAll(splitTypeIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,15 +58,15 @@ public class WarehouseKeeperServiceImpl implements WarehouseKeeperService {
|
|||
|
||||
@Override
|
||||
public int deleteByIds(WarehouseKeeper bean) {
|
||||
int i = 0;
|
||||
int i = 1;
|
||||
if(StringHelper.isNotEmpty(bean.getType())){
|
||||
if("1".equals(bean.getType())){
|
||||
i = warehouseKeeperMapper.deleteByIds(bean.getTypeIds());
|
||||
warehouseKeeperMapper.deleteByIds(bean.getTypeIds());
|
||||
}else{
|
||||
if(StringHelper.isNotEmpty(bean.getTypeIds())){
|
||||
List<WarehouseKeeper> list = new ArrayList<>();
|
||||
String[] splitTypeIds = bean.getTypeIds().split("@");
|
||||
i = warehouseKeeperMapper.deleteByIdsAll(splitTypeIds);
|
||||
warehouseKeeperMapper.deleteByIdsAll(splitTypeIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue