|
|
@@ -14,6 +14,7 @@ import com.railway.common.utils.bean.BeanUtils;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
@@ -24,8 +25,8 @@ import org.springframework.util.CollectionUtils;
|
|
|
* @author lijie
|
|
|
* @date 2021/12/04
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
-@Transactional(readOnly = true)
|
|
|
public class SecScheduledServiceImpl implements ISecScheduledService {
|
|
|
|
|
|
private final SecScheduledMapper secScheduledMapper;
|
|
|
@@ -122,7 +123,6 @@ public class SecScheduledServiceImpl implements ISecScheduledService {
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public int delTools(SecScheduledToolVo secScheduled) {
|
|
|
-
|
|
|
if (secScheduledToolMapper.checkdel(secScheduled) != 1) {
|
|
|
return secScheduledToolMapper.delete(secScheduled);
|
|
|
} else {
|