Commit debb3883 authored by neo's avatar neo

[dev] delelte mapper extend used annotation

parent c4d10197
......@@ -3,6 +3,7 @@ package pwc.taxtech.atms.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.entity.KeyValueConfig;
......@@ -106,5 +107,27 @@ public interface KeyValueConfigMapper extends MyMapper {
*/
int updateByPrimaryKey(KeyValueConfig record);
@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" +
"")
List<KeyValueConfig> selectKeyValueConfigsByOrderByCreateTime();
}
\ No newline at end of file
<?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.entity.KeyValueConfig">
<select id="selectKEY_VALUE_CONFIGsByOrderByCreateTime" resultMap="BaseResultMap">
SELECT
KEY_VALUE_CONFIG.ID,
KEY_VALUE_CONFIG.KEY_CODE,
KEY_VALUE_CONFIG.NAME,
KEY_VALUE_CONFIG.KEY_VALUE_TYPE,
KEY_VALUE_CONFIG.FORMULA,
KEY_VALUE_CONFIG.IS_CONSTANT,
KEY_VALUE_CONFIG.CALCULATE_STATUS,
KEY_VALUE_CONFIG.RESULT_TYPE,
KEY_VALUE_CONFIG.SERVICE_TYPE_IDS,
KEY_VALUE_CONFIG.INDUSTRY_IDS,
KEY_VALUE_CONFIG.DESCRIPTION,
KEY_VALUE_CONFIG.CREATOR,
KEY_VALUE_CONFIG.CREATE_TIME,
KEY_VALUE_CONFIG.UPDATOR,
KEY_VALUE_CONFIG.UPDATE_TIME,
KEY_VALUE_CONFIG.DATA_SOURCE
FROM
TAX_ADMIN.KEY_VALUE_CONFIG
ORDER BY
KEY_VALUE_CONFIG.CREATETIME
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment