优化玉田提的问题

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

@@ -276,4 +276,12 @@ public class RkInfoController extends BaseController
} }
// 根据玉田需求,新添加的接口
@PreAuthorize("@ss.hasPermi('wisdom:stock:edit')")
@PostMapping("/editBill")
public AjaxResult editBill(@RequestBody RkInfo rkInfo)
{
return toAjax(rkInfoService.updateBillInfo(rkInfo));
}
} }

View File

@@ -2,6 +2,7 @@ package com.zg.project.wisdom.domain.dto;
import lombok.Data; import lombok.Data;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@@ -31,5 +32,8 @@ public class PcRkInfoBatchDTO {
/** 发起人签字图片 URL单张 */ /** 发起人签字图片 URL单张 */
private String signatureUrl; private String signatureUrl;
// zhangjinbo 根据玉田需求 添加入库时间
private Date rkTime;
} }

View File

@@ -237,4 +237,6 @@ public interface RkInfoMapper
Long selectStatistics(RkInfo query); Long selectStatistics(RkInfo query);
Long selectPcde(RkInfo query); Long selectPcde(RkInfo query);
int updateBillInfo(RkInfo query);
} }

View File

@@ -171,4 +171,6 @@ public interface IRkInfoService
Long selectStatistics(RkInfo query); Long selectStatistics(RkInfo query);
Long selectPcde(RkInfo query); Long selectPcde(RkInfo query);
public int updateBillInfo(RkInfo rkInfo);
} }

View File

@@ -337,7 +337,8 @@ public class RkInfoServiceImpl implements IRkInfoService
rk.setRkType(dto.getRkType()); rk.setRkType(dto.getRkType());
rk.setWlType(dto.getWlType()); rk.setWlType(dto.getWlType());
rk.setLihuoY(dto.getLihuoY()); rk.setLihuoY(dto.getLihuoY());
rk.setRkTime(now); // rk.setRkTime(now);
rk.setRkTime(dto.getRkTime()); //zhangjinbo 2025-11-03根据玉田需求进行修改
rk.setCangku(dto.getCangku()); rk.setCangku(dto.getCangku());
rk.setCreateBy(userId); rk.setCreateBy(userId);
rk.setCreateTime(now); rk.setCreateTime(now);
@@ -1013,6 +1014,11 @@ public class RkInfoServiceImpl implements IRkInfoService
public Long selectPcde(RkInfo query) { public Long selectPcde(RkInfo query) {
return rkInfoMapper.selectPcde(query); return rkInfoMapper.selectPcde(query);
} }
@Override
public int updateBillInfo(RkInfo query) {
return rkInfoMapper.updateBillInfo(query);
}

View File

@@ -385,7 +385,8 @@
so.type_name AS ck_type_name, so.type_name AS ck_type_name,
a.ly_time, a.ly_time,
a.ck_lihuo_y, 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 ( FROM (
SELECT SELECT
MIN(t.id) AS id, -- 代表ID 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_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 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 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 ORDER BY a.rk_time DESC
</select> </select>
<!-- ================== /按单据分组查询 ================== --> <!-- ================== /按单据分组查询 ================== -->
@@ -1138,4 +1140,15 @@
</where> </where>
</select> </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> </mapper>