This commit is contained in:
xyc 2025-04-17 14:05:12 +08:00
parent c11cbd3d94
commit f8db5e8d71

View File

@ -17,11 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectDriveSchoolContractVo">
select id, dept_id, user_id, content, create_time, creator, update_time, updater, user_name from drive_school_contract
select id, dept_id, user_id, content, create_time, creator, update_time, updater, user_name,user_url from drive_school_contract
</sql>
<select id="selectDriveSchoolContractList" parameterType="cn.iocoder.yudao.module.jx.domain.DriveSchoolContract" resultMap="DriveSchoolContractResult">
<include refid="selectDriveSchoolContractVo"/>
select * from drive_school_contract
<where>
deleted = 0
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
@ -29,8 +29,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="entity.content != null and entity.content != ''"> and content = #{entity.content}</if>
<if test="entity.userName != null and entity.userName != ''"> and user_name like concat('%', #{entity.userName}, '%')</if>
</where>
group by user_id
order by create_time desc
order by id desc
</select>
<select id="selectDriveSchoolContractById" parameterType="Long" resultMap="DriveSchoolContractResult">