diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/AppBackApplyAppMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/AppBackApplyAppMapper.xml
index 1a84b81..86887f8 100644
--- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/AppBackApplyAppMapper.xml
+++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/AppBackApplyAppMapper.xml
@@ -144,7 +144,7 @@
back_person,
-
+
back_time,
@@ -153,7 +153,7 @@
direct_audit_by,
-
+
direct_audit_time,
@@ -185,7 +185,7 @@
#{backPerson},
-
+
#{backTime},
@@ -194,7 +194,7 @@
#{directAuditBy},
-
+
#{directAuditTime},
diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml
index a8e3972..e49ea65 100644
--- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml
+++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml
@@ -30,30 +30,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- insert into ma_part_type(
+ insert into ma_part_type (
pa_id,
pa_name,
- parent_id,
+ parent_id,
status,
num,
unit_id,
buy_price,
- level,
+ level,
warn_num,
remark,
create_by,
company_id,
create_time
- )values(
+ ) values (
#{paId},
#{paName},
- #{parentId},
+ COALESCE(#{parentId}, 0),
#{status},
- #{num},
+ #{num},
#{unitId},
- #{buyPrice},
- #{level},
- #{warnNum},
+ #{buyPrice},
+ COALESCE(#{level}, 1),
+ #{warnNum},
#{remark},
#{createBy},
#{companyId},