优化玉田提的问题

This commit is contained in:
2025-11-04 10:43:53 +08:00
parent a43d7f32b6
commit a4e609589a
6 changed files with 37 additions and 2 deletions

View File

@@ -385,7 +385,8 @@
so.type_name AS ck_type_name,
a.ly_time,
a.ck_lihuo_y,
u.user_name AS ck_lihuo_y_name
u.user_name AS ck_lihuo_y_name,
ru.user_name AS lihuo_y_name
FROM (
SELECT
MIN(t.id) AS id, -- 代表ID
@@ -505,6 +506,7 @@
LEFT JOIN stock_in_type si ON a.rk_type = si.type_code
LEFT JOIN stock_out_type so ON a.ck_type = so.type_code
LEFT JOIN sys_user u ON a.ck_lihuo_y = u.user_id
LEFT JOIN sys_user ru ON a.lihuo_y = ru.user_id
ORDER BY a.rk_time DESC
</select>
<!-- ================== /按单据分组查询 ================== -->
@@ -1138,4 +1140,15 @@
</where>
</select>
<update id="updateBillInfo" parameterType="com.zg.project.wisdom.domain.RkInfo">
UPDATE rk_info
<set>
<if test="rkType != null">rk_type = #{rkType},</if>
<if test="wlType != null">wl_type = #{wlType},</if>
<if test="cangku != null">cangku = #{cangku},</if>
<if test="rkTime != null">rk_time = #{rkTime},</if>
</set>
WHERE bill_no = #{billNo}
</update>
</mapper>