add:中鼎供应商名称,fix:按行确认交货单
This commit is contained in:
@@ -250,6 +250,10 @@ public class ZDWmsApi {
|
|||||||
if (StrUtil.isNotBlank(createTime)) {
|
if (StrUtil.isNotBlank(createTime)) {
|
||||||
body.put("createTime", 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);
|
body.put("status", 0);
|
||||||
JSONArray itemList = new JSONArray();
|
JSONArray itemList = new JSONArray();
|
||||||
int index = 1;
|
int index = 1;
|
||||||
@@ -328,6 +332,7 @@ public class ZDWmsApi {
|
|||||||
body.put("billType", resolveBillType(externalType));
|
body.put("billType", resolveBillType(externalType));
|
||||||
body.put("externalType", externalType);
|
body.put("externalType", externalType);
|
||||||
body.put("creator", "wms");
|
body.put("creator", "wms");
|
||||||
|
body.put("supplierName", order.getLifnr_name());
|
||||||
String createTime = formatCreateTime(
|
String createTime = formatCreateTime(
|
||||||
order.getBldat() == null ? null : order.getBldat().toString(),
|
order.getBldat() == null ? null : order.getBldat().toString(),
|
||||||
order.getWadat() == null ? null : order.getWadat().toString());
|
order.getWadat() == null ? null : order.getWadat().toString());
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ public class SapDeliveryServiceImpl implements SapDeliveryService {
|
|||||||
ReceiptConfirmBody body = new ReceiptConfirmBody();
|
ReceiptConfirmBody body = new ReceiptConfirmBody();
|
||||||
body.setBldat(formatSapDate(order.getBldat(), today));
|
body.setBldat(formatSapDate(order.getBldat(), today));
|
||||||
body.setBudat(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));
|
body.setItems(buildConfirmItems(order.getVbeln(), items));
|
||||||
request.setBody(java.util.Collections.singletonList(body));
|
request.setBody(java.util.Collections.singletonList(body));
|
||||||
return request;
|
return request;
|
||||||
|
|||||||
@@ -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.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.nl.common.exception.BadRequestException;
|
import org.nl.common.exception.BadRequestException;
|
||||||
import org.nl.common.utils.IdUtil;
|
import org.nl.common.utils.IdUtil;
|
||||||
@@ -298,10 +297,11 @@ public class StInventoryServiceImpl implements IStInventoryService {
|
|||||||
LambdaQueryWrapper<GroupPlate> query = new QueryWrapper<GroupPlate>().lambda()
|
LambdaQueryWrapper<GroupPlate> query = new QueryWrapper<GroupPlate>().lambda()
|
||||||
.eq(GroupPlate::getStoragevehicle_code, invParam.getStoragevehicleCode())
|
.eq(GroupPlate::getStoragevehicle_code, invParam.getStoragevehicleCode())
|
||||||
.eq(GroupPlate::getMaterial_code, invParam.getMaterialCode())
|
.eq(GroupPlate::getMaterial_code, invParam.getMaterialCode())
|
||||||
|
.eq(GroupPlate::getExt_code, invParam.getExtCode())
|
||||||
.eq(GroupPlate::getStatus, GROUP_PLATE_STATUS.code("入库"));
|
.eq(GroupPlate::getStatus, GROUP_PLATE_STATUS.code("入库"));
|
||||||
if (!StringUtils.isEmpty(invParam.getPcsn())) query.eq(GroupPlate::getPcsn, invParam.getPcsn());
|
if (!StringUtils.isEmpty(invParam.getPcsn())) query.eq(GroupPlate::getPcsn, invParam.getPcsn());
|
||||||
GroupPlate groupPlate = iMdPbGroupplateService.getOne(query);
|
List<GroupPlate> groupPlateList = iMdPbGroupplateService.list(query);
|
||||||
if (ObjectUtils.isNotEmpty(groupPlate)) {
|
for (GroupPlate groupPlate : groupPlateList) {
|
||||||
//添加库存变动记录
|
//添加库存变动记录
|
||||||
StIvtStructivtflow record = new StIvtStructivtflow();
|
StIvtStructivtflow record = new StIvtStructivtflow();
|
||||||
record.setId(IdUtil.getStringId());
|
record.setId(IdUtil.getStringId());
|
||||||
|
|||||||
Reference in New Issue
Block a user