Class UpdateByPrimaryKeySelectiveForceProvider

java.lang.Object
tk.mybatis.mapper.mapperhelper.MapperTemplate
tk.mybatis.mapper.additional.update.force.UpdateByPrimaryKeySelectiveForceProvider

public class UpdateByPrimaryKeySelectiveForceProvider extends MapperTemplate
Author:
qrqhuangcy
  • Field Details

  • Constructor Details

    • UpdateByPrimaryKeySelectiveForceProvider

      public UpdateByPrimaryKeySelectiveForceProvider(Class<?> mapperClass, MapperHelper mapperHelper)
  • Method Details

    • updateByPrimaryKeySelectiveForce

      public String updateByPrimaryKeySelectiveForce(org.apache.ibatis.mapping.MappedStatement ms)
    • updateSetColumnsForce

      public String updateSetColumnsForce(Class<?> entityClass, String entityName, boolean notNull, boolean notEmpty)
      update set列
      Parameters:
      entityClass -
      entityName - 实体映射名
      notNull - 是否判断!=null
      notEmpty - 是否判断String类型!=''
      Returns:
    • getIfNotNull

      public String getIfNotNull(String entityName, EntityColumn column, String contents, boolean empty)
      判断自动!=null的条件结构
      Parameters:
      entityName -
      column -
      contents -
      empty -
      Returns: