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