bug修改

This commit is contained in:
lg
2025-10-25 21:05:26 +08:00
parent 8aa38063bf
commit 9a568799f4
4 changed files with 11 additions and 4 deletions

View File

@ -3,10 +3,11 @@ package org.dromara.common.core.domain.vo;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
@Data
public class XzdCustomerSupplierVos {
public class XzdCustomerSupplierVos implements Serializable {
@Serial
private static final long serialVersionUID = 1L;

View File

@ -579,7 +579,7 @@ public class XzdCorrespondentListImp implements IXzdCorrespondentList {
}
// 客户信息
xzdCustomerinformationService.removeById(dto);
// tab客户信息

View File

@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.dromara.xzd.domain.bo.XzdCustomerSupplierBo;
import org.dromara.xzd.domain.vo.XzdCustomerSupplierVo;
@ -133,7 +134,11 @@ public class XzdCustomerSupplierServiceImpl extends ServiceImpl<XzdCustomerSuppl
@Override
public XzdCustomerSupplierVos queryByIdone(Long id) {
XzdCustomerSupplierVo xzdCustomerSupplierVo = baseMapper.selectVoById(id);
return MapstructUtils.convert(xzdCustomerSupplierVo, XzdCustomerSupplierVos.class);
XzdCustomerSupplierVo xzdCustomerSupplierVo = baseMapper.selectVoOne(new LambdaQueryWrapper<XzdCustomerSupplier>().eq(XzdCustomerSupplier::getCSId, id));
XzdCustomerSupplierVos xzdCustomerSupplierVos = new XzdCustomerSupplierVos();
if (xzdCustomerSupplierVo != null) {
BeanUtils.copyProperties(xzdCustomerSupplierVo,xzdCustomerSupplierVos);
}
return xzdCustomerSupplierVos;
}
}

View File

@ -189,6 +189,7 @@ public class XzdCustomerinformationServiceImpl extends ServiceImpl<XzdCustomerin
public String selectNmaeByIds(String ids) {
List<String> list = new ArrayList<>();
for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
XzdCustomerSupplierVos xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
if (xzdCustomerSuppliervo == null){
return null;