|
|
@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.kms.common.utils.UserUtils; |
|
|
|
import com.kms.yg.df.domain.BsSgcDfManateam; |
|
|
|
import com.kms.yg.df.service.BsSgcDfManateamService; |
|
|
|
import com.kms.yxgh.df.domain.DfCheckingV2ProjectManage; |
|
|
|
import com.kms.yxgh.df.service.DfCheckingV2Service; |
|
|
|
import com.kms.yxgh.dw.domain.DwCheckingV2ProjectItem; |
|
|
|
import com.kms.yxgh.dw.domain.DwCheckingV2ProjectManage; |
|
|
@ -211,14 +212,11 @@ public class DwCheckingV2Service extends BaseService<DwCheckingV2Mapper, DwCheck |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public boolean myRemove(String[] ids) { |
|
|
|
if (null != ids && ids.length > 0) { |
|
|
|
int count = dwTaskV2Service.count(new LambdaQueryWrapper<DwTaskV2Manage>().in(DwTaskV2Manage::getCheckingId, getIntList(ids))); |
|
|
|
int count = count(new LambdaQueryWrapper<DwCheckingV2ProjectManage>().in(DwCheckingV2ProjectManage::getId, getIntList(ids))); |
|
|
|
if (count > 0) { |
|
|
|
throw new RuntimeException("请先删除子项"); |
|
|
|
} |
|
|
|
dwTaskV2Service.remove(new LambdaQueryWrapper<DwTaskV2Manage>() |
|
|
|
.in(DwTaskV2Manage::getCheckingId, getIntList(ids))); |
|
|
|
return remove(new LambdaQueryWrapper<DwCheckingV2ProjectManage>() |
|
|
|
.in(DwCheckingV2ProjectManage::getId, getIntList(ids))); |
|
|
|
return removeById(ids); |
|
|
|
} |
|
|
|
return Boolean.FALSE; |
|
|
|
} |
|
|
|