Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
潘荣晟
2025-10-30 09:20:26 +08:00
214 changed files with 9812 additions and 586 deletions

View File

@@ -2,9 +2,11 @@ package com.zt.plat.module.contractorder.api;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.module.contractorder.api.dto.contract.ContractRespDTO;
import com.zt.plat.module.contractorder.api.dto.order.PurchaseOrderWithDetailsDTO;
import com.zt.plat.module.contractorder.api.vo.contract.international.ContractRequest;
import com.zt.plat.module.contractorder.api.vo.contract.international.IntContract;
import com.zt.plat.module.contractorder.api.vo.contract.international.IntContractPageReq;
import com.zt.plat.module.contractorder.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -39,6 +41,10 @@ public interface ContractApi {
CommonResult<List<PurchaseOrderWithDetailsDTO>> getOrderByOrderIds(@RequestBody List<Long> ids);
@PostMapping(PREFIX + "/push")
@Operation(summary = "国贸2.0系统创建合同调用")
CommonResult<Boolean> push(@Valid @RequestBody ContractRequest reqVO) throws Exception;
@Operation(summary = "国贸2.0系统推送合同")
CommonResult<Boolean> push(@Valid @RequestBody IntContract reqVO) throws Exception;
@GetMapping(PREFIX + "/logistics/list/page")
@Operation(summary = "国贸2.0系统合同分页查询")
CommonResult<PageResult<IntContract>> logisticsListPage(IntContractPageReq pageReq);
}

View File

@@ -233,6 +233,9 @@ public class ContractRespDTO {
@Schema(description = "合同分类(字典SPLY_BSN_TP)")
private String businessType;
@Schema(description = "代理方名称")
private String agentName;
// 物料信息
private List<DetailRespDTO> detail;

View File

@@ -233,9 +233,15 @@ public class ContractRespVO {
@Schema(description = "ERP乙方公司名称")
private String erpSalesCompanyName;
@Schema(description = "是否内部企业(字典ERP_CTRT_YN)")
private String isInternal;
@Schema(description = "合同分类(字典SPLY_BSN_TP)")
private String businessType;
@Schema(description = "代理方名称")
private String agentName;
// 物料信息
private List<DetailRespVO> detail;

View File

@@ -208,6 +208,9 @@ public class ContractSaveReqVO {
@Schema(description = "合同分类(字典SPLY_BSN_TP)")
private String businessType;
@Schema(description = "代理方名称")
private String agentName;
// 物料信息
private List<DetailSaveReqVO> detail;

View File

@@ -0,0 +1,13 @@
package com.zt.plat.module.contractorder.api.vo.contract.international;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class IntContractPageReq extends PageParam {
@Schema(description = "合同编号")
private String contractCode;
@Schema(description = "合同名称")
private String contractName;
}

View File

@@ -8,6 +8,15 @@ import lombok.Getter;
@Getter
public enum DictEnum {
/** 供应链业务大类 */
SPLY_BSN_TP_03BX("货物保险","03BX",null),
SPLY_BSN_TP_11CC("货物保管仓储","11CC",null),
SPLY_BSN_TP_10YS("货物运输","10YS",null),
SPLY_BSN_TP_13HD("货运代理","13HD",null),
SPLY_BSN_TP_ENTED("来料加工","ENTED",null),
SPLY_BSN_TP_ENT("委托加工","ENT",null),
SPLY_BSN_TP_PUR("采购","PUR",null),
SPLY_BSN_TP_SALE("销售","SALE",null),
/** 业务类型 */
BSN_TP_3("物流合同","3",null),
/** ERP合同类型编码 */

View File

@@ -394,4 +394,9 @@ public class ContractMainDO extends BusinessBaseDO {
*/
@TableField("BSN_TP")
private String businessType;
/**
* 代理方名称
*/
@TableField("AGT_NAME")
private String agentName;
}

View File

@@ -17,10 +17,11 @@ public interface ContractMainMapper extends BaseMapperX<ContractMainDO> {
default PageResult<ContractMainDO> selectContractPage(ContractPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ContractMainDO>()
.likeIfPresent(ContractMainDO::getContractName, reqVO.getContractName())
.eqIfPresent(ContractMainDO::getContractPaperNumber, reqVO.getContractPaperNumber())
.likeIfPresent(ContractMainDO::getContractPaperNumber, reqVO.getContractPaperNumber())
.eqIfPresent(ContractMainDO::getDirection, reqVO.getDirection())
.betweenIfPresent(ContractMainDO::getSignDate, reqVO.getSignDate())
.likeIfPresent(ContractMainDO::getPurchaseCompanyName, reqVO.getPurchaseCompanyName())
.likeIfPresent(ContractMainDO::getSalesCompanyName, reqVO.getSalesCompanyName())
.eqIfPresent(ContractMainDO::getBasicAmount, reqVO.getBasicAmount())
.eqIfPresent(ContractMainDO::getStatus, reqVO.getStatus())
.eqIfPresent(ContractMainDO::getBusinessType, reqVO.getBusinessType())