mybatis 查询由多个表组成的部分字段用map接收

mybatis 查询由多个表组成的字段用map接收

Sql:
 
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    


**这块不要把它放到 where  前面会出问题**

            AND PLAN_YEAR=#{planYear,jdbcType=VARCHAR}
        

后台:
@Override
    public ApiResult queryBranchConstructionOrPlanYearOrPlanName(String planYear) {
       List>list= annualDeploymentMapper.queryBranchConstructionOrPlanYearOrPlanName(planYear);
        return ApiResult.ofFailureResultMsg(list,"分公司产建计划查询成功",true);
    }
    
 List> queryBranchConstructionOrPlanYearOrPlanName(@Param("planYear") String planYear);

你可能感兴趣的:(java)