| 
															
																@@ -11,6 +11,7 @@ import com.huaxu.util.UserUtil; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import io.swagger.annotations.Api; 
															 | 
															
															 | 
															
																 import io.swagger.annotations.Api; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import io.swagger.annotations.ApiOperation; 
															 | 
															
															 | 
															
																 import io.swagger.annotations.ApiOperation; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import io.swagger.annotations.ApiParam; 
															 | 
															
															 | 
															
																 import io.swagger.annotations.ApiParam; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+import org.springframework.beans.BeanUtils; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.springframework.beans.factory.annotation.Autowired; 
															 | 
															
															 | 
															
																 import org.springframework.beans.factory.annotation.Autowired; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.springframework.stereotype.Controller; 
															 | 
															
															 | 
															
																 import org.springframework.stereotype.Controller; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.springframework.validation.annotation.Validated; 
															 | 
															
															 | 
															
																 import org.springframework.validation.annotation.Validated; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -48,10 +49,12 @@ public class EvaluationCycleController { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             @RequestParam(required = false) Long companyOrgId) { 
															 | 
															
															 | 
															
																             @RequestParam(required = false) Long companyOrgId) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         IPage<EvaluationCycleEntity> iPage = new Page<>(pageNum, pageSize); 
															 | 
															
															 | 
															
																         IPage<EvaluationCycleEntity> iPage = new Page<>(pageNum, pageSize); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         EvaluationCycleEntity entity = new EvaluationCycleEntity(); 
															 | 
															
															 | 
															
																         EvaluationCycleEntity entity = new EvaluationCycleEntity(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        if (type != null && type.trim() != "") 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        if (type != null && type.trim() != "") { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             entity.setType(Integer.valueOf(type)); 
															 | 
															
															 | 
															
																             entity.setType(Integer.valueOf(type)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        if (companyOrgId != null) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        if (companyOrgId != null) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             entity.setCompanyOrgId(companyOrgId.intValue()); 
															 | 
															
															 | 
															
																             entity.setCompanyOrgId(companyOrgId.intValue()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         iPage = evaluationCycleService.findPage(iPage, entity); 
															 | 
															
															 | 
															
																         iPage = evaluationCycleService.findPage(iPage, entity); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         Pagination<EvaluationCycleEntity> pages = new Pagination<>(iPage); 
															 | 
															
															 | 
															
																         Pagination<EvaluationCycleEntity> pages = new Pagination<>(iPage); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         return new AjaxMessage<>(ResultStatus.OK, pages); 
															 | 
															
															 | 
															
																         return new AjaxMessage<>(ResultStatus.OK, pages); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -66,17 +69,19 @@ public class EvaluationCycleController { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         boolean isOk = true; 
															 | 
															
															 | 
															
																         boolean isOk = true; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         List<EvaluationCycleEntity> evaluationCycleEntities = new ArrayList<>(); 
															 | 
															
															 | 
															
																         List<EvaluationCycleEntity> evaluationCycleEntities = new ArrayList<>(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         for (Integer companyOrgId : evaluationCycle.getCompanyOrgIds()) { 
															 | 
															
															 | 
															
																         for (Integer companyOrgId : evaluationCycle.getCompanyOrgIds()) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            evaluationCycle.setCompanyOrgId(companyOrgId); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            EvaluationCycleEntity item= new EvaluationCycleEntity(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            BeanUtils.copyProperties(evaluationCycle,item); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            item.setCompanyOrgId(companyOrgId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             if (currentUser != null) { 
															 | 
															
															 | 
															
																             if (currentUser != null) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                evaluationCycle.setUpdateBy(currentUser.getUsername()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                evaluationCycle.setCreateBy(currentUser.getUsername()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                evaluationCycle.setDateCreate(new Date()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                evaluationCycle.setDateUpdate(new Date()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                evaluationCycle.setTenantId(currentUser.getTenantId()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                item.setUpdateBy(currentUser.getUsername()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                item.setCreateBy(currentUser.getUsername()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                item.setDateCreate(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                item.setDateUpdate(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                item.setTenantId(currentUser.getTenantId()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             } 
															 | 
															
															 | 
															
																             } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            evaluationCycle.setStatus(1); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            evaluationCycleEntities.add(evaluationCycle); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            List<EvaluationCycleEntity> list = evaluationCycleService.findList(evaluationCycle); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            item.setStatus(1); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            evaluationCycleEntities.add(item); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            List<EvaluationCycleEntity> list = evaluationCycleService.findList(item); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             if (list.size() > 0) { 
															 | 
															
															 | 
															
																             if (list.size() > 0) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 isOk = false; 
															 | 
															
															 | 
															
																                 isOk = false; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 break; 
															 | 
															
															 | 
															
																                 break; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -109,9 +114,10 @@ public class EvaluationCycleController { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             evaluationCycle.setUpdateBy(currentUser.getUsername()); 
															 | 
															
															 | 
															
																             evaluationCycle.setUpdateBy(currentUser.getUsername()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             evaluationCycle.setDateUpdate(new Date()); 
															 | 
															
															 | 
															
																             evaluationCycle.setDateUpdate(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         } 
															 | 
															
															 | 
															
																         } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        EvaluationCycleEntity itemCycle = evaluationCycleService.findEvaluationCycleById(evaluationCycle.getId()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         EvaluationCycleEntity evaluationCycleEntity = new EvaluationCycleEntity(); 
															 | 
															
															 | 
															
																         EvaluationCycleEntity evaluationCycleEntity = new EvaluationCycleEntity(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         evaluationCycleEntity.setType(evaluationCycle.getType()); 
															 | 
															
															 | 
															
																         evaluationCycleEntity.setType(evaluationCycle.getType()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        evaluationCycleEntity.setCompanyOrgId(evaluationCycle.getCompanyOrgId()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        evaluationCycleEntity.setCompanyOrgId(itemCycle.getCompanyOrgId()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         evaluationCycleEntity.setTenantId(currentUser.getTenantId()); 
															 | 
															
															 | 
															
																         evaluationCycleEntity.setTenantId(currentUser.getTenantId()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         evaluationCycleEntity.setId(evaluationCycle.getId()); 
															 | 
															
															 | 
															
																         evaluationCycleEntity.setId(evaluationCycle.getId()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         List<EvaluationCycleEntity> list = evaluationCycleService.findList(evaluationCycleEntity); 
															 | 
															
															 | 
															
																         List<EvaluationCycleEntity> list = evaluationCycleService.findList(evaluationCycleEntity); 
															 |