parent
c10913fa26
commit
fcc1c4f7af
@ -0,0 +1,28 @@
|
|||||||
|
package com.ruoyi.jjh.ent.entity.request;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业联系人请求类
|
||||||
|
* @author du
|
||||||
|
* @since 2024/5/13 10:06
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("企业联系人请求类")
|
||||||
|
public class JEnterpriseContactRequest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty("企业名称")
|
||||||
|
private String enterpriseName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 统一社会信用代码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty("统一社会信用代码")
|
||||||
|
private String enterpriseCode;
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
<?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.ent.mapper.JEnterpriseContactMapper">
|
||||||
|
|
||||||
|
<select id="page" resultType="com.ruoyi.jjh.ent.entity.JEnterpriseContact">
|
||||||
|
select * from j_enterprise_contact
|
||||||
|
<where>
|
||||||
|
<if test="req.enterpriseName != null and req.enterpriseName != '' ">
|
||||||
|
and enterprise_name like concat('%',#{req.enterpriseName},'%')
|
||||||
|
</if>
|
||||||
|
<if test="req.enterpriseCode != null and req.enterpriseCode != '' ">
|
||||||
|
and enterprise_code like concat('%',#{req.enterpriseCode},'%')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
order by create_time desc
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in new issue