|
|
|
@ -58,14 +58,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="extend4" column="extend4" />
|
|
|
|
<result property="extend4" column="extend4" />
|
|
|
|
<result property="extend5" column="extend5" />
|
|
|
|
<result property="extend5" column="extend5" />
|
|
|
|
<result property="mtToken" column="mt_token" />
|
|
|
|
<result property="mtToken" column="mt_token" />
|
|
|
|
|
|
|
|
<result property="dyStoreId" column="dy_store_id" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectCompanyStoreVo">
|
|
|
|
<sql id="selectCompanyStoreVo">
|
|
|
|
select id, name, contact_person, phone, province_id, province_name, city_id, city_name, area_id, area_name, address, detailed_address, image, latitude, longitude, contract_date, day_time, start_time, end_time, is_show, is_del, zuche_ratio, zudian_ratio, daishou_ratio, label, operating_company_id, operating_nature, introduction, bank_account, store_number, business_license_img, audit_status, audit_time, auditor_id, user_id, is_return_allowed, meal_deposit_price, order_num_limit, create_by, create_time, update_by, update_time, del_flag, status, extend1, extend2, extend3, extend4, extend5, mt_token from zc_company_store
|
|
|
|
select id, name, contact_person, phone, province_id, province_name, city_id, city_name, area_id, area_name, address, detailed_address, image, latitude, longitude, contract_date, day_time, start_time, end_time, is_show, is_del, zuche_ratio, zudian_ratio, daishou_ratio, label, operating_company_id, operating_nature, introduction, bank_account, store_number, business_license_img, audit_status, audit_time, auditor_id, user_id, is_return_allowed, meal_deposit_price, order_num_limit, create_by, create_time, update_by, update_time, del_flag, status, extend1, extend2, extend3, extend4, extend5, mt_token,dy_store_id from zc_company_store
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCompanyStoreList" parameterType="CompanyStore" resultMap="CompanyStoreResult">
|
|
|
|
<select id="selectCompanyStoreList" parameterType="CompanyStore" resultMap="CompanyStoreResult">
|
|
|
|
select cs.id, cs.name, cs.contact_person, cs.phone, cs.province_id, cs.province_name, cs.city_id, cs.city_name, cs.area_id, cs.area_name, cs.address, cs.detailed_address, cs.image, cs.latitude, cs.longitude, cs.contract_date, cs.day_time, cs.start_time, cs.end_time, cs.is_show, cs.is_del, cs.zuche_ratio, cs.zudian_ratio, cs.daishou_ratio, cs.label, cs.operating_company_id, cs.operating_nature, cs.introduction, cs.bank_account, cs.store_number, cs.business_license_img, cs.audit_status, cs.audit_time, cs.auditor_id, cs.user_id, cs.is_return_allowed, cs.meal_deposit_price, cs.order_num_limit, cs.create_by, cs.create_time, cs.update_by, cs.update_time, cs.del_flag, cs.status, cs.extend1, cs.extend2, cs.extend3, cs.extend4, cs.extend5, cs.mt_token
|
|
|
|
select cs.id, cs.name, cs.contact_person, cs.phone, cs.province_id, cs.province_name, cs.city_id, cs.city_name, cs.area_id, cs.area_name, cs.address, cs.detailed_address, cs.image, cs.latitude, cs.longitude, cs.contract_date, cs.day_time, cs.start_time, cs.end_time, cs.is_show, cs.is_del, cs.zuche_ratio, cs.zudian_ratio, cs.daishou_ratio, cs.label, cs.operating_company_id, cs.operating_nature, cs.introduction, cs.bank_account, cs.store_number, cs.business_license_img, cs.audit_status, cs.audit_time, cs.auditor_id, cs.user_id, cs.is_return_allowed, cs.meal_deposit_price, cs.order_num_limit, cs.create_by, cs.create_time, cs.update_by, cs.update_time, cs.del_flag, cs.status, cs.extend1, cs.extend2, cs.extend3, cs.extend4, cs.extend5, cs.mt_token, cs.dy_store_id
|
|
|
|
,c.company_name as operating_company_name
|
|
|
|
,c.company_name as operating_company_name
|
|
|
|
from zc_company_store cs
|
|
|
|
from zc_company_store cs
|
|
|
|
left join zc_company c on c.id = cs.operating_company_id
|
|
|
|
left join zc_company c on c.id = cs.operating_company_id
|
|
|
|
@ -114,6 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="extend4 != null and extend4 != ''"> and cs.extend4 = #{extend4}</if>
|
|
|
|
<if test="extend4 != null and extend4 != ''"> and cs.extend4 = #{extend4}</if>
|
|
|
|
<if test="extend5 != null and extend5 != ''"> and cs.extend5 = #{extend5}</if>
|
|
|
|
<if test="extend5 != null and extend5 != ''"> and cs.extend5 = #{extend5}</if>
|
|
|
|
<if test="mtToken != null and mtToken != ''"> and cs.mt_token = #{mtToken}</if>
|
|
|
|
<if test="mtToken != null and mtToken != ''"> and cs.mt_token = #{mtToken}</if>
|
|
|
|
|
|
|
|
<if test="dyStoreId != null and dyStoreId != ''"> and cs.dy_store_id = #{dyStoreId}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
order by cs.create_time desc
|
|
|
|
order by cs.create_time desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
@ -184,6 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="extend3 != null">extend3,</if>
|
|
|
|
<if test="extend3 != null">extend3,</if>
|
|
|
|
<if test="extend4 != null">extend4,</if>
|
|
|
|
<if test="extend4 != null">extend4,</if>
|
|
|
|
<if test="extend5 != null">extend5,</if>
|
|
|
|
<if test="extend5 != null">extend5,</if>
|
|
|
|
|
|
|
|
<if test="dyStoreId != null">dy_store_id,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
|
@ -236,6 +239,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="extend3 != null">#{extend3},</if>
|
|
|
|
<if test="extend3 != null">#{extend3},</if>
|
|
|
|
<if test="extend4 != null">#{extend4},</if>
|
|
|
|
<if test="extend4 != null">#{extend4},</if>
|
|
|
|
<if test="extend5 != null">#{extend5},</if>
|
|
|
|
<if test="extend5 != null">#{extend5},</if>
|
|
|
|
|
|
|
|
<if test="dyStoreId != null">#{dyStoreId},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
@ -293,6 +297,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="extend4 != null">extend4 = #{extend4},</if>
|
|
|
|
<if test="extend4 != null">extend4 = #{extend4},</if>
|
|
|
|
<if test="extend5 != null">extend5 = #{extend5},</if>
|
|
|
|
<if test="extend5 != null">extend5 = #{extend5},</if>
|
|
|
|
<if test="mtToken != null">mt_token = #{mtToken},</if>
|
|
|
|
<if test="mtToken != null">mt_token = #{mtToken},</if>
|
|
|
|
|
|
|
|
<if test="dyStoreId != null">dy_store_id = #{dyStoreId},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|