36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
|
|
<?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.gear.oa.mapper.GearWorkDeductionMapper">
|
||
|
|
|
||
|
|
<resultMap type="com.gear.oa.domain.GearWorkDeduction" id="GearWorkDeductionResult">
|
||
|
|
<result property="deductionId" column="deduction_id"/>
|
||
|
|
<result property="orderId" column="order_id"/>
|
||
|
|
<result property="personName" column="person_name"/>
|
||
|
|
<result property="workContent" column="work_content"/>
|
||
|
|
<result property="deductionAmount" column="deduction_amount"/>
|
||
|
|
<result property="deductionReason" column="deduction_reason"/>
|
||
|
|
<result property="workDate" column="work_date"/>
|
||
|
|
<result property="status" column="status"/>
|
||
|
|
<result property="remark" column="remark"/>
|
||
|
|
<result property="createTime" column="create_time"/>
|
||
|
|
<result property="createBy" column="create_by"/>
|
||
|
|
<result property="updateTime" column="update_time"/>
|
||
|
|
<result property="updateBy" column="update_by"/>
|
||
|
|
<result property="delFlag" column="del_flag"/>
|
||
|
|
</resultMap>
|
||
|
|
<select id="selectVoPagePlus" resultType="com.gear.oa.domain.vo.GearWorkDeductionVo">
|
||
|
|
SELECT
|
||
|
|
sr.*,
|
||
|
|
go.order_name,
|
||
|
|
go.order_code
|
||
|
|
FROM
|
||
|
|
gear_work_deduction sr
|
||
|
|
LEFT JOIN gear_order go ON sr.order_id = go.order_id and go.del_flag = 0
|
||
|
|
${ew.customSqlSegment}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|