Procházet zdrojové kódy

新增字段预算备注

lamphua před 5 měsíci
rodič
revize
64f2f361df

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetMapper.xml Zobrazit soubor

@@ -35,6 +35,7 @@
35 35
         <result property="zjlTime"    column="zjl_time"    />
36 36
         <result property="dszTime"    column="dsz_time"    />
37 37
         <result property="createTime"    column="create_time"    />
38
+        <result property="remark"    column="remark"    />
38 39
         <association property="compilerUser"    javaType="SysUser"         resultMap="CompilerResult" />
39 40
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerResult" />
40 41
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlResult" />
@@ -72,7 +73,7 @@
72 73
         select b.budget_id, b.project_id, p.project_number, p.project_name, b.staff_cost, b.car_cost, b.device_cost, b.fix_cost, b.settle_expense, b.out_expense, b.business_expense, b.tax_expense,
73 74
                b.rent_expense, b.other_expense, b.out_remark, b.business_remark, b.tax_remark, b.rent_remark, b.other_remark, b.direct_expense, b.total_budget, b.compiler,
74 75
                u.nick_name as compiler_nick_name, b.manager, u1.nick_name as manager_nick_name, b.auditor, u2.nick_name as zjl_nick_name, b.approver, u3.nick_name as dsz_nick_name, b.create_time, b.manager_time, b.zjl_time, b.dsz_time,
75
-               b.manager_comment, b.zjl_comment, b.dsz_comment from cmc_budget as b
76
+               b.manager_comment, b.zjl_comment, b.dsz_comment, b.remark from cmc_budget as b
76 77
             left join sys_user as u on u.user_id = b.compiler
77 78
             left join sys_user as u1 on u1.user_id = b.manager
78 79
             left join sys_user as u2 on u2.user_id = b.auditor
@@ -138,6 +139,7 @@
138 139
             <if test="managerComment != null">manager_comment,</if>
139 140
             <if test="zjlComment != null">zjl_comment,</if>
140 141
             <if test="dszComment != null">dsz_comment,</if>
142
+            <if test="remark != null">remark,</if>
141 143
             create_time
142 144
         </trim>
143 145
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -170,6 +172,7 @@
170 172
             <if test="managerComment != null">#{managerComment},</if>
171 173
             <if test="zjlComment != null">#{zjlComment},</if>
172 174
             <if test="dszComment != null">#{dszComment},</if>
175
+            <if test="remark != null">#{remark},</if>
173 176
             sysdate()
174 177
         </trim>
175 178
     </insert>
@@ -206,6 +209,7 @@
206 209
             <if test="zjlComment != null">zjl_comment = #{zjlComment},</if>
207 210
             <if test="dszComment != null">dsz_comment = #{dszComment},</if>
208 211
             <if test="createTime != null">create_time = #{createTime},</if>
212
+            <if test="remark != null">remark = #{remark},</if>
209 213
         </trim>
210 214
         where budget_id = #{budgetId}
211 215
     </update>

Loading…
Zrušit
Uložit