<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="pwc.taxtech.atms.dao.FormulaConfigMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.FormulaConfig"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="ID" jdbcType="VARCHAR" property="id" /> <result column="FORMULA_NAME" jdbcType="VARCHAR" property="formulaName" /> <result column="DESCRIPTION" jdbcType="VARCHAR" property="description" /> <result column="CALCULATE_STATUS" jdbcType="DECIMAL" property="calculateStatus" /> <result column="DATA_SOURCE_TYPE" jdbcType="DECIMAL" property="dataSourceType" /> <result column="DATA_SOURCE_NAME" jdbcType="VARCHAR" property="dataSourceName" /> <result column="CHINESE_NAME" jdbcType="VARCHAR" property="chineseName" /> <result column="ENGLISH_NAME" jdbcType="VARCHAR" property="englishName" /> <result column="SERVICE_TYPE" jdbcType="VARCHAR" property="serviceType" /> <result column="INDUSTRY" jdbcType="VARCHAR" property="industry" /> <result column="REQUIRED_PARAM_NUM" jdbcType="DECIMAL" property="requiredParamNum" /> </resultMap> <sql id="Example_Where_Clause"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <where> <foreach collection="oredCriteria" item="criteria" separator="or"> <if test="criteria.valid"> <trim prefix="(" prefixOverrides="and" suffix=")"> <foreach collection="criteria.criteria" item="criterion"> <choose> <when test="criterion.noValue"> and ${criterion.condition} </when> <when test="criterion.singleValue"> and ${criterion.condition} #{criterion.value} </when> <when test="criterion.betweenValue"> and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} </when> <when test="criterion.listValue"> and ${criterion.condition} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Update_By_Example_Where_Clause"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <where> <foreach collection="example.oredCriteria" item="criteria" separator="or"> <if test="criteria.valid"> <trim prefix="(" prefixOverrides="and" suffix=")"> <foreach collection="criteria.criteria" item="criterion"> <choose> <when test="criterion.noValue"> and ${criterion.condition} </when> <when test="criterion.singleValue"> and ${criterion.condition} #{criterion.value} </when> <when test="criterion.betweenValue"> and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} </when> <when test="criterion.listValue"> and ${criterion.condition} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Base_Column_List"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> ID, FORMULA_NAME, DESCRIPTION, CALCULATE_STATUS, DATA_SOURCE_TYPE, DATA_SOURCE_NAME, CHINESE_NAME, ENGLISH_NAME, SERVICE_TYPE, INDUSTRY, REQUIRED_PARAM_NUM </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.FormulaConfigExample" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> from FORMULA_CONFIG <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <include refid="Base_Column_List" /> from FORMULA_CONFIG where ID = #{id,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from FORMULA_CONFIG where ID = #{id,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.FormulaConfigExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from FORMULA_CONFIG <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.entity.FormulaConfig"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into FORMULA_CONFIG (ID, FORMULA_NAME, DESCRIPTION, CALCULATE_STATUS, DATA_SOURCE_TYPE, DATA_SOURCE_NAME, CHINESE_NAME, ENGLISH_NAME, SERVICE_TYPE, INDUSTRY, REQUIRED_PARAM_NUM) values (#{id,jdbcType=VARCHAR}, #{formulaName,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{calculateStatus,jdbcType=DECIMAL}, #{dataSourceType,jdbcType=DECIMAL}, #{dataSourceName,jdbcType=VARCHAR}, #{chineseName,jdbcType=VARCHAR}, #{englishName,jdbcType=VARCHAR}, #{serviceType,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR}, #{requiredParamNum,jdbcType=DECIMAL}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.FormulaConfig"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into FORMULA_CONFIG <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="formulaName != null"> FORMULA_NAME, </if> <if test="description != null"> DESCRIPTION, </if> <if test="calculateStatus != null"> CALCULATE_STATUS, </if> <if test="dataSourceType != null"> DATA_SOURCE_TYPE, </if> <if test="dataSourceName != null"> DATA_SOURCE_NAME, </if> <if test="chineseName != null"> CHINESE_NAME, </if> <if test="englishName != null"> ENGLISH_NAME, </if> <if test="serviceType != null"> SERVICE_TYPE, </if> <if test="industry != null"> INDUSTRY, </if> <if test="requiredParamNum != null"> REQUIRED_PARAM_NUM, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=VARCHAR}, </if> <if test="formulaName != null"> #{formulaName,jdbcType=VARCHAR}, </if> <if test="description != null"> #{description,jdbcType=VARCHAR}, </if> <if test="calculateStatus != null"> #{calculateStatus,jdbcType=DECIMAL}, </if> <if test="dataSourceType != null"> #{dataSourceType,jdbcType=DECIMAL}, </if> <if test="dataSourceName != null"> #{dataSourceName,jdbcType=VARCHAR}, </if> <if test="chineseName != null"> #{chineseName,jdbcType=VARCHAR}, </if> <if test="englishName != null"> #{englishName,jdbcType=VARCHAR}, </if> <if test="serviceType != null"> #{serviceType,jdbcType=VARCHAR}, </if> <if test="industry != null"> #{industry,jdbcType=VARCHAR}, </if> <if test="requiredParamNum != null"> #{requiredParamNum,jdbcType=DECIMAL}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.entity.FormulaConfigExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from FORMULA_CONFIG <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </select> <update id="updateByExampleSelective" parameterType="map"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update FORMULA_CONFIG <set> <if test="record.id != null"> ID = #{record.id,jdbcType=VARCHAR}, </if> <if test="record.formulaName != null"> FORMULA_NAME = #{record.formulaName,jdbcType=VARCHAR}, </if> <if test="record.description != null"> DESCRIPTION = #{record.description,jdbcType=VARCHAR}, </if> <if test="record.calculateStatus != null"> CALCULATE_STATUS = #{record.calculateStatus,jdbcType=DECIMAL}, </if> <if test="record.dataSourceType != null"> DATA_SOURCE_TYPE = #{record.dataSourceType,jdbcType=DECIMAL}, </if> <if test="record.dataSourceName != null"> DATA_SOURCE_NAME = #{record.dataSourceName,jdbcType=VARCHAR}, </if> <if test="record.chineseName != null"> CHINESE_NAME = #{record.chineseName,jdbcType=VARCHAR}, </if> <if test="record.englishName != null"> ENGLISH_NAME = #{record.englishName,jdbcType=VARCHAR}, </if> <if test="record.serviceType != null"> SERVICE_TYPE = #{record.serviceType,jdbcType=VARCHAR}, </if> <if test="record.industry != null"> INDUSTRY = #{record.industry,jdbcType=VARCHAR}, </if> <if test="record.requiredParamNum != null"> REQUIRED_PARAM_NUM = #{record.requiredParamNum,jdbcType=DECIMAL}, </if> </set> <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExample" parameterType="map"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update FORMULA_CONFIG set ID = #{record.id,jdbcType=VARCHAR}, FORMULA_NAME = #{record.formulaName,jdbcType=VARCHAR}, DESCRIPTION = #{record.description,jdbcType=VARCHAR}, CALCULATE_STATUS = #{record.calculateStatus,jdbcType=DECIMAL}, DATA_SOURCE_TYPE = #{record.dataSourceType,jdbcType=DECIMAL}, DATA_SOURCE_NAME = #{record.dataSourceName,jdbcType=VARCHAR}, CHINESE_NAME = #{record.chineseName,jdbcType=VARCHAR}, ENGLISH_NAME = #{record.englishName,jdbcType=VARCHAR}, SERVICE_TYPE = #{record.serviceType,jdbcType=VARCHAR}, INDUSTRY = #{record.industry,jdbcType=VARCHAR}, REQUIRED_PARAM_NUM = #{record.requiredParamNum,jdbcType=DECIMAL} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.FormulaConfig"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update FORMULA_CONFIG <set> <if test="formulaName != null"> FORMULA_NAME = #{formulaName,jdbcType=VARCHAR}, </if> <if test="description != null"> DESCRIPTION = #{description,jdbcType=VARCHAR}, </if> <if test="calculateStatus != null"> CALCULATE_STATUS = #{calculateStatus,jdbcType=DECIMAL}, </if> <if test="dataSourceType != null"> DATA_SOURCE_TYPE = #{dataSourceType,jdbcType=DECIMAL}, </if> <if test="dataSourceName != null"> DATA_SOURCE_NAME = #{dataSourceName,jdbcType=VARCHAR}, </if> <if test="chineseName != null"> CHINESE_NAME = #{chineseName,jdbcType=VARCHAR}, </if> <if test="englishName != null"> ENGLISH_NAME = #{englishName,jdbcType=VARCHAR}, </if> <if test="serviceType != null"> SERVICE_TYPE = #{serviceType,jdbcType=VARCHAR}, </if> <if test="industry != null"> INDUSTRY = #{industry,jdbcType=VARCHAR}, </if> <if test="requiredParamNum != null"> REQUIRED_PARAM_NUM = #{requiredParamNum,jdbcType=DECIMAL}, </if> </set> where ID = #{id,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.FormulaConfig"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update FORMULA_CONFIG set FORMULA_NAME = #{formulaName,jdbcType=VARCHAR}, DESCRIPTION = #{description,jdbcType=VARCHAR}, CALCULATE_STATUS = #{calculateStatus,jdbcType=DECIMAL}, DATA_SOURCE_TYPE = #{dataSourceType,jdbcType=DECIMAL}, DATA_SOURCE_NAME = #{dataSourceName,jdbcType=VARCHAR}, CHINESE_NAME = #{chineseName,jdbcType=VARCHAR}, ENGLISH_NAME = #{englishName,jdbcType=VARCHAR}, SERVICE_TYPE = #{serviceType,jdbcType=VARCHAR}, INDUSTRY = #{industry,jdbcType=VARCHAR}, REQUIRED_PARAM_NUM = #{requiredParamNum,jdbcType=DECIMAL} where ID = #{id,jdbcType=VARCHAR} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.FormulaConfigExample" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> from FORMULA_CONFIG <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>