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.

38 lines
1.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
5 months ago
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.tc.mapper.AssetCurrentMapper">
5 months ago
<select id="page" resultType="com.ruoyi.tc.entity.AssetCurrent">
select * from asset_current
<where>
del_flag = '0' and isbf = '0'
<if test="req.xtmc!=null and req.xtmc!='' ">
5 months ago
and xtmc like concat('%',#{req.xtmc},'%')
</if>
<if test="req.dwmc!=null and req.dwmc!='' ">
5 months ago
and dwmc like concat('%',#{req.dwmc},'%')
</if>
5 months ago
<if test="req.xtlx!=null">
and xtlx = #{req.xtlx}
</if>
<if test="req.xtzt!=null">
5 months ago
and xtzt = #{req.xtzt}
</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>
</select>
5 months ago
<update id="deleteByUnitIds">
5 months ago
update asset_current
set del_flag = '2'
where id = #{id}
5 months ago
</update>
</mapper>