KeyValueConfigMapper.java 4.68 KB
Newer Older
1 2 3 4 5
package pwc.taxtech.atms.dao;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
6
import org.apache.ibatis.annotations.Select;
7 8
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyMapper;
9 10
import pwc.taxtech.atms.entity.KeyValueConfig;
import pwc.taxtech.atms.entity.KeyValueConfigExample;
11 12 13 14 15

@Mapper
public interface KeyValueConfigMapper extends MyMapper {
    /**
     * This method was generated by MyBatis Generator.
16
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
17 18 19 20 21 22 23
     *
     * @mbg.generated
     */
    long countByExample(KeyValueConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
24
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
25 26 27 28 29 30 31
     *
     * @mbg.generated
     */
    int deleteByExample(KeyValueConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
32
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
33 34 35
     *
     * @mbg.generated
     */
36
    int deleteByPrimaryKey(String id);
37 38 39

    /**
     * This method was generated by MyBatis Generator.
40
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
41 42 43 44 45 46 47
     *
     * @mbg.generated
     */
    int insert(KeyValueConfig record);

    /**
     * This method was generated by MyBatis Generator.
48
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
49 50 51 52 53 54 55
     *
     * @mbg.generated
     */
    int insertSelective(KeyValueConfig record);

    /**
     * This method was generated by MyBatis Generator.
56
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
57 58 59 60 61 62 63
     *
     * @mbg.generated
     */
    List<KeyValueConfig> selectByExampleWithRowbounds(KeyValueConfigExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
64
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
65 66 67 68 69 70 71
     *
     * @mbg.generated
     */
    List<KeyValueConfig> selectByExample(KeyValueConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
72
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
73 74 75
     *
     * @mbg.generated
     */
76
    KeyValueConfig selectByPrimaryKey(String id);
77 78 79

    /**
     * This method was generated by MyBatis Generator.
80
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
81 82 83 84 85 86 87
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") KeyValueConfig record, @Param("example") KeyValueConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
88
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
89 90 91 92 93 94 95
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") KeyValueConfig record, @Param("example") KeyValueConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
96
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
97 98 99 100 101 102 103
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(KeyValueConfig record);

    /**
     * This method was generated by MyBatis Generator.
104
     * This method corresponds to the database table TAX_ADMIN.KEY_VALUE_CONFIG
105 106 107 108
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(KeyValueConfig record);
109

110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
    @Select("SELECT  " +
            "        KEY_VALUE_CONFIG.ID AS id,  " +
            "        KEY_VALUE_CONFIG.KEY_CODE AS keyCode,  " +
            "        KEY_VALUE_CONFIG.NAME AS name,  " +
            "        KEY_VALUE_CONFIG.KEY_VALUE_TYPE AS keyValueType,  " +
            "        KEY_VALUE_CONFIG.FORMULA AS formula,  " +
            "        KEY_VALUE_CONFIG.IS_CONSTANT AS isConstant,  " +
            "        KEY_VALUE_CONFIG.CALCULATE_STATUS AS calculateStatus,  " +
            "        KEY_VALUE_CONFIG.RESULT_TYPE AS resultType,  " +
            "        KEY_VALUE_CONFIG.SERVICE_TYPE_IDS AS serviceTypeIds,  " +
            "        KEY_VALUE_CONFIG.INDUSTRY_IDS AS industryIds,  " +
            "        KEY_VALUE_CONFIG.DESCRIPTION AS description,  " +
            "        KEY_VALUE_CONFIG.CREATOR AS creator,  " +
            "        KEY_VALUE_CONFIG.CREATE_TIME AS createTime,  " +
            "        KEY_VALUE_CONFIG.UPDATOR AS updator,  " +
            "        KEY_VALUE_CONFIG.UPDATE_TIME AS updateTime,  " +
            "        KEY_VALUE_CONFIG.DATA_SOURCE AS dataSource  " +
            "        FROM  " +
            "        TAX_ADMIN.KEY_VALUE_CONFIG  " +
            "        ORDER BY  " +
            "        KEY_VALUE_CONFIG.CREATE_TIME" +
            "")
132
    List<KeyValueConfig> selectKeyValueConfigsByOrderByCreateTime();
133
}