|
|
@ -89,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<insert id="insertSysSupplier" parameterType="SysSupplier" useGeneratedKeys="true" keyProperty="supplierId"> |
|
|
|
insert into sys_supplier |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="supplierType !=null and suoolierType != ''">supplier_type,</if> |
|
|
|
<if test="supplierType !=null and supplierType != ''">supplier_type,</if> |
|
|
|
<if test="purchaseBuyer != null and purchaseBuyer != ''">purchase_buyer,</if> |
|
|
|
<if test="supplierQualification != null and supplierQualification != ''">supplier_qualification,</if> |
|
|
|
<if test="supplierCode != null and supplierCode != ''">supplier_code,</if> |
|
|
@ -127,7 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="supplierType !=null and suoolierType != ''">#{supplierType},</if> |
|
|
|
<if test="supplierType !=null and supplierType != ''">#{supplierType},</if> |
|
|
|
<if test="useStatus != null and useStatus != ''">#{useStatus},</if> |
|
|
|
<if test="auditStatus != null and auditStatus != ''">#{auditStatus},</if> |
|
|
|
<if test="purchaseBuyer != null and purchaseBuyer != ''">#{purchaseBuyer},</if> |
|
|
@ -170,7 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<update id="updateSysSupplier" parameterType="SysSupplier"> |
|
|
|
update sys_supplier |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="supplierType !=null and suoolierType != ''">supplier_type = #{supplierType},</if> |
|
|
|
<if test="supplierType !=null and supplierType != ''">supplier_type = #{supplierType},</if> |
|
|
|
<if test="useStatus != null and useStatus != ''">use_status = #{useStatus},</if> |
|
|
|
<if test="auditStatus != null and auditStatus != ''">audit_status = #{auditStatus},</if> |
|
|
|
<if test="purchaseBuyer != null and purchaseBuyer != ''">purchase_buyer = #{purchaseBuyer},</if> |
|
|
|