Commit 8634b1cb by 陶光胜

门店授权

parent 295cf1dc
......@@ -27,6 +27,11 @@
</resultMap>
<resultMap id="DTOResultMap" type="com.gic.store.dto.StoreDTO" extends="BaseResultMap">
<result column="own_type" jdbcType="INTEGER" property="ownType" />
<result column="store_id" jdbcType="INTEGER" property="storeId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="store_group_id" jdbcType="INTEGER" property="storeGroupId" />
<result column="is_edit_store_group" jdbcType="INTEGER" property="isEditStoreGroup" />
<result column="from_enterprise_id" jdbcType="INTEGER" property="fromEnterpriseId" />
</resultMap>
<sql id="Base_Column_List">
${alias}.store_info_id, ${alias}.store_name, ${alias}.store_code, ${alias}.region_id, ${alias}.conacts_phone, ${alias}.address,
......@@ -328,7 +333,7 @@
where
brand_ids REGEXP '^${brandId}$|^${brandId},.*$|^.*,${brandId},.*$|^.*,${brandId}$'
</select>
<select id="listStore" parameterType="com.gic.store.dto.StoreSearchDBDTO" resultType="com.gic.store.dto.StoreDTO">
<select id="listStore" parameterType="com.gic.store.dto.StoreSearchDBDTO" resultMap="DTOResultMap">
select
<include refid="Base_Column_List">
<property name="alias" value="t1"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment