This commit is contained in:
chenyanchang
2026-06-03 15:16:41 +08:00
parent fec3d6eb64
commit 3e8b1d63f3
24 changed files with 198 additions and 37 deletions

View File

@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
)
</update>
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
<select id="selectCompanyList" parameterType="CompanySearch" resultMap="CompanyResult">
<include refid="selectCompanyVo"/>
<where> del_flag = '0'
<if test="name != null and name != ''"> and name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
@@ -76,6 +76,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
<if test="startDate != null and startDate != ''">
and create_time >= #{startDate}
</if>
<if test="endDate != null and endDate != ''">
and create_time &lt;= #{endDate}
</if>
</where>
</select>
<select id="label" resultMap="CompanyResult">