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

47 lines
1.6 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>
5 months ago
<delete id="deleteIdList" >
DELETE FROM asset_mini_programs
WHERE id IN
<foreach item="id" index="index" collection="idList" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
5 months ago
<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>
5 months ago
<if test="req.xtzt != null">
and state = #{req.xtzt}
</if>
5 months ago
</where>
order by create_time desc
</select>
5 months ago
<select id="findBydwmc" resultType="java.lang.Integer" parameterType="java.lang.String">
select count(*)
from asset_mini_programs
5 months ago
where ssdw = #{part} and isbf=0 and del_flag=0
5 months ago
</select>
5 months ago
</mapper>