You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TcAssetVerificationJava/ruoyi-admin/src/main/resources/mapper/AssetMiniProgramsMapper.xml

31 lines
1.1 KiB

5 months ago
<?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="com.ruoyi.tc.mapper.AssetMiniProgramsMapper">
<update id="deleteById">
update asset_mini_programs
set del_flag = '2'
where id = #{id}
</update>
<select id="page" resultType="com.ruoyi.tc.entity.AssetMiniPrograms">
select * from asset_mini_programs
<where>
del_flag = '0'
<if test="req.xcxmc!=null and req.xcxmc!='' ">
and xcxmc like concat('%',#{req.xcxmc},'%')
</if>
<if test="req.dwmc!=null and req.dwmc!='' ">
and ssdw like concat('%',#{req.dwmc},'%')
</if>
<if test="req.startTime != null ">
and create_time &gt;= #{req.startTime}
</if>
<if test="req.endTime != null">
and create_time &lt;= #{req.endTime}
</if>
</where>
order by create_time desc
</select>
</mapper>