fix bug
This commit is contained in:
+66
@@ -0,0 +1,66 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.transport.pojo.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 应收应付费用调整试算请求
|
||||||
|
*
|
||||||
|
* @author Chill
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "应收应付费用调整试算请求")
|
||||||
|
public class ReceivablePayableFeeCalculateRequest implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "应收应付明细ID")
|
||||||
|
private Long detailId;
|
||||||
|
|
||||||
|
@Schema(description = "费用行ID")
|
||||||
|
private Long feeId;
|
||||||
|
|
||||||
|
@Schema(description = "运输量")
|
||||||
|
private BigDecimal transportQuantity;
|
||||||
|
|
||||||
|
@Schema(description = "里程")
|
||||||
|
private BigDecimal mileage;
|
||||||
|
|
||||||
|
@Schema(description = "运输费")
|
||||||
|
private BigDecimal freightAmount;
|
||||||
|
|
||||||
|
@Schema(description = "动态费用项目")
|
||||||
|
private Map<String, BigDecimal> feeItems;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
-- MySQL 5.7+ 兼容:为应收应付货物费用明细增加变更原因。
|
||||||
|
-- 请在 transport 数据库执行。本脚本使用 information_schema 判断,可重复执行。
|
||||||
|
|
||||||
|
DELIMITER $$
|
||||||
|
|
||||||
|
DROP PROCEDURE IF EXISTS `upgrade_receivable_payable_cargo_fee_change_reason_20260821`$$
|
||||||
|
CREATE PROCEDURE `upgrade_receivable_payable_cargo_fee_change_reason_20260821`()
|
||||||
|
BEGIN
|
||||||
|
DECLARE db_name varchar(128);
|
||||||
|
SET db_name = DATABASE();
|
||||||
|
|
||||||
|
IF NOT EXISTS (
|
||||||
|
SELECT 1
|
||||||
|
FROM information_schema.columns
|
||||||
|
WHERE table_schema = db_name
|
||||||
|
AND table_name = 'blade_receivable_payable_cargo_fee'
|
||||||
|
AND column_name = 'change_reason'
|
||||||
|
) THEN
|
||||||
|
ALTER TABLE `blade_receivable_payable_cargo_fee`
|
||||||
|
ADD COLUMN `change_reason` varchar(300) DEFAULT NULL COMMENT '变更原因' AFTER `remark`;
|
||||||
|
END IF;
|
||||||
|
END$$
|
||||||
|
|
||||||
|
CALL `upgrade_receivable_payable_cargo_fee_change_reason_20260821`()$$
|
||||||
|
DROP PROCEDURE `upgrade_receivable_payable_cargo_fee_change_reason_20260821`$$
|
||||||
|
|
||||||
|
DELIMITER ;
|
||||||
Reference in New Issue
Block a user