|
@@ -6,6 +6,7 @@ import org.springframework.stereotype.Service;
|
|
|
import tech.powerjob.work.mapper.PortDrawFlashMapper;
|
|
|
import tech.powerjob.work.service.PortDrawFlashService;
|
|
|
import tech.powerjob.work.util.DateUtils;
|
|
|
+import tech.powerjob.work.util.ReturnMsg;
|
|
|
import tech.powerjob.worker.core.processor.ProcessResult;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -24,11 +25,11 @@ public class PortDrawFlashServiceImpl implements PortDrawFlashService {
|
|
|
List<String> drawIds = portDrawFlashMapper.getAllNeedRemoveData();
|
|
|
if (drawIds.isEmpty()){
|
|
|
log.info(DateUtils.dateToString(new Date(), "yyyy-MM-dd HH:mm:SS") + "不需要移除港区陆域数据");
|
|
|
- return new ProcessResult(true,"无需删除");
|
|
|
+ return ReturnMsg.returnMsg(true,"无需删除");
|
|
|
}else {
|
|
|
log.info(DateUtils.dateToString(new Date(), "yyyy-MM-dd HH:mm:SS") + "移除的港区陆域数据为{}", drawIds);
|
|
|
portDrawFlashMapper.removeAllByIds(drawIds);
|
|
|
- return new ProcessResult(true,"删除成功");
|
|
|
+ return ReturnMsg.returnMsg(true,"删除成功");
|
|
|
}
|
|
|
}
|
|
|
}
|