|
@@ -29,10 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
29
|
29
|
<result property="payDay" column="pay_day" />
|
30
|
30
|
<result property="payMonth" column="pay_month" />
|
31
|
31
|
<result property="remark" column="remark" />
|
|
32
|
+ <result property="performanceId" column="performance_id" />
|
32
|
33
|
</resultMap>
|
33
|
34
|
|
34
|
35
|
<sql id="selectCmcWageVo">
|
35
|
|
- select wage_id, user_id, base_salary, year_salary, post_salary, performance_salary, certificates_subsidy, festival_subsidy, post_stable_subsidy, high_temperature_subsidy, attendance_deduct, payable_wage, house_fund, endowment_insurance, unemployment_insurance, medical_insurance, property_fee, deduct_total, social_security_unit, individual_income_tax, paid_wage, pay_day, pay_month, remark from cmc_wage
|
|
36
|
+ select wage_id, user_id, base_salary, year_salary, post_salary, performance_salary, certificates_subsidy, festival_subsidy, post_stable_subsidy, high_temperature_subsidy, attendance_deduct, payable_wage, house_fund, endowment_insurance, unemployment_insurance, medical_insurance, property_fee, deduct_total, social_security_unit, individual_income_tax, paid_wage, pay_day, pay_month, remark, performance_id from cmc_wage
|
36
|
37
|
</sql>
|
37
|
38
|
|
38
|
39
|
<select id="selectCmcWageList" parameterType="CmcWage" resultMap="CmcWageResult">
|
|
@@ -60,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
60
|
61
|
<if test="paidWage != null "> and paid_wage = #{paidWage}</if>
|
61
|
62
|
<if test="payDay != null "> and pay_day = #{payDay}</if>
|
62
|
63
|
<if test="payMonth != null "> and pay_month = #{payMonth}</if>
|
|
64
|
+ <if test="performanceId != null and performanceId != ''"> and performance_id = #{performanceId}</if>
|
63
|
65
|
</where>
|
64
|
66
|
</select>
|
65
|
67
|
|
|
@@ -95,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
95
|
97
|
<if test="payDay != null">pay_day,</if>
|
96
|
98
|
<if test="payMonth != null">pay_month,</if>
|
97
|
99
|
<if test="remark != null">remark,</if>
|
|
100
|
+ <if test="performanceId != null">performance_id,</if>
|
98
|
101
|
</trim>
|
99
|
102
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
100
|
103
|
<if test="wageId != null">#{wageId},</if>
|
|
@@ -121,6 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
121
|
124
|
<if test="payDay != null">#{payDay},</if>
|
122
|
125
|
<if test="payMonth != null">#{payMonth},</if>
|
123
|
126
|
<if test="remark != null">#{remark},</if>
|
|
127
|
+ <if test="performanceId != null">#{performanceId},</if>
|
124
|
128
|
</trim>
|
125
|
129
|
</insert>
|
126
|
130
|
|
|
@@ -150,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
150
|
154
|
<if test="payDay != null">pay_day = #{payDay},</if>
|
151
|
155
|
<if test="payMonth != null">pay_month = #{payMonth},</if>
|
152
|
156
|
<if test="remark != null">remark = #{remark},</if>
|
|
157
|
+ <if test="performanceId != null">performance_id = #{performanceId},</if>
|
153
|
158
|
</trim>
|
154
|
159
|
where wage_id = #{wageId}
|
155
|
160
|
</update>
|