| | |
| | | <?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="com.kidgrow.usercenter.mapper.BusinessRecordsMapper"> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.BusinessRecordsMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | |
| | | </sql> |
| | | |
| | | <!--定义根据-BusinessRecords当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.usercenter.model.BusinessRecords"> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.BusinessRecords"> |
| | | select <include refid="Column_List"/> |
| | | from business_records |
| | | <include refid="where"/> |
| | |
| | | </select> |
| | | |
| | | <!--定义根据-BusinessRecords当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.usercenter.model.BusinessRecords"> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.BusinessRecords"> |
| | | select <include refid="Column_List"/> |
| | | from business_records |
| | | order by id desc |