diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java
index 64475a59..f7c2789b 100644
--- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java
+++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java
@@ -20,11 +20,6 @@ public class SltAgreementInfo {
*编码
*/
private String maCode;
-
- /**
- *直转数量
- */
- private Integer rotationNum;
/**
*当前在用量
*/
diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml
index c3fafa73..53f05850 100644
--- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml
+++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/WorkSiteDirectManageMapper.xml
@@ -90,7 +90,7 @@
)
- insert into direct_apply_info(direct_id,type_id,ma_id,direct_num)
+ insert into direct_apply_details(direct_id,type_id,ma_id,direct_num)
values (#{directId},#{typeId},#{maId}, #{directNum})
@@ -216,9 +216,93 @@
#{item.remark,jdbcType=VARCHAR}, #{item.companyId,jdbcType=INTEGER})
+
+ insert into lease_out_details
+
+
+ parent_id,
+
+
+ type_id,
+
+
+ ma_id,
+
+
+ out_num,
+
+
+ out_type,
+
+
+ create_by,
+
+
+ update_by,
+
+
+ remark,
+
+
+ company_id,
+
+
+ car_code,
+
+ create_time,
+ update_time
+
+
+
+ #{parentId},
+
+
+ #{typeId},
+
+
+ #{maId},
+
+
+ #{outNum},
+
+
+ #{outType},
+
+
+ #{createBy},
+
+
+ #{updateBy},
+
+
+ #{remark},
+
+
+ #{companyId},
+
+
+ #{carCode},
+
+ NOW(),
+ NOW()
+
+
update direct_apply_info set status = #{status} where id = #{id}
+
+ UPDATE
+ lease_apply_details
+ SET
+ al_num = IF(al_num IS NULL, #{record.outNum}, al_num + #{record.outNum}),
+
+ update_by = #{record.updateBy},
+
+ update_time = now(),
+ status = '2'
+ WHERE
+ parennt_id = #{record.parentId} and type_id = #{record.typeId}
+
delete
from lease_user_book
@@ -250,4 +334,9 @@
+
\ No newline at end of file