PositionItemInfoMapper.xml
1.18 KB
<?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.laowu.mapper.PositionItemInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.laowu.model.PositionItemInfoDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="start_salary" property="startSalary" />
<result column="end_salary" property="endSalary" />
</resultMap>
<select id="positionCounts" parameterType="long" resultType="com.laowu.vo.position.PositionCountsVO">
SELECT
t.id,
t.position_status,
t.require_counts,
t.address,
t.start_salary,
t.end_salary,
t2.position_type,
t.position_id
FROM
position_item_info t
LEFT JOIN position_dict t2 ON t.position_id = t2.id
WHERE
t.delete_date IS NULL
and t.position_require_id = #{positionRequireId}
</select>
</mapper>