Browse Source

feat(srm): 添加供应商手续费字段支持

- 在SrmSupplier实体类中新增handlingCharge字段
- 更新数据库映射文件中的查询语句,添加handling_charge字段映射
- 修改插入语句,包含新的手续费字段
- 更新修改语句,支持手续费字段的更新操作
master
qiankanghui 3 months ago
parent
commit
3fc72294b6
  1. 2
      src/main/java/com/xujie/modules/srm/entity/SrmSupplier.java
  2. 12
      src/main/resources/mapper/srm/SrmSupplierMapper.xml

2
src/main/java/com/xujie/modules/srm/entity/SrmSupplier.java

@ -141,4 +141,6 @@ public class SrmSupplier extends QueryPage {
// 活跃状态 // 活跃状态
private String status; private String status;
private String handlingCharge;
} }

12
src/main/resources/mapper/srm/SrmSupplierMapper.xml

@ -7,7 +7,7 @@
id,site,supplier_no,supplier_name,supplier_group,create_date,create_by,update_date,update_by,supplier_doc_type, id,site,supplier_no,supplier_name,supplier_group,create_date,create_by,update_date,update_by,supplier_doc_type,
TaxCode,FaxNo,PhoneNo,Contact,Address,PaymentTerm,DeliveryTerm,Buyer,Currency,ABC,Active,CreateDate,BankName,BankAccount, TaxCode,FaxNo,PhoneNo,Contact,Address,PaymentTerm,DeliveryTerm,Buyer,Currency,ABC,Active,CreateDate,BankName,BankAccount,
TaxNo,Email,Memo,CustomerAddress,Tax,Email2,PhoneNo2,PhoneNo3,SourcingStaff,Other_contact1,Other_contact2,Other_contact3, TaxNo,Email,Memo,CustomerAddress,Tax,Email2,PhoneNo2,PhoneNo3,SourcingStaff,Other_contact1,Other_contact2,Other_contact3,
c_short_office,c_short_npc,planner,status
c_short_office,c_short_npc,planner,status,handling_charge
</sql> </sql>
@ -55,7 +55,8 @@
s.Other_contact1 AS otherContact1, s.Other_contact1 AS otherContact1,
s.Other_contact2 AS otherContact2, s.Other_contact2 AS otherContact2,
s.Other_contact3 AS otherContact3, s.Other_contact3 AS otherContact3,
s.Memo AS memo, s.c_short_office,s.c_short_npc
s.Memo AS memo, s.c_short_office,s.c_short_npc,
s.handling_charge as handlingCharge
FROM srm_supplier s FROM srm_supplier s
LEFT JOIN sys_dict_data sg ON sg.dict_value = s.supplier_group LEFT JOIN sys_dict_data sg ON sg.dict_value = s.supplier_group
AND sg.dict_type='supplier_group' AND sg.dict_type='supplier_group'
@ -391,7 +392,7 @@
Other_contact1, Other_contact1,
Other_contact2, Other_contact2,
Other_contact3, Other_contact3,
Memo,c_short_office,c_short_npc,planner
Memo,c_short_office,c_short_npc,planner,handling_charge
) VALUES ( ) VALUES (
#{site}, #{site},
#{supplierNo}, #{supplierNo},
@ -426,7 +427,7 @@
#{otherContact1}, #{otherContact1},
#{otherContact2}, #{otherContact2},
#{otherContact3}, #{otherContact3},
#{memo},#{cShortOffice},#{cShortNpc},#{planner}
#{memo},#{cShortOffice},#{cShortNpc},#{planner},#{handlingCharge}
) )
</insert> </insert>
@ -435,7 +436,8 @@
UPDATE srm_supplier set supplier_name = #{supplierName}, supplier_group = #{supplierGroup}, active = #{active}, status = #{status}, supplier_doc_type = #{supplierDocType}, UPDATE srm_supplier set supplier_name = #{supplierName}, supplier_group = #{supplierGroup}, active = #{active}, status = #{status}, supplier_doc_type = #{supplierDocType},
taxCode = #{taxCode}, abc = #{abc}, sourcingStaff = #{sourcingStaff}, currency = #{currency}, paymentTerm = #{paymentTerm}, deliveryTerm = #{deliveryTerm}, taxCode = #{taxCode}, abc = #{abc}, sourcingStaff = #{sourcingStaff}, currency = #{currency}, paymentTerm = #{paymentTerm}, deliveryTerm = #{deliveryTerm},
phoneNo = #{phoneNo},phoneNo2 = #{phoneNo2},phoneNo3 = #{phoneNo3},email = #{email}, email2 = #{email2},faxNo = #{faxNo},Other_contact1 = #{otherContact1},Other_contact2 = #{otherContact2}, phoneNo = #{phoneNo},phoneNo2 = #{phoneNo2},phoneNo3 = #{phoneNo3},email = #{email}, email2 = #{email2},faxNo = #{faxNo},Other_contact1 = #{otherContact1},Other_contact2 = #{otherContact2},
Other_contact3 = #{otherContact3},bankName= #{bankName},bankAccount = #{bankAccount}, address = #{address},memo = #{memo},c_short_office=#{cShortOffice},c_short_npc=#{cShortNpc},planner=#{planner}
Other_contact3 = #{otherContact3},bankName= #{bankName},bankAccount = #{bankAccount}, address = #{address},memo = #{memo},c_short_office=#{cShortOffice},c_short_npc=#{cShortNpc},planner=#{planner},
handling_charge = #{handlingCharge}
WHERE id = #{id} WHERE id = #{id}
</update> </update>

Loading…
Cancel
Save