串联功能
This commit is contained in:
		@@ -28,6 +28,11 @@ public class SysRecipesPlan {
 | 
			
		||||
 | 
			
		||||
    private Long cusId;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 对外的用户id
 | 
			
		||||
     */
 | 
			
		||||
    private String outId;
 | 
			
		||||
 | 
			
		||||
    //客户ID
 | 
			
		||||
//    private Long customerId;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -88,9 +88,9 @@ public interface SysRecipesPlanMapper
 | 
			
		||||
     */
 | 
			
		||||
    List<SysRecipesPlan> selectPlanListByOrderId(SysRecipesPlan sysRecipesPlan);
 | 
			
		||||
 | 
			
		||||
    List<SysRecipesPlan> selectPlanListByOutId(String outId);
 | 
			
		||||
 | 
			
		||||
    Long getCusIdByOutId(String outId);
 | 
			
		||||
 | 
			
		||||
    List<SysRecipesPlanListInfo> selectRecipesPlanListInfo(String outId);
 | 
			
		||||
 | 
			
		||||
    List<SysRecipesPlan> selectPlanListByCusId(Long cusId);
 | 
			
		||||
}
 | 
			
		||||
@@ -91,10 +91,26 @@ public interface ISysRecipesPlanService
 | 
			
		||||
     */
 | 
			
		||||
    List<SysRecipesPlan> selectPlanListByOrderId(SysRecipesPlan sysRecipesPlan);
 | 
			
		||||
 | 
			
		||||
    List<SysRecipesPlan> selectPlanListByOutId(String outId);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 通过outId查询cusId
 | 
			
		||||
     * @param outId
 | 
			
		||||
     * @return
 | 
			
		||||
     */
 | 
			
		||||
    Long getCusIdByOutId(String outId);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 通过outId查询食谱计划简要
 | 
			
		||||
     * @param outId
 | 
			
		||||
     * @return
 | 
			
		||||
     */
 | 
			
		||||
    List<SysRecipesPlanListInfo> selectRecipesPlanListInfo(String outId);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 通过客户id查询食谱计划
 | 
			
		||||
     * @param cusId
 | 
			
		||||
     * @return
 | 
			
		||||
     */
 | 
			
		||||
    List<SysRecipesPlan> selectPlanListByCusId(Long cusId);
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@@ -293,11 +293,6 @@ public class SysRecipesPlanServiceImpl implements ISysRecipesPlanService {
 | 
			
		||||
        return sysRecipesPlanMapper.selectPlanListByOrderId(sysRecipesPlan);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public List<SysRecipesPlan> selectPlanListByOutId(String outId) {
 | 
			
		||||
        return sysRecipesPlanMapper.selectPlanListByOutId(outId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public Long getCusIdByOutId(String outId) {
 | 
			
		||||
        return sysRecipesPlanMapper.getCusIdByOutId(outId);
 | 
			
		||||
@@ -308,4 +303,9 @@ public class SysRecipesPlanServiceImpl implements ISysRecipesPlanService {
 | 
			
		||||
        return sysRecipesPlanMapper.selectRecipesPlanListInfo(outId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public List<SysRecipesPlan> selectPlanListByCusId(Long cusId) {
 | 
			
		||||
        return sysRecipesPlanMapper.selectPlanListByCusId(cusId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@@ -54,6 +54,7 @@ public class SysRecipesServiceImpl implements ISysRecipesService {
 | 
			
		||||
            SysRecipesPlan sysRecipesPlan = new SysRecipesPlan();
 | 
			
		||||
            sysRecipesPlan.setId(sysRecipes.getPlanId());
 | 
			
		||||
            sysRecipesPlan.setRecipesId(sysRecipes.getId());
 | 
			
		||||
            sysRecipesPlan.setReviewStatus(1);
 | 
			
		||||
            sysRecipesPlanMapper.updateSysRecipesPlan(sysRecipesPlan);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user