8 changed files with 207 additions and 57 deletions
@ -0,0 +1,29 @@ |
|||
package com.epmet.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.entity.IcNatCompareRecRelationEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* 核酸比对组织关系表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-09-27 |
|||
*/ |
|||
@Mapper |
|||
public interface IcNatCompareRecRelationDao extends BaseDao<IcNatCompareRecRelationEntity> { |
|||
|
|||
/** |
|||
* |
|||
* @param customerId |
|||
* @param compareRecId |
|||
* @param agencyId |
|||
* @param importDate yyyyMMdd |
|||
* @return |
|||
*/ |
|||
IcNatCompareRecRelationEntity selectExist(@Param("customerId") String customerId, |
|||
@Param("compareRecId") String compareRecId, |
|||
@Param("agencyId") String agencyId, |
|||
@Param("importDate") String importDate); |
|||
} |
@ -0,0 +1,74 @@ |
|||
package com.epmet.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 核酸比对组织关系表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-09-27 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_nat_compare_rec_relation") |
|||
public class IcNatCompareRecRelationEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* ic_nat_compare_record.id |
|||
*/ |
|||
private String compareRecId; |
|||
|
|||
/** |
|||
* 导入日期:yyyyMMdd |
|||
*/ |
|||
private String importDate; |
|||
|
|||
/** |
|||
* 导入时间,同一天内导入多次需要更新此列值 |
|||
*/ |
|||
private Date importTime; |
|||
|
|||
/** |
|||
* 操作人员所属组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* agency_id的上级 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* agency_id组织的所有上级 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 操作人 |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 操作人姓名 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
/** |
|||
* 是否本社区(agency_id)下居民(0:否 1:是) |
|||
*/ |
|||
private String isAgencyUser; |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
<?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.epmet.dao.IcNatCompareRecRelationDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.IcNatCompareRecRelationEntity" id="icNatCompareRecRelationMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="compareRecId" column="COMPARE_REC_ID"/> |
|||
<result property="importDate" column="IMPORT_DATE"/> |
|||
<result property="importTime" column="IMPORT_TIME"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="pid" column="PID"/> |
|||
<result property="pids" column="PIDS"/> |
|||
<result property="staffId" column="STAFF_ID"/> |
|||
<result property="staffName" column="STAFF_NAME"/> |
|||
<result property="isAgencyUser" column="IS_AGENCY_USER"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
<select id="selectExist" parameterType="map" resultType="com.epmet.entity.IcNatCompareRecRelationEntity"> |
|||
|
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue