|
|
@@ -132,6 +132,9 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
detail.setPd_puid(pu_id);
|
|
|
detail.setPd_code(pu_code);
|
|
|
detail.setPd_yqty(new Double(0));
|
|
|
+ detail.setCompanyId(companyId);
|
|
|
+ detail.setCreatorId(userId);
|
|
|
+ detail.setCreateTime(new Date());
|
|
|
insertDetails.add(detail);
|
|
|
}
|
|
|
//插入从表
|
|
|
@@ -150,6 +153,9 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
PurchaseDetail detail = BeanMapper.map(item, PurchaseDetail.class);
|
|
|
detail.setPd_puid(pu_id);
|
|
|
detail.setPd_code(pu_code);
|
|
|
+ detail.setCompanyId(companyId);
|
|
|
+ detail.setCreatorId(userId);
|
|
|
+ detail.setCreateTime(new Date());
|
|
|
if (StringUtils.isEmpty(detail.getId()) || "0".equals(detail.getId().toString())) {
|
|
|
insertDetails.add(detail);
|
|
|
} else {
|
|
|
@@ -347,7 +353,7 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
//插入验收单主表
|
|
|
ProdInOut prodInOut = new ProdInOut();
|
|
|
//生成单号
|
|
|
- String piInoutno ="YS0001";
|
|
|
+ String piInoutno =maxnumberService.getMaxnumber(BillCodeSeq.PURCHASEIN.getCaller(),true).getData();
|
|
|
|
|
|
prodInOut.setPi_inoutno(piInoutno);
|
|
|
prodInOut.setPi_class("采购验收单");
|