|
|
@@ -1,6 +1,8 @@
|
|
|
package com.ktg.iscs.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.lang.Assert;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.ktg.common.core.text.Convert;
|
|
|
import com.ktg.common.utils.DateUtils;
|
|
|
import com.ktg.iscs.domain.TestIscs;
|
|
|
import com.ktg.iscs.mapper.TestIscsMapper;
|
|
|
@@ -8,13 +10,14 @@ import com.ktg.iscs.service.ITestIscsService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 测试用Service业务层处理
|
|
|
*
|
|
|
* @author yinjinlu
|
|
|
- * @date 2024-10-14
|
|
|
+ * @date 2024-10-15
|
|
|
*/
|
|
|
@Service
|
|
|
public class TestIscsServiceImpl extends ServiceImpl<TestIscsMapper, TestIscs> implements ITestIscsService
|
|
|
@@ -79,9 +82,13 @@ public class TestIscsServiceImpl extends ServiceImpl<TestIscsMapper, TestIscs> i
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int deleteTestIscsByIds(Long[] ids)
|
|
|
+ public int deleteTestIscsByIds(String ids)
|
|
|
{
|
|
|
- return testIscsMapper.deleteTestIscsByIds(ids);
|
|
|
+ Assert.notBlank(ids, "请选择需要删除的数据!");
|
|
|
+ Long[] longIds = Convert.toLongArray(ids);
|
|
|
+ boolean b = removeBatchByIds(Arrays.asList(longIds));
|
|
|
+ return 1;
|
|
|
+ // return testIscsMapper.deleteTestIscsByIds(longIds);
|
|
|
}
|
|
|
|
|
|
/**
|