Commit 1fde87f0 authored by hezhen's avatar hezhen

123

parent 580f7fd8
......@@ -11,4 +11,6 @@ public class CompanySearchVO extends BranchCompany {
BigDecimal distance;
String companyName;
String levelName;
}
......@@ -110,6 +110,13 @@ public class AdminCompanyInfoController extends BaseController<CompanyInfoApplyB
}
@GetMapping("alls")
@ApiModelProperty("商家列表")
public ObjectRestResponse alls(CompanyInfoFindDTO companyInfoFindDTO) {
return ObjectRestResponse.succ( companyInfoBiz.getList(companyInfoFindDTO));
}
......
......@@ -22,12 +22,13 @@
</resultMap>
<select id="search" parameterType="com.github.wxiaoqi.security.admin.dto.CompanySearchDTO" resultType="com.github.wxiaoqi.security.admin.vo.CompanySearchVO">
select c.*,i.name as companyName
select c.*,i.name as companyName,l.name as levelName
<if test="lon != null and lat != null">
, st_distance_sphere(point(#{lon}, #{lat}), point(c.longitude, c.latitude)) as distance
</if>
from branch_company c
LEFT JOIN company_info i on c.company_id=i.id
LEFT JOIN branch_company_level l on c.branch_type=l.level
<where>
c.is_del = 0
<if test="id != null">
......
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