From 6c5a14c811b3977600864199991b03f041d7a027 Mon Sep 17 00:00:00 2001 From: bonus <1203338439@qq.com> Date: Fri, 7 Mar 2025 11:05:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A5=E5=A4=A7=E4=BB=A3=E5=B0=8F=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E6=8F=92=E5=85=A5=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sgzb/base/api/domain/LeaseOutDetails.java | 2 +- .../sgzb/app/domain/LeaseApplyDetails.java | 9 ++++++- .../bonus/sgzb/material/domain/TreeNode.java | 2 ++ .../mapper/app/LeaseApplyDetailsMapper.xml | 26 +++++++++---------- .../mapper/app/LeaseOutDetailsMapper.xml | 26 ++++++++++++++++++- .../mapper/material/SelectMapper.xml | 5 ++-- 6 files changed, 52 insertions(+), 18 deletions(-) diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/LeaseOutDetails.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/LeaseOutDetails.java index 8cbede7..1fa585d 100644 --- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/LeaseOutDetails.java +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/LeaseOutDetails.java @@ -167,4 +167,4 @@ public class LeaseOutDetails implements Serializable { private int preStoreNum; /** 操作后库存 */ private int postStoreNum; -} \ No newline at end of file +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyDetails.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyDetails.java index b886051..f949c02 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyDetails.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/domain/LeaseApplyDetails.java @@ -8,6 +8,7 @@ import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; +import java.math.BigDecimal; import java.util.Date; import java.util.List; @@ -173,4 +174,10 @@ public class LeaseApplyDetails implements Serializable { private String maStatus; @ApiModelProperty(value="预领数量-已领数量的差值") private Integer nums; -} \ No newline at end of file + + @ApiModelProperty(value="租赁单价") + private BigDecimal leasePrice; + + @ApiModelProperty(value="代替规格id") + private Integer replaceTypeId; +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/TreeNode.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/TreeNode.java index b5f0b67..20e79de 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/TreeNode.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/TreeNode.java @@ -36,6 +36,8 @@ public class TreeNode { private String manageType; + private String isReplace; + @JsonInclude(JsonInclude.Include.NON_EMPTY) private List children = new ArrayList<>(); } diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml index 7207223..95be6f0 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml @@ -19,12 +19,12 @@ - id, parennt_id, type_id, pre_num, al_num, `status`, create_by, create_time, update_by, + id, parennt_id, type_id, pre_num, al_num, `status`, create_by, create_time, update_by, update_time, remark, company_id - \ No newline at end of file + diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml index f1a04c7..608e286 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml @@ -242,6 +242,18 @@ car_code, + + type_name, + + + model_name, + + + lease_price, + + + replace_type_id, + create_time, update_time @@ -276,6 +288,18 @@ #{carCode}, + + #{typeName}, + + + #{model_name}, + + + #{leasePrice}, + + + #{replaceTypeId}, + NOW(), NOW() @@ -483,4 +507,4 @@ parennt_id = #{record.parentId} AND type_id = #{record.typeId} - \ No newline at end of file + diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SelectMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SelectMapper.xml index 5d9068b..139d2ac 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SelectMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SelectMapper.xml @@ -111,7 +111,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" IFNULL(mt.num, 0) END as num, mt.model_code AS modelCode, - mt.manage_type AS manageType + mt.manage_type AS manageType, + mt.is_replace as isReplace FROM ma_type mt left join (SELECT mt.type_id, mt2.type_name AS typeName, @@ -228,4 +229,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join bm_unit_info bui on slc.unit_id = bui.unit_id - \ No newline at end of file +