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},