|
@@ -7,6 +7,7 @@ import java.util.List;
|
|
|
|
|
|
import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
|
|
|
import com.jeeplus.modules.sg.managementcenter.project.mapper.ProjectMapper;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -21,6 +22,8 @@ import com.jeeplus.core.service.CrudService;
|
|
|
@Service
|
|
|
@Transactional(readOnly = true)
|
|
|
public class ProjectService extends CrudService<ProjectMapper, Project> {
|
|
|
+ @Autowired
|
|
|
+ private ProjectMapper projectMapper;
|
|
|
|
|
|
public Project get(String id) {
|
|
|
return super.get(id);
|
|
@@ -43,5 +46,10 @@ public class ProjectService extends CrudService<ProjectMapper, Project> {
|
|
|
public void delete(Project project) {
|
|
|
super.delete(project);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ @Transactional
|
|
|
+ public void updateStatus(String status){
|
|
|
+ projectMapper.updateStatus(status);
|
|
|
+ }
|
|
|
+
|
|
|
}
|