|
@@ -6,6 +6,7 @@ import org.springframework.stereotype.Service;
|
|
|
import tech.powerjob.work.entity.ShorelineManageInfo;
|
|
|
import tech.powerjob.work.mapper.ShorelineManageInfoMapper;
|
|
|
import tech.powerjob.work.service.ShorelineManageInfoService;
|
|
|
+import tech.powerjob.work.util.ReturnMsg;
|
|
|
import tech.powerjob.worker.core.processor.ProcessResult;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -39,10 +40,10 @@ public class ShorelineManageInfoServiceImpl extends ServiceImpl<ShorelineManageI
|
|
|
boolean updated = this.updateBatchById(shorelineManageInfos);
|
|
|
if (updated) {
|
|
|
log.info("本次更新数据内容{}", shorelineManageInfos);
|
|
|
- return new ProcessResult(true,"更新完成");
|
|
|
+ return ReturnMsg.returnMsg(true,"更新成功");
|
|
|
} else {
|
|
|
log.error("更新失败");
|
|
|
- return new ProcessResult(false,"更新失败");
|
|
|
+ return ReturnMsg.returnMsg(false,"更新失败");
|
|
|
}
|
|
|
}
|
|
|
}
|