bug修改

This commit is contained in:
lg
2025-10-25 20:05:43 +08:00
parent 25c4eee464
commit f953a96c36
29 changed files with 71 additions and 76 deletions

View File

@ -6,7 +6,7 @@ import java.io.Serial;
@Data
public class XzdCustomerSuppliervo {
public class XzdCustomerSupplierVos {
@Serial
private static final long serialVersionUID = 1L;

View File

@ -1,6 +1,6 @@
package org.dromara.common.core.service;
import org.dromara.common.core.domain.vo.XzdCustomerSuppliervo;
import org.dromara.common.core.domain.vo.XzdCustomerSupplierVos;
public interface XzdCustomerSupplierService {
@ -10,5 +10,5 @@ public interface XzdCustomerSupplierService {
* @param id 主键
* @return 供应商-客户中间
*/
XzdCustomerSuppliervo queryByIdone(Long id);
XzdCustomerSupplierVos queryByIdone(Long id);
}

View File

@ -44,10 +44,10 @@ public interface TransConstant {
String XZD_KHXX_ID_TO_NAME = "khxx_id_to_name";
/**
* 供应商id转名称
*/
String XZD_GYSXX_ID_TO_NAME = "gysxx_id_to_name";
// /**
// * 供应商id转名称
// */
// String XZD_KHXX_ID_TO_NAME = "gysxx_id_to_name";
/**
* 新中大项目id转名称

View File

@ -7,7 +7,7 @@ import org.dromara.common.translation.constant.TransConstant;
import org.dromara.common.translation.core.TranslationInterface;
@AllArgsConstructor
@TranslationType(type = TransConstant.XZD_GYSXX_ID_TO_NAME)
//@TranslationType(type = TransConstant.XZD_KHXX_ID_TO_NAME)
public class XzdSupplierInfoImpl implements TranslationInterface<String> {
private final XzdSupplierInfoService xzdSupplierInfoService;

View File

@ -147,7 +147,7 @@ public class XzdBidPreProjectVo implements Serializable {
/**
* 联投单位
*/
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "jointInvestmentEntity")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "jointInvestmentEntity")
private String jointInvestmentEntityName;
/**

View File

@ -184,7 +184,7 @@ public class XzdBqlxProjectInfoVo implements Serializable {
* 建设单位
*/
@ExcelProperty(value = "建设单位")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "constructionUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "constructionUnit")
private String constructionUnitName;
/**
@ -208,7 +208,7 @@ public class XzdBqlxProjectInfoVo implements Serializable {
* 招标单位
*/
@ExcelProperty(value = "招标单位")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "biddingUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "biddingUnit")
private String biddingUnitName;
/**

View File

@ -86,7 +86,7 @@ public class XzdBiddingFileEstimateVo implements Serializable {
* 招标单位
*/
@ExcelProperty(value = "招标单位")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "biddingUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "biddingUnit")
private String biddingUnitName;
/**

View File

@ -123,7 +123,7 @@ public class XzdCsContractChangeVo implements Serializable {
*/
@ExcelProperty(value = "乙方单位")
private Long partyB;
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyB")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyB")
private String partyBName;
/**

View File

@ -115,7 +115,7 @@ public class XzdCsContractInformationVo implements Serializable {
*/
@ExcelProperty(value = "乙方单位")
private Long partyB;
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyB")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyB")
private String partyBName;
/**
@ -151,7 +151,7 @@ public class XzdCsContractInformationVo implements Serializable {
*/
@ExcelProperty(value = "开票单位")
private Long invoiceIssuer;
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "invoiceIssuer")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "invoiceIssuer")
private String invoiceIssuerName;
/**

View File

@ -90,7 +90,7 @@ public class XzdCsContractSuspendVo implements Serializable {
*/
@ExcelProperty(value = "乙方单位")
private Long artyBUnit;
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "artyBUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "artyBUnit")
private String artyBUnitName;
/**

View File

@ -100,7 +100,7 @@ public class XzdPurchaseContractSuspendVo implements Serializable {
* 乙方单位名称
*/
@ExcelProperty(value = "乙方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "artyBUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "artyBUnit")
private String artyBUnitName;
/**
@ -113,7 +113,7 @@ public class XzdPurchaseContractSuspendVo implements Serializable {
* 甲方单位名称
*/
@ExcelProperty(value = "甲方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyAUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyAUnit")
private String partyAUnitName;

View File

@ -55,8 +55,8 @@ public class XzdPurchaseContractSuspendServiceImpl extends ServiceImpl<XzdPurcha
private final IXzdPurchaseContractInformationService xzdPurchaseContractInformationService;
@Autowired
private XzdSupplierInfoServiceImpl xzdSupplierInfoService;
// @Autowired
// private XzdSupplierInfoServiceImpl xzdSupplierInfoService;
@Autowired

View File

@ -132,7 +132,7 @@ public class XzdPurchaseContractAlterationVo implements Serializable {
* 甲方单位
*/
@ExcelProperty(value = "甲方单位")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyAUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyAUnit")
private String partyAUnitName;
@ -152,7 +152,7 @@ public class XzdPurchaseContractAlterationVo implements Serializable {
* 乙方单位
*/
@ExcelProperty(value = "乙方单位")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "artyBUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "artyBUnit")
private String artyBUnitName;
/**

View File

@ -130,7 +130,7 @@ public class XzdSubcontractVo implements Serializable {
* 甲方单位名称
*/
@ExcelProperty(value = "甲方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyAUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyAUnit")
private String partyAUnitName;
@ -144,7 +144,7 @@ public class XzdSubcontractVo implements Serializable {
* 乙方单位名称
*/
@ExcelProperty(value = "乙方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyBUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyBUnit")
private String partyBUnitName;
/**

View File

@ -120,7 +120,7 @@ public class XzdPurchaseContractInformationVo implements Serializable {
* 甲方单位名称
*/
@ExcelProperty(value = "甲方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyAUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyAUnit")
private String partyAUnitName;
/**
@ -221,7 +221,7 @@ public class XzdPurchaseContractInformationVo implements Serializable {
* 乙方单位名称
*/
@ExcelProperty(value = "乙方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyBUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyBUnit")
private String partyBUnitName;
/**

View File

@ -111,7 +111,7 @@ public class XzdGuaranteeInfoVo implements Serializable {
* 申请机构名称
*/
@ExcelProperty(value = "申请机构名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "applicationOrganization")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "applicationOrganization")
private String applicationOrganizationName;
/**
@ -131,7 +131,7 @@ public class XzdGuaranteeInfoVo implements Serializable {
* 甲方单位名称
*/
@ExcelProperty(value = "甲方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "applicationOrganization")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "applicationOrganization")
private String partyAUnitName;
/**
@ -144,7 +144,7 @@ public class XzdGuaranteeInfoVo implements Serializable {
* 乙方单位名称
*/
@ExcelProperty(value = "乙方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "applicationOrganization")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "applicationOrganization")
private String partyBUnitName;
/**

View File

@ -136,7 +136,7 @@ public class XzdDepositApplicationVo implements Serializable {
* 收取保证金单位
*/
@ExcelProperty(value = "收取保证金单位")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "depositReceivingUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "depositReceivingUnit")
private String depositReceivingUnitName;
/**

View File

@ -141,7 +141,7 @@ public class XzdFbhtzbjthVo implements Serializable {
* 申请单位
*/
@ExcelProperty(value = "申请单位")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "applicationUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "applicationUnit")
private String applicationUnitName;
/**

View File

@ -214,7 +214,7 @@ public class AppreciationInvoiceVo implements Serializable {
* 购方名称
*/
@ExcelProperty(value = "购方名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "buyerName")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "buyerName")
private String buyerNameS;

View File

@ -124,7 +124,7 @@ public class XzdSfkCaigouFkVo extends BaseEntity {
@ExcelProperty(value = "收款单位", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "带=*,必填")
private Long receiptUnit;
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "receiptUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "receiptUnit")
private String receiptUnitName;
/**

View File

@ -124,7 +124,7 @@ public class XzdSfkZonhefuwuFkVo extends BaseEntity {
@ExcelProperty(value = "收款单位", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "带=*,必填")
private Long receiptUnit;
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "receiptUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "receiptUnit")
private String receiptUnitName;
/**

View File

@ -1,7 +1,7 @@
package org.dromara.xzd.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.dromara.common.core.domain.vo.XzdCustomerSuppliervo;
import org.dromara.common.core.domain.vo.XzdCustomerSupplierVos;
import org.dromara.common.core.service.XzdCustomerSupplierService;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -133,8 +133,8 @@ public class XzdCustomerSupplierServiceImpl extends ServiceImpl<XzdCustomerSuppl
}
@Override
public XzdCustomerSuppliervo queryByIdone(Long id) {
public XzdCustomerSupplierVos queryByIdone(Long id) {
XzdCustomerSupplierVo xzdCustomerSupplierVo = baseMapper.selectVoById(id);
return MapstructUtils.convert(xzdCustomerSupplierVo, XzdCustomerSuppliervo.class);
return MapstructUtils.convert(xzdCustomerSupplierVo, XzdCustomerSupplierVos.class);
}
}

View File

@ -3,7 +3,7 @@ package org.dromara.xzd.service.impl;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.dromara.common.core.domain.vo.XzdCustomerSuppliervo;
import org.dromara.common.core.domain.vo.XzdCustomerSupplierVos;
import org.dromara.common.core.service.XzdCustomerSupplierService;
import org.dromara.common.core.service.XzdCustomerinformationService;
import org.dromara.common.core.service.XzdSupplierInfoService;
@ -189,7 +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)) {
XzdCustomerSuppliervo xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
XzdCustomerSupplierVos xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
if (xzdCustomerSuppliervo == null){
return null;
}

View File

@ -1,18 +1,13 @@
package org.dromara.xzd.service.impl;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.domain.vo.XzdCustomerSuppliervo;
import org.dromara.common.core.service.XzdCustomerSupplierService;
import org.dromara.common.core.service.XzdCustomerinformationService;
import org.dromara.common.core.service.XzdSupplierInfoService;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.SpringUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
@ -76,14 +71,12 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe
@Autowired
private XzdSupplierOpenBankServiceImpl xzdSupplierOpenBankService;
private final XzdCustomerSupplierService xzdCustomerSupplierService;
@Autowired
private SysUserServiceImpl sysUserService;
@Autowired
private SysOssServiceImpl sysOssService;
private final XzdCustomerinformationService xzdCustomerinformationService;
/**
@ -900,28 +893,30 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe
@Override
public String selectNmaeByIds(String ids) {
List<String> list = new ArrayList<>();
for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
XzdCustomerSuppliervo xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
if (xzdCustomerSuppliervo == null){
return null;
}
if (xzdCustomerSuppliervo.getType().equals("1")){
String s = xzdCustomerinformationService.selectNmaeById(id);
if (StringUtils.isNotBlank(s)){
list.add(s);
}
}else {
String s = this.selectNmaeById(id);
if (StringUtils.isNotBlank(s)){
list.add(s);
}
}
}
return String.join(StringUtils.SEPARATOR, list);
// List<String> list = new ArrayList<>();
// for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
// XzdCustomerSupplierVos xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
// if (xzdCustomerSuppliervo == null){
// return null;
// }
// if (xzdCustomerSuppliervo.getType().equals("1")){
// String s = xzdCustomerinformationService.selectNmaeById(id);
// if (StringUtils.isNotBlank(s)){
// list.add(s);
// }
// }else {
// String s = this.selectNmaeById(id);
// if (StringUtils.isNotBlank(s)){
// list.add(s);
// }
//
// }
// }
// return String.join(StringUtils.SEPARATOR, list);
return null;
}
@Override
public String selectNmaeById(Long id) {
XzdSupplierInfoVo xzdSupplierInfoVo = this.baseMapper.selectVoById(Convert.toLong(id));

View File

@ -142,7 +142,7 @@ public class XzdJsCgJungonVo implements Serializable {
*/
@ExcelProperty(value = "乙方单位")
private Long partyB;
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyB")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyB")
private String partyBName;
/**

View File

@ -131,7 +131,7 @@ public class SettlementOfSubcontractingContractVo implements Serializable {
* 结算单位 客户信息名称
*/
@ExcelProperty(value = "结算单位 客户信息名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "settlementUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "settlementUnit")
private String settlementUnitName;
/**

View File

@ -121,7 +121,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
* 甲方单位名称
*/
@ExcelProperty(value = "甲方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyAUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyAUnit")
private String partyAUnitName;
@ -135,7 +135,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
* 乙方单位名称
*/
@ExcelProperty(value = "乙方单位名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyBUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyBUnit")
private String partyBUnitName;
/**
@ -215,7 +215,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
* 业主单位名称 客户
*/
@ExcelProperty(value = "业主单位名称 客户")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "ownerUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "ownerUnit")
private String ownerUnitName;
/**
@ -228,7 +228,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
* 监理单位名称 客户
*/
@ExcelProperty(value = "监理单位名称 客户")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "supervisionUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "supervisionUnit")
private String supervisionUnitName;
/**
@ -241,7 +241,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
* 施工单位名称 客户
*/
@ExcelProperty(value = "施工单位名称 客户")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "constructionUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "constructionUnit")
private String constructionUnitName;
/**
@ -254,7 +254,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
* 审核单位名称 客户
*/
@ExcelProperty(value = "审核单位名称 客户")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "auditUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "auditUnit")
private String auditUnitName;

View File

@ -109,7 +109,7 @@ public class DetailOfEarningsVo implements Serializable {
* 甲方单位名称 客户
*/
@ExcelProperty(value = "甲方单位名称 客户")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "partyAUnit")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "partyAUnit")
private String partyAUnitName;
/**

View File

@ -102,7 +102,7 @@ public class StatementOfExpendituresVo implements Serializable {
* 供应商名称
*/
@ExcelProperty(value = "供应商名称")
@Translation(type = TransConstant.XZD_GYSXX_ID_TO_NAME, mapper = "supplier")
@Translation(type = TransConstant.XZD_KHXX_ID_TO_NAME, mapper = "supplier")
private String supplierName;
/**