bug修改
This commit is contained in:
@ -6,7 +6,7 @@ import java.io.Serial;
|
|||||||
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class XzdCustomerSuppliervo {
|
public class XzdCustomerSupplierVos {
|
||||||
|
|
||||||
@Serial
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.common.core.service;
|
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 {
|
public interface XzdCustomerSupplierService {
|
||||||
|
|
||||||
@ -10,5 +10,5 @@ public interface XzdCustomerSupplierService {
|
|||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 供应商-客户中间
|
* @return 供应商-客户中间
|
||||||
*/
|
*/
|
||||||
XzdCustomerSuppliervo queryByIdone(Long id);
|
XzdCustomerSupplierVos queryByIdone(Long id);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,10 +44,10 @@ public interface TransConstant {
|
|||||||
String XZD_KHXX_ID_TO_NAME = "khxx_id_to_name";
|
String XZD_KHXX_ID_TO_NAME = "khxx_id_to_name";
|
||||||
|
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* 供应商id转名称
|
// * 供应商id转名称
|
||||||
*/
|
// */
|
||||||
String XZD_GYSXX_ID_TO_NAME = "gysxx_id_to_name";
|
// String XZD_KHXX_ID_TO_NAME = "gysxx_id_to_name";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新中大项目id转名称
|
* 新中大项目id转名称
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import org.dromara.common.translation.constant.TransConstant;
|
|||||||
import org.dromara.common.translation.core.TranslationInterface;
|
import org.dromara.common.translation.core.TranslationInterface;
|
||||||
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@TranslationType(type = TransConstant.XZD_GYSXX_ID_TO_NAME)
|
//@TranslationType(type = TransConstant.XZD_KHXX_ID_TO_NAME)
|
||||||
public class XzdSupplierInfoImpl implements TranslationInterface<String> {
|
public class XzdSupplierInfoImpl implements TranslationInterface<String> {
|
||||||
|
|
||||||
private final XzdSupplierInfoService xzdSupplierInfoService;
|
private final XzdSupplierInfoService xzdSupplierInfoService;
|
||||||
|
|||||||
@ -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;
|
private String jointInvestmentEntityName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -184,7 +184,7 @@ public class XzdBqlxProjectInfoVo implements Serializable {
|
|||||||
* 建设单位
|
* 建设单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "建设单位")
|
@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;
|
private String constructionUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,7 +208,7 @@ public class XzdBqlxProjectInfoVo implements Serializable {
|
|||||||
* 招标单位
|
* 招标单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "招标单位")
|
@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;
|
private String biddingUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -86,7 +86,7 @@ public class XzdBiddingFileEstimateVo implements Serializable {
|
|||||||
* 招标单位
|
* 招标单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "招标单位")
|
@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;
|
private String biddingUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -123,7 +123,7 @@ public class XzdCsContractChangeVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位")
|
@ExcelProperty(value = "乙方单位")
|
||||||
private Long partyB;
|
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;
|
private String partyBName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -115,7 +115,7 @@ public class XzdCsContractInformationVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位")
|
@ExcelProperty(value = "乙方单位")
|
||||||
private Long partyB;
|
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;
|
private String partyBName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -151,7 +151,7 @@ public class XzdCsContractInformationVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "开票单位")
|
@ExcelProperty(value = "开票单位")
|
||||||
private Long invoiceIssuer;
|
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;
|
private String invoiceIssuerName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -90,7 +90,7 @@ public class XzdCsContractSuspendVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位")
|
@ExcelProperty(value = "乙方单位")
|
||||||
private Long artyBUnit;
|
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;
|
private String artyBUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -100,7 +100,7 @@ public class XzdPurchaseContractSuspendVo implements Serializable {
|
|||||||
* 乙方单位名称
|
* 乙方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位名称")
|
@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;
|
private String artyBUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -113,7 +113,7 @@ public class XzdPurchaseContractSuspendVo implements Serializable {
|
|||||||
* 甲方单位名称
|
* 甲方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "甲方单位名称")
|
@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;
|
private String partyAUnitName;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -55,8 +55,8 @@ public class XzdPurchaseContractSuspendServiceImpl extends ServiceImpl<XzdPurcha
|
|||||||
private final IXzdPurchaseContractInformationService xzdPurchaseContractInformationService;
|
private final IXzdPurchaseContractInformationService xzdPurchaseContractInformationService;
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
// @Autowired
|
||||||
private XzdSupplierInfoServiceImpl xzdSupplierInfoService;
|
// private XzdSupplierInfoServiceImpl xzdSupplierInfoService;
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
@ -132,7 +132,7 @@ public class XzdPurchaseContractAlterationVo implements Serializable {
|
|||||||
* 甲方单位
|
* 甲方单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "甲方单位")
|
@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;
|
private String partyAUnitName;
|
||||||
|
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ public class XzdPurchaseContractAlterationVo implements Serializable {
|
|||||||
* 乙方单位
|
* 乙方单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位")
|
@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;
|
private String artyBUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -130,7 +130,7 @@ public class XzdSubcontractVo implements Serializable {
|
|||||||
* 甲方单位名称
|
* 甲方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "甲方单位名称")
|
@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;
|
private String partyAUnitName;
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ public class XzdSubcontractVo implements Serializable {
|
|||||||
* 乙方单位名称
|
* 乙方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位名称")
|
@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;
|
private String partyBUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -120,7 +120,7 @@ public class XzdPurchaseContractInformationVo implements Serializable {
|
|||||||
* 甲方单位名称
|
* 甲方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "甲方单位名称")
|
@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;
|
private String partyAUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -221,7 +221,7 @@ public class XzdPurchaseContractInformationVo implements Serializable {
|
|||||||
* 乙方单位名称
|
* 乙方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位名称")
|
@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;
|
private String partyBUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -111,7 +111,7 @@ public class XzdGuaranteeInfoVo implements Serializable {
|
|||||||
* 申请机构名称
|
* 申请机构名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "申请机构名称")
|
@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;
|
private String applicationOrganizationName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -131,7 +131,7 @@ public class XzdGuaranteeInfoVo implements Serializable {
|
|||||||
* 甲方单位名称
|
* 甲方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "甲方单位名称")
|
@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;
|
private String partyAUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -144,7 +144,7 @@ public class XzdGuaranteeInfoVo implements Serializable {
|
|||||||
* 乙方单位名称
|
* 乙方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位名称")
|
@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;
|
private String partyBUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -136,7 +136,7 @@ public class XzdDepositApplicationVo implements Serializable {
|
|||||||
* 收取保证金单位
|
* 收取保证金单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "收取保证金单位")
|
@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;
|
private String depositReceivingUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -141,7 +141,7 @@ public class XzdFbhtzbjthVo implements Serializable {
|
|||||||
* 申请单位
|
* 申请单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "申请单位")
|
@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;
|
private String applicationUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -214,7 +214,7 @@ public class AppreciationInvoiceVo implements Serializable {
|
|||||||
* 购方名称
|
* 购方名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "购方名称")
|
@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;
|
private String buyerNameS;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -124,7 +124,7 @@ public class XzdSfkCaigouFkVo extends BaseEntity {
|
|||||||
@ExcelProperty(value = "收款单位", converter = ExcelDictConvert.class)
|
@ExcelProperty(value = "收款单位", converter = ExcelDictConvert.class)
|
||||||
@ExcelDictFormat(readConverterExp = "带=*,必填")
|
@ExcelDictFormat(readConverterExp = "带=*,必填")
|
||||||
private Long receiptUnit;
|
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;
|
private String receiptUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -124,7 +124,7 @@ public class XzdSfkZonhefuwuFkVo extends BaseEntity {
|
|||||||
@ExcelProperty(value = "收款单位", converter = ExcelDictConvert.class)
|
@ExcelProperty(value = "收款单位", converter = ExcelDictConvert.class)
|
||||||
@ExcelDictFormat(readConverterExp = "带=*,必填")
|
@ExcelDictFormat(readConverterExp = "带=*,必填")
|
||||||
private Long receiptUnit;
|
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;
|
private String receiptUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
package org.dromara.xzd.service.impl;
|
package org.dromara.xzd.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
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.XzdCustomerSupplierService;
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
@ -133,8 +133,8 @@ public class XzdCustomerSupplierServiceImpl extends ServiceImpl<XzdCustomerSuppl
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public XzdCustomerSuppliervo queryByIdone(Long id) {
|
public XzdCustomerSupplierVos queryByIdone(Long id) {
|
||||||
XzdCustomerSupplierVo xzdCustomerSupplierVo = baseMapper.selectVoById(id);
|
XzdCustomerSupplierVo xzdCustomerSupplierVo = baseMapper.selectVoById(id);
|
||||||
return MapstructUtils.convert(xzdCustomerSupplierVo, XzdCustomerSuppliervo.class);
|
return MapstructUtils.convert(xzdCustomerSupplierVo, XzdCustomerSupplierVos.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ package org.dromara.xzd.service.impl;
|
|||||||
import cn.hutool.core.convert.Convert;
|
import cn.hutool.core.convert.Convert;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
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.XzdCustomerSupplierService;
|
||||||
import org.dromara.common.core.service.XzdCustomerinformationService;
|
import org.dromara.common.core.service.XzdCustomerinformationService;
|
||||||
import org.dromara.common.core.service.XzdSupplierInfoService;
|
import org.dromara.common.core.service.XzdSupplierInfoService;
|
||||||
@ -189,7 +189,7 @@ public class XzdCustomerinformationServiceImpl extends ServiceImpl<XzdCustomerin
|
|||||||
public String selectNmaeByIds(String ids) {
|
public String selectNmaeByIds(String ids) {
|
||||||
List<String> list = new ArrayList<>();
|
List<String> list = new ArrayList<>();
|
||||||
for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
|
for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
|
||||||
XzdCustomerSuppliervo xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
|
XzdCustomerSupplierVos xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
|
||||||
if (xzdCustomerSuppliervo == null){
|
if (xzdCustomerSuppliervo == null){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,18 +1,13 @@
|
|||||||
package org.dromara.xzd.service.impl;
|
package org.dromara.xzd.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.convert.Convert;
|
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.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.dromara.common.core.domain.R;
|
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.service.XzdSupplierInfoService;
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
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.core.utils.StringUtils;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
@ -76,14 +71,12 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe
|
|||||||
@Autowired
|
@Autowired
|
||||||
private XzdSupplierOpenBankServiceImpl xzdSupplierOpenBankService;
|
private XzdSupplierOpenBankServiceImpl xzdSupplierOpenBankService;
|
||||||
|
|
||||||
private final XzdCustomerSupplierService xzdCustomerSupplierService;
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysUserServiceImpl sysUserService;
|
private SysUserServiceImpl sysUserService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysOssServiceImpl sysOssService;
|
private SysOssServiceImpl sysOssService;
|
||||||
|
|
||||||
private final XzdCustomerinformationService xzdCustomerinformationService;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -900,27 +893,29 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String selectNmaeByIds(String ids) {
|
public String selectNmaeByIds(String ids) {
|
||||||
List<String> list = new ArrayList<>();
|
// List<String> list = new ArrayList<>();
|
||||||
for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
|
// for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
|
||||||
XzdCustomerSuppliervo xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
|
// XzdCustomerSupplierVos xzdCustomerSuppliervo = xzdCustomerSupplierService.queryByIdone(id);
|
||||||
if (xzdCustomerSuppliervo == null){
|
// 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;
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String selectNmaeById(Long id) {
|
public String selectNmaeById(Long id) {
|
||||||
|
|||||||
@ -142,7 +142,7 @@ public class XzdJsCgJungonVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位")
|
@ExcelProperty(value = "乙方单位")
|
||||||
private Long partyB;
|
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;
|
private String partyBName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -131,7 +131,7 @@ public class SettlementOfSubcontractingContractVo implements Serializable {
|
|||||||
* 结算单位 客户信息名称
|
* 结算单位 客户信息名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "结算单位 客户信息名称")
|
@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;
|
private String settlementUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -121,7 +121,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
|
|||||||
* 甲方单位名称
|
* 甲方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "甲方单位名称")
|
@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;
|
private String partyAUnitName;
|
||||||
|
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
|
|||||||
* 乙方单位名称
|
* 乙方单位名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "乙方单位名称")
|
@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;
|
private String partyBUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -215,7 +215,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
|
|||||||
* 业主单位名称 客户
|
* 业主单位名称 客户
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "业主单位名称 客户")
|
@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;
|
private String ownerUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -228,7 +228,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
|
|||||||
* 监理单位名称 客户
|
* 监理单位名称 客户
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "监理单位名称 客户")
|
@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;
|
private String supervisionUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -241,7 +241,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
|
|||||||
* 施工单位名称 客户
|
* 施工单位名称 客户
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "施工单位名称 客户")
|
@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;
|
private String constructionUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -254,7 +254,7 @@ public class SettlementOfSubcontractingCompletionVo implements Serializable {
|
|||||||
* 审核单位名称 客户
|
* 审核单位名称 客户
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "审核单位名称 客户")
|
@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;
|
private String auditUnitName;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -109,7 +109,7 @@ public class DetailOfEarningsVo implements Serializable {
|
|||||||
* 甲方单位名称 客户
|
* 甲方单位名称 客户
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "甲方单位名称 客户")
|
@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;
|
private String partyAUnitName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -102,7 +102,7 @@ public class StatementOfExpendituresVo implements Serializable {
|
|||||||
* 供应商名称
|
* 供应商名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "供应商名称")
|
@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;
|
private String supplierName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user