mybatis动态更新sql语句

注意参数是实体


    UPDATE GOVERNMENT_DETAIL
    
        unitType=#{unitType},
        plateCode=#{plateCode},
        descrip=#{descrip},
        businessGuid=#{businessGuid},
        hotLine=#{hotLine},
        lineAdress=#{lineAdress},
        extend1=#{extend1},
        extend2=#{extend2},
    
    WHERE ID=#{id}

你可能感兴趣的:(java基础)