add:中鼎供应商名称,fix:按行确认交货单

This commit is contained in:
zhaoyf
2026-11-10 15:17:05 +08:00
parent 1daa671b6f
commit 43000b0798
3 changed files with 9 additions and 4 deletions

View File

@@ -250,6 +250,10 @@ public class ZDWmsApi {
if (StrUtil.isNotBlank(createTime)) {
body.put("createTime", createTime);
}
String lifnrName = dto.getItems().get(0).getLifnr_name();
if (StrUtil.isNotEmpty(lifnrName)){
body.put("supplierName", lifnrName);
}
body.put("status", 0);
JSONArray itemList = new JSONArray();
int index = 1;
@@ -328,6 +332,7 @@ public class ZDWmsApi {
body.put("billType", resolveBillType(externalType));
body.put("externalType", externalType);
body.put("creator", "wms");
body.put("supplierName", order.getLifnr_name());
String createTime = formatCreateTime(
order.getBldat() == null ? null : order.getBldat().toString(),
order.getWadat() == null ? null : order.getWadat().toString());

View File

@@ -474,7 +474,7 @@ public class SapDeliveryServiceImpl implements SapDeliveryService {
ReceiptConfirmBody body = new ReceiptConfirmBody();
body.setBldat(formatSapDate(order.getBldat(), today));
body.setBudat(today);
body.setBktxt("WMS_IN_" + order.getVbeln());
body.setBktxt("WMS_IN_" + items.get(0).getId() + order.getVbeln());
body.setItems(buildConfirmItems(order.getVbeln(), items));
request.setBody(java.util.Collections.singletonList(body));
return request;

View File

@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.nl.common.exception.BadRequestException;
import org.nl.common.utils.IdUtil;
@@ -298,10 +297,11 @@ public class StInventoryServiceImpl implements IStInventoryService {
LambdaQueryWrapper<GroupPlate> query = new QueryWrapper<GroupPlate>().lambda()
.eq(GroupPlate::getStoragevehicle_code, invParam.getStoragevehicleCode())
.eq(GroupPlate::getMaterial_code, invParam.getMaterialCode())
.eq(GroupPlate::getExt_code, invParam.getExtCode())
.eq(GroupPlate::getStatus, GROUP_PLATE_STATUS.code("入库"));
if (!StringUtils.isEmpty(invParam.getPcsn())) query.eq(GroupPlate::getPcsn, invParam.getPcsn());
GroupPlate groupPlate = iMdPbGroupplateService.getOne(query);
if (ObjectUtils.isNotEmpty(groupPlate)) {
List<GroupPlate> groupPlateList = iMdPbGroupplateService.list(query);
for (GroupPlate groupPlate : groupPlateList) {
//添加库存变动记录
StIvtStructivtflow record = new StIvtStructivtflow();
record.setId(IdUtil.getStringId());