1、解决请领单-物料查询-请领数量返回不正确bug
2、解决请领单-添加请购车物料-如果已存在对应物料返回false
This commit is contained in:
parent
2b072143e4
commit
038c2a5deb
|
|
@ -165,10 +165,11 @@ public class QingLingServiceImpl implements IQinglingApi {
|
||||||
qw.eq("wl_id", dto.getWlId());
|
qw.eq("wl_id", dto.getWlId());
|
||||||
NuInvoicingQldGwc one = invoicingQldGwcService.getOne(qw);
|
NuInvoicingQldGwc one = invoicingQldGwcService.getOne(qw);
|
||||||
if (one != null) {
|
if (one != null) {
|
||||||
dto.setQlNum(dto.getQlNum());//前端传过来的就是最终的数量
|
// dto.setQlNum(dto.getQlNum());//前端传过来的就是最终的数量
|
||||||
NuInvoicingQldGwc gwcData = new NuInvoicingQldGwc();
|
// NuInvoicingQldGwc gwcData = new NuInvoicingQldGwc();
|
||||||
BeanUtils.copyProperties(dto, gwcData);
|
// BeanUtils.copyProperties(dto, gwcData);
|
||||||
return invoicingQldGwcService.update(gwcData, qw);
|
// return invoicingQldGwcService.update(gwcData, qw);
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
NuInvoicingQldGwc gwcData = new NuInvoicingQldGwc();
|
NuInvoicingQldGwc gwcData = new NuInvoicingQldGwc();
|
||||||
BeanUtils.copyProperties(dto, gwcData);
|
BeanUtils.copyProperties(dto, gwcData);
|
||||||
|
|
|
||||||
|
|
@ -200,4 +200,6 @@ public class BlWarehouseMaterialInfo implements Serializable {
|
||||||
private Date zhiDingTime;//置顶时间
|
private Date zhiDingTime;//置顶时间
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String gwcId;//购物车ID
|
private String gwcId;//购物车ID
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer qlNum;//物料请领数量
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue