食谱计划生成时更新天数,食谱暂停限制范围,不能添加上月日期
This commit is contained in:
		@@ -181,13 +181,12 @@ public class SysRecipesPlanServiceImpl implements ISysRecipesPlanService {
 | 
			
		||||
        List<Long> delList = new ArrayList<>();
 | 
			
		||||
        for (SysRecipesPlan plan : oldRecipesPlanList) {
 | 
			
		||||
            if(index < newSize){
 | 
			
		||||
                if(plan.getStartDate().compareTo(newRecipesPlanList.get(index).getStartDate()) != 0
 | 
			
		||||
                    || plan.getEndDate().compareTo(newRecipesPlanList.get(index).getEndDate()) != 0){
 | 
			
		||||
                    plan.setStartDate(newRecipesPlanList.get(index).getStartDate());
 | 
			
		||||
                    plan.setEndDate(newRecipesPlanList.get(index).getEndDate());
 | 
			
		||||
                    plan.setPauseDate(newRecipesPlanList.get(index).getPauseDate());
 | 
			
		||||
                    updateList.add(plan);
 | 
			
		||||
                }
 | 
			
		||||
                plan.setStartDate(newRecipesPlanList.get(index).getStartDate());
 | 
			
		||||
                plan.setEndDate(newRecipesPlanList.get(index).getEndDate());
 | 
			
		||||
                plan.setPauseDate(newRecipesPlanList.get(index).getPauseDate());
 | 
			
		||||
                plan.setStartNumDay(plan.getStartNumDay());
 | 
			
		||||
                plan.setEndNumDay(plan.getEndNumDay());
 | 
			
		||||
                updateList.add(plan);
 | 
			
		||||
            }else{
 | 
			
		||||
                delList.add(plan.getId());
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user