1、解决请领单-物料查询-请领数量返回不正确bug

2、解决请领单-添加请购车物料-如果已存在对应物料返回false
This commit is contained in:
1378012178@qq.com 2025-12-02 14:22:54 +08:00
parent 2b072143e4
commit 038c2a5deb
2 changed files with 7 additions and 4 deletions

View File

@ -165,10 +165,11 @@ public class QingLingServiceImpl implements IQinglingApi {
qw.eq("wl_id", dto.getWlId());
NuInvoicingQldGwc one = invoicingQldGwcService.getOne(qw);
if (one != null) {
dto.setQlNum(dto.getQlNum());//前端传过来的就是最终的数量
NuInvoicingQldGwc gwcData = new NuInvoicingQldGwc();
BeanUtils.copyProperties(dto, gwcData);
return invoicingQldGwcService.update(gwcData, qw);
// dto.setQlNum(dto.getQlNum());//前端传过来的就是最终的数量
// NuInvoicingQldGwc gwcData = new NuInvoicingQldGwc();
// BeanUtils.copyProperties(dto, gwcData);
// return invoicingQldGwcService.update(gwcData, qw);
return false;
} else {
NuInvoicingQldGwc gwcData = new NuInvoicingQldGwc();
BeanUtils.copyProperties(dto, gwcData);

View File

@ -200,4 +200,6 @@ public class BlWarehouseMaterialInfo implements Serializable {
private Date zhiDingTime;//置顶时间
@TableField(exist = false)
private String gwcId;//购物车ID
@TableField(exist = false)
private Integer qlNum;//物料请领数量
}