소스 검색

工资表新增绩效审批id

lamphua 8 달 전
부모
커밋
ba189937bf

+ 13
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcWage.java 파일 보기

@@ -111,6 +111,9 @@ public class CmcWage extends BaseEntity
111 111
     @Excel(name = "发放月份", width = 30, dateFormat = "yyyy-MM-dd")
112 112
     private Date payMonth;
113 113
 
114
+    /** 绩效审批id */
115
+    private String performanceId;
116
+
114 117
     public void setWageId(Integer wageId) 
115 118
     {
116 119
         this.wageId = wageId;
@@ -318,6 +321,15 @@ public class CmcWage extends BaseEntity
318 321
     {
319 322
         return payMonth;
320 323
     }
324
+    public void setPerformanceId(String performanceId)
325
+    {
326
+        this.performanceId = performanceId;
327
+    }
328
+
329
+    public String getPerformanceId()
330
+    {
331
+        return performanceId;
332
+    }
321 333
 
322 334
     @Override
323 335
     public String toString() {
@@ -345,6 +357,7 @@ public class CmcWage extends BaseEntity
345 357
             .append("paidWage", getPaidWage())
346 358
             .append("payDay", getPayDay())
347 359
             .append("payMonth", getPayMonth())
360
+            .append("performanceId", getPerformanceId())
348 361
             .toString();
349 362
     }
350 363
 }

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcWageMapper.xml 파일 보기

@@ -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>

Loading…
취소
저장