|
|
@@ -19,14 +19,16 @@ package org.springblade.los.box.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import org.springblade.core.secure.utils.AuthUtil;
|
|
|
+import org.springblade.core.tool.api.R;
|
|
|
+import org.springblade.core.tool.utils.Func;
|
|
|
import org.springblade.los.box.entity.ArchivesTrajectory;
|
|
|
import org.springblade.los.box.mapper.ArchivesTrajectoryMapper;
|
|
|
import org.springblade.los.box.service.IArchivesTrajectoryService;
|
|
|
import org.springblade.los.box.vo.ArchivesTrajectoryVO;
|
|
|
-import org.springblade.core.tool.api.R;
|
|
|
-import org.springblade.core.tool.utils.Func;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -58,4 +60,18 @@ public class ArchivesTrajectoryServiceImpl extends ServiceImpl<ArchivesTrajector
|
|
|
return R.data("操作成功");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public R updateTrajectoryStatus(String id, String type) {
|
|
|
+ if (ObjectUtils.isNull(id)) {
|
|
|
+ throw new RuntimeException("缺少必要请求参数");
|
|
|
+ }
|
|
|
+ ArchivesTrajectory trajectory = baseMapper.selectById(id);
|
|
|
+ trajectory.setTrajectoryStatus(type);
|
|
|
+ trajectory.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ trajectory.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ trajectory.setUpdateTime(new Date());
|
|
|
+ baseMapper.updateById(trajectory);
|
|
|
+ return R.success("操作成功");
|
|
|
+ }
|
|
|
+
|
|
|
}
|