lanan-system/dl-module-repair/src/main/resources/mapper/other/DlRepairOtherMapper.xml
2024-09-21 20:43:21 +08:00

33 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.other.mapper.DlRepairOtherMapper">
<resultMap id="BaseResultMap" type="cn.iocoder.yudao.module.other.entity.DlRepairOther">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="price" column="price" jdbcType="DECIMAL"/>
<result property="corpId" column="corp_id" jdbcType="VARCHAR"/>
<result property="deptId" column="dept_id" jdbcType="BIGINT"/>
</resultMap>
<sql id="Base_SQL">
select id,
name,
price,
corp_id,
dept_id
from dl_repair_other dro
where dro.deleted = '0'
</sql>
<select id="getOtherPage" resultMap="BaseResultMap">
<include refid="Base_SQL"/>
<if test="map.name != null and map.name != ''">
and dro.name like concat('%', #{map.name}, '%')
</if>
order by dro.create_time desc
</select>
</mapper>