| | |
| | | <result column="user_id" property="userId" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="update_user_id" property="updateUserId" /> |
| | | <result column="staff" property="staff" /> |
| | | <result column="complete" property="complete" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <select id="selectByYear" resultMap="BaseResultMap"> |
| | | select * from man_company_target |
| | | <select id="selectCompanyByYear" resultMap="BaseResultMap"> |
| | | select top 1 * from man_company_target |
| | | where year = #{year} |
| | | and staff is null |
| | | </select> |
| | | |
| | | <select id="selectPersonByYear" resultMap="BaseResultMap"> |
| | | select top 1 * from man_company_target |
| | | where year = #{year} |
| | | and staff = #{staff} |
| | | </select> |
| | | |
| | | </mapper> |