|
@@ -48,7 +48,7 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <!-- 获得销售计划列表 -->
|
|
|
+ <!-- 获得列表 -->
|
|
|
<select id="getListByCondition" parameterType="Map"
|
|
|
resultType="com.yh.saas.plugin.yiliangyiyun.entity.SettledCompanyInfo">
|
|
|
SELECT
|
|
@@ -112,4 +112,57 @@
|
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 获得总数 -->
|
|
|
+ <select id="getCountByMyCondition" parameterType="Map" resultType="java.lang.Integer">
|
|
|
+ SELECT
|
|
|
+ COUNT(id)
|
|
|
+ FROM settled_company_info a
|
|
|
+ left join
|
|
|
+ collection_company b
|
|
|
+ on a.id = b.info_id
|
|
|
+ WHERE a.delete_flag = '0'
|
|
|
+ <if test="loginPhone != null and loginPhone != ''">
|
|
|
+ AND b.phone = #{loginPhone}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 获得列表 -->
|
|
|
+ <select id="getListByMyCondition" parameterType="Map"
|
|
|
+ resultType="com.yh.saas.plugin.yiliangyiyun.entity.SettledCompanyInfo">
|
|
|
+ SELECT
|
|
|
+ a.id,
|
|
|
+ a.comp_name as compName,
|
|
|
+ a.create_phone as createPhone,
|
|
|
+ a.main_business_type as mainBusinessType,
|
|
|
+ a.title,
|
|
|
+ a.company_profile as companyProfile,
|
|
|
+ a.longitude,
|
|
|
+ a.latitude,
|
|
|
+ a.province,
|
|
|
+ a.city,
|
|
|
+ a.area,
|
|
|
+ a.detailed_address as detailedAddress,
|
|
|
+ a.attachment_address as attachmentAddress,
|
|
|
+ a.status,
|
|
|
+ a.status_flag as statusFlag,
|
|
|
+ a.show_flag as showFlag,
|
|
|
+ a.update_date as updateDate
|
|
|
+ FROM settled_company_info a
|
|
|
+ left join
|
|
|
+ collection_company b
|
|
|
+ on a.id = b.info_id
|
|
|
+ WHERE a.delete_flag = '0'
|
|
|
+ <if test="loginPhone != null and loginPhone != ''">
|
|
|
+ AND b.phone = #{loginPhone}
|
|
|
+ </if>
|
|
|
+ ORDER BY status_flag asc , update_date DESC
|
|
|
+ <if test="currentPage != null and currentPage != ''">
|
|
|
+ LIMIT ${startRecord}, ${pageSize}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|