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.
JinJiHuJava/ruoyi-admin/src/main/resources/mapper/jjh/declaration/BmsEnterpriseBasicInfoMappe...

34 lines
1.6 KiB

<?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.jjh.declaration.mapper.BmsEnterpriseBasicInfoMapper">
12 months ago
<select id="workSearch" resultType="com.ruoyi.jjh.declaration.entity.BmsEnterpriseBasicInfo">
10 months ago
select * from bms_enterprise_basic_info
12 months ago
<where>
10 months ago
<if test="req.enterpriseInfo != null and req.enterpriseInfo != ''">
qymc like concat('%', #{req.enterpriseInfo}, '%')
or tyshxydm like concat('%', #{req.enterpriseInfo}, '%')
12 months ago
</if>
</where>
</select>
<select id="selectGetCreditCode" resultType="com.ruoyi.jjh.declaration.entity.BmsEnterpriseBasicInfo">
10 months ago
select * from bms_enterprise_basic_info
<where>
<if test="getCreditCode != null and getCreditCode != ''">
10 months ago
and tyshxydm = #{getCreditCode}
</if>
</where>
limit 1
</select>
10 months ago
<select id="page" resultType="com.ruoyi.jjh.declaration.entity.BmsEnterpriseBasicInfo">
select * from bms_enterprise_basic_info
<where>
10 months ago
<if test="req.type != null and req.type != ''"> and type = #{req.type}</if>
10 months ago
<if test="req.qymc != null and req.qymc != ''"> and qymc like concat('%', #{req.qymc}, '%')</if>
<if test="req.tyshxydm != null and req.tyshxydm != ''"> and tyshxydm = #{req.tyshxydm}</if>
<if test="req.isDeleted != null "> and is_deleted = #{req.isDeleted}</if>
</where>
</select>
12 months ago
</mapper>