TcAssetVerificationJava/ruoyi-admin/src/main/resources/mapper/AssetOfficialAccountMapper.xml

31 lines
1.1 KiB

4 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.AssetOfficialAccountMapper">
<update id="deleteById">
update asset_official_account
set del_flag = '2'
where id = #{id}
</update>
<select id="page" resultType="com.ruoyi.tc.entity.AssetOfficialAccount">
select * from asset_official_account
<where>
del_flag = '0'
<if test="req.gzhmc!=null and req.gzhmc!='' ">
and gzhmc like concat('%',#{req.gzhmc},'%')
</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>