地市增加
This commit is contained in:
parent
0e4e978020
commit
c1447c721a
|
|
@ -529,20 +529,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectCompanyList" resultType="com.bonus.common.biz.domain.BmCompanyInfo">
|
<select id="selectCompanyList" resultType="com.bonus.common.biz.domain.BmCompanyInfo">
|
||||||
select
|
SELECT
|
||||||
company_id as companyId,
|
sd.dept_id as companyId,
|
||||||
company_name as companyName,
|
sd.dept_name as companyName,
|
||||||
register_address as registerAddress,
|
b.operate_address as operateAddress
|
||||||
operate_address as operateAddress
|
FROM
|
||||||
from bm_company_info
|
sys_dept sd
|
||||||
<where>
|
LEFT JOIN bm_company_info b ON sd.dept_id = b.company_id
|
||||||
<if test="companyId != null">
|
WHERE sd.parent_id = 0 and sd.order_num != 0
|
||||||
and company_id = #{companyId}
|
<if test="companyId != null">
|
||||||
</if>
|
and sd.dept_id = #{companyId}
|
||||||
<if test="companyName != null and companyName != ''">
|
</if>
|
||||||
and company_name like concat('%',#{companyName},'%')
|
<if test="companyName != null and companyName != ''">
|
||||||
</if>
|
and sd.dept_name like concat('%',#{companyName},'%')
|
||||||
</where>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getBookCar" resultType="com.bonus.material.book.domain.BookCarInfoDto">
|
<select id="getBookCar" resultType="com.bonus.material.book.domain.BookCarInfoDto">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue