门店管理;运营商和门店增加数据权限控制

This commit is contained in:
19173159168
2025-07-06 23:49:02 +08:00
parent c23ed1b676
commit d837a9438f
3 changed files with 14 additions and 14 deletions

View File

@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectCompanyVo">
select id, company_name, contact_name, phone, address, balance, deposit, type, is_delete, allow_split_bill, max_percentage, is_add_rules, sharing_ratio, wechat_pay_model, wechat_receiving_account, wechat_key, charge_mode, charge_param, allow_change, channel_id, citys, city_name, ali_pay_model, ali_receiving_account, ali_key, service_order_type, split_order_type, wechat_balance, alipay_balance, invite_reward_mode, invite_reward_param, reward_type, reward_param, is_reservation, reservation_duration, reservation_number, status, del_flag, create_by, create_time, update_by, update_time, extend1, extend2, extend3, extend4, extend5 from company
select id, company_name, contact_name, phone, address, balance, deposit, type, is_delete, allow_split_bill, max_percentage, is_add_rules, sharing_ratio, wechat_pay_model, wechat_receiving_account, wechat_key, charge_mode, charge_param, allow_change, channel_id, citys, city_name, ali_pay_model, ali_receiving_account, ali_key, service_order_type, split_order_type, wechat_balance, alipay_balance, invite_reward_mode, invite_reward_param, reward_type, reward_param, is_reservation, reservation_duration, reservation_number, status, del_flag, create_by, create_time, update_by, update_time, extend1, extend2, extend3, extend4, extend5 from zc_company
</sql>
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
@ -108,11 +108,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- 根据手机号查询运营商是否存在 -->
<select id="checkPhoneUnique" parameterType="string" resultType="com.ruoyi.operation.domain.Company">
SELECT * FROM company WHERE phone = #{phone}
SELECT * FROM zc_company WHERE phone = #{phone}
</select>
<insert id="insertCompany" parameterType="Company" useGeneratedKeys="true" keyProperty="id">
insert into company
insert into zc_company
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="companyName != null and companyName != ''">company_name,</if>
<if test="contactName != null">contact_name,</if>
@ -212,7 +212,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateCompany" parameterType="Company">
update company
update zc_company
<trim prefix="SET" suffixOverrides=",">
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
<if test="contactName != null">contact_name = #{contactName},</if>
@ -265,11 +265,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteCompanyById" parameterType="Long">
delete from company where id = #{id}
delete from zc_company where id = #{id}
</delete>
<delete id="deleteCompanyByIds" parameterType="String">
delete from company where id in
delete from zc_company where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>