货品供应商
This commit is contained in:
parent
2ce485cedd
commit
3949fb152b
|
|
@ -55,12 +55,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectSupplierVo">
|
||||
select supplier_id, supplier_code, supplier_name, area_id, address, linkman, linkman_phone, email, opening_bank, bank_account, supplier_simple_name, telephone, company_web, region_province, region_city, region_district, if_receive_notice, notice_style, supplier_user_id, status, wechat, tax_rate, payment_days, standby_linkman, standby_phone, standby_wechat, standby_email, regist_fund, establish_date, workers_num, client_num, last_year_operating_income, before_year_operating_income, business_scope, top_five_client, top_five_supplier, company_introduction, main_advantage, supplier_score, id_card_img_z, id_card_img_f, attachment, remark, del_flag, create_by, create_time, update_by, update_time from ims_supplier
|
||||
select supplier_id, supplier_code, supplier_name, area_id, address, linkman, linkman_phone,
|
||||
email, opening_bank, bank_account, supplier_simple_name, telephone, company_web,
|
||||
region_province, region_city, region_district, if_receive_notice, notice_style,
|
||||
supplier_user_id, status, wechat, tax_rate, payment_days, standby_linkman, standby_phone,
|
||||
standby_wechat, standby_email, regist_fund, establish_date, workers_num, client_num,
|
||||
last_year_operating_income, before_year_operating_income, business_scope, top_five_client,
|
||||
top_five_supplier, company_introduction, main_advantage, supplier_score, id_card_img_z,
|
||||
id_card_img_f, attachment, remark, del_flag, create_by, create_time, update_by, update_time
|
||||
from ims_supplier
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplierList" parameterType="com.bonus.canteen.core.ims.domain.Supplier" resultMap="SupplierResult">
|
||||
<include refid="selectSupplierVo"/>
|
||||
<where>
|
||||
del_flag = 0
|
||||
<if test="supplierCode != null and supplierCode != ''"> and supplier_code = #{supplierCode}</if>
|
||||
<if test="supplierName != null and supplierName != ''"> and supplier_name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="areaId != null "> and area_id = #{areaId}</if>
|
||||
|
|
@ -267,14 +276,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</update>
|
||||
|
||||
<delete id="deleteSupplierBySupplierId" parameterType="Long">
|
||||
delete from ims_supplier where supplier_id = #{supplierId}
|
||||
update ims_supplier set del_flag = 2 where supplier_id = #{supplierId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplierBySupplierIds" parameterType="String">
|
||||
<!-- delete from ims_supplier where supplier_id in-->
|
||||
<!-- <foreach item="supplierId" collection="array" open="(" separator="," close=")">-->
|
||||
<!-- #{supplierId}-->
|
||||
<!-- </foreach>-->
|
||||
update ims_supplier set del_flag = 2,supplier_user_id = null where supplier_id in
|
||||
<foreach item="supplierId" collection="array" open="(" separator="," close=")">
|
||||
#{supplierId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue