浏览代码

工资表新增绩效审批id

lamphua 8 个月前
父节点
当前提交
ba189937bf

+ 13
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcWage.java 查看文件

111
     @Excel(name = "发放月份", width = 30, dateFormat = "yyyy-MM-dd")
111
     @Excel(name = "发放月份", width = 30, dateFormat = "yyyy-MM-dd")
112
     private Date payMonth;
112
     private Date payMonth;
113
 
113
 
114
+    /** 绩效审批id */
115
+    private String performanceId;
116
+
114
     public void setWageId(Integer wageId) 
117
     public void setWageId(Integer wageId) 
115
     {
118
     {
116
         this.wageId = wageId;
119
         this.wageId = wageId;
318
     {
321
     {
319
         return payMonth;
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
     @Override
334
     @Override
323
     public String toString() {
335
     public String toString() {
345
             .append("paidWage", getPaidWage())
357
             .append("paidWage", getPaidWage())
346
             .append("payDay", getPayDay())
358
             .append("payDay", getPayDay())
347
             .append("payMonth", getPayMonth())
359
             .append("payMonth", getPayMonth())
360
+            .append("performanceId", getPerformanceId())
348
             .toString();
361
             .toString();
349
     }
362
     }
350
 }
363
 }

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcWageMapper.xml 查看文件

29
         <result property="payDay"    column="pay_day"    />
29
         <result property="payDay"    column="pay_day"    />
30
         <result property="payMonth"    column="pay_month"    />
30
         <result property="payMonth"    column="pay_month"    />
31
         <result property="remark"    column="remark"    />
31
         <result property="remark"    column="remark"    />
32
+        <result property="performanceId"    column="performance_id"    />
32
     </resultMap>
33
     </resultMap>
33
 
34
 
34
     <sql id="selectCmcWageVo">
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
     </sql>
37
     </sql>
37
 
38
 
38
     <select id="selectCmcWageList" parameterType="CmcWage" resultMap="CmcWageResult">
39
     <select id="selectCmcWageList" parameterType="CmcWage" resultMap="CmcWageResult">
60
             <if test="paidWage != null "> and paid_wage = #{paidWage}</if>
61
             <if test="paidWage != null "> and paid_wage = #{paidWage}</if>
61
             <if test="payDay != null "> and pay_day = #{payDay}</if>
62
             <if test="payDay != null "> and pay_day = #{payDay}</if>
62
             <if test="payMonth != null "> and pay_month = #{payMonth}</if>
63
             <if test="payMonth != null "> and pay_month = #{payMonth}</if>
64
+            <if test="performanceId != null and performanceId != ''"> and performance_id = #{performanceId}</if>
63
         </where>
65
         </where>
64
     </select>
66
     </select>
65
     
67
     
95
             <if test="payDay != null">pay_day,</if>
97
             <if test="payDay != null">pay_day,</if>
96
             <if test="payMonth != null">pay_month,</if>
98
             <if test="payMonth != null">pay_month,</if>
97
             <if test="remark != null">remark,</if>
99
             <if test="remark != null">remark,</if>
100
+            <if test="performanceId != null">performance_id,</if>
98
          </trim>
101
          </trim>
99
         <trim prefix="values (" suffix=")" suffixOverrides=",">
102
         <trim prefix="values (" suffix=")" suffixOverrides=",">
100
             <if test="wageId != null">#{wageId},</if>
103
             <if test="wageId != null">#{wageId},</if>
121
             <if test="payDay != null">#{payDay},</if>
124
             <if test="payDay != null">#{payDay},</if>
122
             <if test="payMonth != null">#{payMonth},</if>
125
             <if test="payMonth != null">#{payMonth},</if>
123
             <if test="remark != null">#{remark},</if>
126
             <if test="remark != null">#{remark},</if>
127
+            <if test="performanceId != null">#{performanceId},</if>
124
          </trim>
128
          </trim>
125
     </insert>
129
     </insert>
126
 
130
 
150
             <if test="payDay != null">pay_day = #{payDay},</if>
154
             <if test="payDay != null">pay_day = #{payDay},</if>
151
             <if test="payMonth != null">pay_month = #{payMonth},</if>
155
             <if test="payMonth != null">pay_month = #{payMonth},</if>
152
             <if test="remark != null">remark = #{remark},</if>
156
             <if test="remark != null">remark = #{remark},</if>
157
+            <if test="performanceId != null">performance_id = #{performanceId},</if>
153
         </trim>
158
         </trim>
154
         where wage_id = #{wageId}
159
         where wage_id = #{wageId}
155
     </update>
160
     </update>

正在加载...
取消
保存