|
|
@@ -11,6 +11,7 @@ import com.ningdatech.basic.function.VUtils; |
|
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
|
import com.ningdatech.pmapi.common.constant.CommonConst; |
|
|
|
import com.ningdatech.pmapi.common.enumeration.CommonEnum; |
|
|
|
import com.ningdatech.pmapi.common.helper.UserInfoHelper; |
|
|
|
import com.ningdatech.pmapi.performance.enumration.PerformanceTemplateTypeEnum; |
|
|
|
import com.ningdatech.pmapi.performance.model.dto.PerformanceIndicatorProjectTemplateSaveDTO; |
|
|
|
import com.ningdatech.pmapi.performance.model.dto.ProjectTemplateDetailDTO; |
|
|
@@ -19,8 +20,10 @@ import com.ningdatech.pmapi.performance.model.entity.PerformanceIndicatorProject |
|
|
|
import com.ningdatech.pmapi.performance.model.req.PerformanceAppraisalListReq; |
|
|
|
import com.ningdatech.pmapi.performance.model.vo.ProjectIndexTemplateVO; |
|
|
|
import com.ningdatech.pmapi.performance.model.vo.ProjectTemplateDetailVO; |
|
|
|
import com.ningdatech.pmapi.performance.service.IPerformanceAppraisalProjectIndicatorService; |
|
|
|
import com.ningdatech.pmapi.performance.service.IPerformanceIndicatorProjectTemplateDetailService; |
|
|
|
import com.ningdatech.pmapi.performance.service.IPerformanceIndicatorProjectTemplateService; |
|
|
|
import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; |
|
|
|
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails; |
|
|
|
import com.ningdatech.pmapi.user.util.LoginUserUtil; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
@@ -47,8 +50,8 @@ import java.util.stream.Collectors; |
|
|
|
@AllArgsConstructor |
|
|
|
public class IndicatorConfigManage { |
|
|
|
private final IPerformanceIndicatorProjectTemplateService indicatorProjectTemplateService; |
|
|
|
|
|
|
|
private final IPerformanceIndicatorProjectTemplateDetailService indicatorProjectTemplateDetailService; |
|
|
|
private final IPerformanceAppraisalProjectIndicatorService projectIndicatorService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 模板列表 |
|
|
@@ -324,6 +327,8 @@ public class IndicatorConfigManage { |
|
|
|
newTemplate.setCreateBy(user.getUsername()); |
|
|
|
newTemplate.setUpdateOn(LocalDateTime.now()); |
|
|
|
newTemplate.setUpdateBy(user.getUsername()); |
|
|
|
// 副本ID要置空 |
|
|
|
newTemplate.setId(null); |
|
|
|
if (indicatorProjectTemplateService.save(newTemplate)) { |
|
|
|
// 新增指标详情 |
|
|
|
List<PerformanceIndicatorProjectTemplateDetail> projectTemplateDetails = indicatorProjectTemplateDetailService.list(Wrappers.lambdaQuery(PerformanceIndicatorProjectTemplateDetail.class) |
|
|
@@ -337,6 +342,8 @@ public class IndicatorConfigManage { |
|
|
|
newProjectTemplateDetail.setCreateBy(user.getUsername()); |
|
|
|
newProjectTemplateDetail.setUpdateOn(LocalDateTime.now()); |
|
|
|
newProjectTemplateDetail.setUpdateBy(user.getUsername()); |
|
|
|
// 新的指标ID要置空 |
|
|
|
newProjectTemplateDetail.setId(null); |
|
|
|
indicatorProjectTemplateDetailService.save(newProjectTemplateDetail); |
|
|
|
} |
|
|
|
return "模版复制成功"; |
|
|
@@ -345,7 +352,8 @@ public class IndicatorConfigManage { |
|
|
|
} |
|
|
|
|
|
|
|
public PageVo<ProjectIndexTemplateVO> projectIndexList(PerformanceAppraisalListReq req) { |
|
|
|
|
|
|
|
UserInfoDetails user = LoginUserUtil.loginUserDetail(); |
|
|
|
Page<Object> page = req.page(); |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |