11-08-修改

This commit is contained in:
2025-11-08 20:02:21 +08:00
parent 245cdb40f7
commit feb0e49da3
10 changed files with 57 additions and 24 deletions

View File

@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity; import org.dromara.common.mybatis.core.domain.BaseEntity;
import java.io.Serial; import java.io.Serial;
import java.math.BigDecimal;
import java.time.LocalDate; import java.time.LocalDate;
/** /**
@ -99,22 +100,22 @@ public class XzdContractChange extends BaseEntity {
/** /**
* 原合同造价 * 原合同造价
*/ */
private Long originalContractCost; private BigDecimal originalContractCost;
/** /**
* 变更合同造价 * 变更合同造价
*/ */
private Long changedContractCost; private BigDecimal changedContractCost;
/** /**
* 变更后总造价 * 变更后总造价
*/ */
private Long postChangeTotalCost; private BigDecimal postChangeTotalCost;
/** /**
* 累计变更金额 * 累计变更金额
*/ */
private Long cumulativeChangeAmount; private BigDecimal cumulativeChangeAmount;
/** /**
* 变更原合同单项已结工程量 * 变更原合同单项已结工程量
@ -184,7 +185,7 @@ public class XzdContractChange extends BaseEntity {
/** /**
* 合同累计变更金额 * 合同累计变更金额
*/ */
private Long contractCumulativeChangeAmount; private BigDecimal contractCumulativeChangeAmount;
/** /**
* 附件ID多个逗号分隔 * 附件ID多个逗号分隔

View File

@ -149,7 +149,7 @@ public class XzdContractDetails extends BaseEntity {
/** /**
* 印章名称 * 印章名称
*/ */
private Long sealName; private String sealName;
/** /**
* 大写合同含税合计 * 大写合同含税合计

View File

@ -160,8 +160,8 @@ public class XzdContractDetailsBo extends BaseEntity {
/** /**
* 印章名称 * 印章名称
*/ */
@NotNull(message = "印章名称不能为空", groups = { AddGroup.class, EditGroup.class }) @NotNull(message = "印章不能为空", groups = { AddGroup.class, EditGroup.class })
private Long sealName; private String sealName;
/** /**
* 大写合同含税合计 * 大写合同含税合计

View File

@ -261,7 +261,7 @@ public class XzdContractChangeVo implements Serializable {
* 合同累计变更金额 * 合同累计变更金额
*/ */
@ExcelProperty(value = "合同累计变更金额") @ExcelProperty(value = "合同累计变更金额")
private Long contractCumulativeChangeAmount; private BigDecimal contractCumulativeChangeAmount;
/** /**
* 附件ID多个逗号分隔 * 附件ID多个逗号分隔

View File

@ -223,12 +223,12 @@ public class XzdContractDetailsVo implements Serializable {
* 印章名称 * 印章名称
*/ */
@ExcelProperty(value = "印章名称") @ExcelProperty(value = "印章名称")
private Long sealName; private String sealName;
/** /**
* 印章名称详情 * 印章名称详情
*/ */
private String sealNameDetail; private List<XzdBusinessSeal> sealNameDetail;
/** /**
* 大写合同含税合计 * 大写合同含税合计

View File

@ -1,8 +1,11 @@
package org.dromara.xzd.mapper; package org.dromara.xzd.mapper;
import org.dromara.xzd.domain.XzdContractDetails;
import org.dromara.xzd.domain.vo.XzdContractDetailsVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus; import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.xzd.domain.XzdContractDetails;
import org.dromara.xzd.domain.bo.XzdContractDetailsBo;
import org.dromara.xzd.domain.vo.XzdContractDetailsVo;
import java.util.List;
/** /**
* 承包合同信息Mapper接口 * 承包合同信息Mapper接口
@ -12,4 +15,6 @@ import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
*/ */
public interface XzdContractDetailsMapper extends BaseMapperPlus<XzdContractDetails, XzdContractDetailsVo> { public interface XzdContractDetailsMapper extends BaseMapperPlus<XzdContractDetails, XzdContractDetailsVo> {
List<XzdContractDetailsVo> search(XzdContractDetailsBo bo);
} }

View File

@ -23,7 +23,6 @@ import org.dromara.xzd.comprehensive.domain.XzdHtglHtbgqd;
import org.dromara.xzd.comprehensive.service.IXzdHtglHtbgqdService; import org.dromara.xzd.comprehensive.service.IXzdHtglHtbgqdService;
import org.dromara.xzd.domain.*; import org.dromara.xzd.domain.*;
import org.dromara.xzd.domain.bo.XzdContractDetailsBo; import org.dromara.xzd.domain.bo.XzdContractDetailsBo;
import org.dromara.xzd.domain.vo.XzdBusinessSealVo;
import org.dromara.xzd.domain.vo.XzdContractDetailsVo; import org.dromara.xzd.domain.vo.XzdContractDetailsVo;
import org.dromara.xzd.domain.vo.XzdProjectTypeVo; import org.dromara.xzd.domain.vo.XzdProjectTypeVo;
import org.dromara.xzd.domain.vo.XzdSupplierInfoVo; import org.dromara.xzd.domain.vo.XzdSupplierInfoVo;
@ -35,10 +34,7 @@ import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays; import java.util.*;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/** /**
* 承包合同信息Service业务层处理 * 承包合同信息Service业务层处理
@ -84,6 +80,8 @@ public class XzdContractDetailsServiceImpl extends ServiceImpl<XzdContractDetail
private XzdProjectTypeServiceImpl xzdProjectTypeService; private XzdProjectTypeServiceImpl xzdProjectTypeService;
// @Autowired // @Autowired
// private XzdContractTerminationServiceImpl xzdContractTerminationService; // private XzdContractTerminationServiceImpl xzdContractTerminationService;
@Autowired
private XzdContractChangeServiceImpl xzdContractChangeService;
/** /**
* 查询承包合同信息 * 查询承包合同信息
@ -518,11 +516,16 @@ public class XzdContractDetailsServiceImpl extends ServiceImpl<XzdContractDetail
// } // }
//印章名称 //印章名称
if (info.getSealName() != null) { if (info.getSealName() != null) {
XzdBusinessSealVo sealVo = xzdBusinessSealService.queryById(info.getSealName()); List<XzdBusinessSeal> xzdBusinessInfos = new ArrayList<>();
if (sealVo != null) { String[] ids = info.getSealName().split(",");
info.setSealNameDetail(sealVo.getYzName()); for (String id : ids) {
XzdBusinessSeal byId = xzdBusinessSealService.getById(id);
if (byId != null){
xzdBusinessInfos.add(byId);
} }
} }
info.setSealNameDetail(xzdBusinessInfos);
}
//签约组织(供应商) //签约组织(供应商)
if (info.getSigningOrganization() != null) { if (info.getSigningOrganization() != null) {
XzdSupplierInfoVo xzdSupplierInfoVo2 = xzdSupplierInfoService.queryById(info.getSigningOrganization()); XzdSupplierInfoVo xzdSupplierInfoVo2 = xzdSupplierInfoService.queryById(info.getSigningOrganization());
@ -577,6 +580,16 @@ public class XzdContractDetailsServiceImpl extends ServiceImpl<XzdContractDetail
XzdBudgetClassification budgetClassification = xzdBudgetClassificationService.getById(info.getBudgetClassification()); XzdBudgetClassification budgetClassification = xzdBudgetClassificationService.getById(info.getBudgetClassification());
info.setBudgetClassificationObj(budgetClassification); info.setBudgetClassificationObj(budgetClassification);
} }
//设置变更后的金额
LambdaQueryWrapper<XzdContractChange> lambdaQueryWrapper5 = new LambdaQueryWrapper<>();
lambdaQueryWrapper5.eq(XzdContractChange::getContractCodeId, info.getId());
lambdaQueryWrapper5.orderByDesc(XzdContractChange::getCreateTime);
List<XzdContractChange> list5 = xzdContractChangeService.list(lambdaQueryWrapper5);
if (list5 != null && !list5.isEmpty()){
info.setContractAmount(list5.getFirst().getPostChangeTotalCost());
}
} }
} }

View File

@ -678,7 +678,10 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe
LambdaQueryWrapper<XzdCustomertypeInfo> xzdCustomertypeInfoLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<XzdCustomertypeInfo> xzdCustomertypeInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
xzdCustomertypeInfoLambdaQueryWrapper.eq(XzdCustomertypeInfo::getType,"2"); xzdCustomertypeInfoLambdaQueryWrapper.eq(XzdCustomertypeInfo::getType,"2");
xzdCustomertypeInfoLambdaQueryWrapper.eq(XzdCustomertypeInfo::getCustomerinformationId, id); xzdCustomertypeInfoLambdaQueryWrapper.eq(XzdCustomertypeInfo::getCustomerinformationId, id);
xzdCustomertypeInfoService.remove(xzdCustomertypeInfoLambdaQueryWrapper); List<XzdCustomertypeInfo> list = xzdCustomertypeInfoService.list(xzdCustomertypeInfoLambdaQueryWrapper);
if (!list.isEmpty()) {
xzdCustomertypeInfoService.removeByIds(list);
}
//处理供应物料 //处理供应物料
LambdaQueryWrapper<XzdSupplyMaterials> xzdSupplyMaterialsLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<XzdSupplyMaterials> xzdSupplyMaterialsLambdaQueryWrapper = new LambdaQueryWrapper<>();

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.xzd.mapper.XzdContractDetailsMapper">
<select id="search" resultType="org.dromara.xzd.domain.vo.XzdContractDetailsVo">
</select>
</mapper>

View File

@ -21,8 +21,8 @@
supplement.responsible_department as fgbm, supplement.responsible_department as fgbm,
supplement.responsible_salesman as fgywy, supplement.responsible_salesman as fgywy,
supplement.supplier_status as gyszt, supplement.supplier_status as gyszt,
(select tp.customer_type FROM xzd_customertype_info ti LEFT JOIN xzd_customertype tp on ti.customertype_id = tp.id WHERE ti.primary_class like '1' LIMIT 1) as gyslx, (select ct.customer_type from (select info.id,ti.type,ti.primary_class,ti.customertype_id,info.unit_code from xzd_customertype_info ti left join xzd_supplier_info info on ti.customerinformation_id = info.id and ti.type like '2' where info.id is not NULL) as temp left join xzd_customertype ct on temp.customertype_id = ct.id where temp.id = info.id and temp.primary_class like '1') as gyslx,
# type.customer_type as gyslx, # type.customer_type as gyslx,
supplement.supplier_level as gysdj, supplement.supplier_level as gysdj,
info.is_group_supplier as isGroupSupplier, info.is_group_supplier as isGroupSupplier,
info.is_blacklist as isBlacklist, info.is_blacklist as isBlacklist,