@Override
    public boolean clientUpsertSelectiveMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable) {
        // @Param("record")
        method.getParameters().get(0).addAnnotation("@Param(\"record\")");
        // column枚举
        // 找出全字段对应的Model
        FullyQualifiedJavaType fullFieldModel = introspectedTable.getRules().calculateAllFieldsClass();
        FullyQualifiedJavaType selectiveType = new FullyQualifiedJavaType(fullFieldModel.getShortName() + "." + ModelColumnPlugin.ENUM_NAME);
        method.addParameter(new Parameter(selectiveType, "selective", "@Param(\"selective\")", true));
        return true;
    }
@Override
    public boolean clientUpsertSelectiveMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable) {
        
        method.getParameters().get(0).addAnnotation("@Param(\"record\")");
        
        
        FullyQualifiedJavaType fullFieldModel = introspectedTable.getRules().calculateAllFieldsClass();
        FullyQualifiedJavaType selectiveType = new FullyQualifiedJavaType(fullFieldModel.getShortName() + "." + ModelColumnPlugin.ENUM_NAME);
        method.addParameter(new Parameter(selectiveType, "selective", "@Param(\"selective\")", true));
        return true;
    }
@ Override public boolean clientUpsertSelectiveMethodGenerated ( Method method , Interface interfaze , IntrospectedTable introspectedTable ) { // @Param("record") method . getParameters ( ) . get ( 0 ) . addAnnotation ( "@Param(\"record\")" ) ; // column枚举 // 找出全字段对应的Model FullyQualifiedJavaType fullFieldModel = introspectedTable . getRules ( ) . calculateAllFieldsClass ( ) ; FullyQualifiedJavaType selectiveType = new FullyQualifiedJavaType ( fullFieldModel . getShortName ( ) + "." + ModelColumnPlugin . ENUM_NAME ) ; method . addParameter ( new Parameter ( selectiveType , "selective" , "@Param(\"selective\")" , true ) ) ; return true ; }
upsertSelective 方法
@param method
@param interfaze
@param introspectedTable
@return
upsertSelective 方法