| | |
| | | <result column="platform" property="platform"/> |
| | | <result column="phone" property="phone" /> |
| | | <result column="companyId" property="companyId"/> |
| | | <result column="openCityId" property="openCityId"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | type as type, |
| | | platform as platform, |
| | | phone as phone, |
| | | companyId as companyId |
| | | from t_phone where companyId in ( |
| | | select companyId from t_company_city where state = 1 |
| | | <if test="null != province"> |
| | | and provinceCode = #{province} |
| | | </if> |
| | | <if test="null != city"> |
| | | and cityCode = #{city} |
| | | </if> |
| | | <if test="null != code"> |
| | | and areaCode = #{code} |
| | | </if> |
| | | ) |
| | | companyId as companyId, |
| | | openCityId as openCityId |
| | | from t_phone where openCityId = #{openCityId} |
| | | </select> |
| | | |
| | | |
| | |
| | | <if test="null != type"> |
| | | and type = #{type} |
| | | </if> |
| | | <if test="null != companyId"> |
| | | and companyId = #{companyId} |
| | | <if test="null != platform"> |
| | | and platform = #{platform} |
| | | </if> |
| | | <if test="null != openCityId"> |
| | | and openCityId = #{openCityId} |
| | | </if> |
| | | </select> |
| | | </mapper> |