8 changed files with 382 additions and 334 deletions
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.dataaggre.dao.govorg; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.dataaggre.entity.govorg.KeyEnterpriseEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author yan Lu |
||||
|
* @description 描述 |
||||
|
* @create 2023/6/25 13:44 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface KeyEnterpriseDao extends BaseDao { |
||||
|
|
||||
|
Integer countKeyEnterprise(); |
||||
|
|
||||
|
List<KeyEnterpriseEntity> getList(); |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
package com.epmet.dataaggre.entity.govorg; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* @author yan Lu |
||||
|
* @description 描述 |
||||
|
* @create 2023/6/25 15:11 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("key_enterprise") |
||||
|
public class KeyEnterpriseEntity extends BaseEpmetEntity { |
||||
|
/** |
||||
|
* 单位名称 |
||||
|
*/ |
||||
|
private String unitName; |
||||
|
|
||||
|
/** |
||||
|
* 单位类型 |
||||
|
*/ |
||||
|
private String unitType; |
||||
|
|
||||
|
/** |
||||
|
* 主营业务 |
||||
|
*/ |
||||
|
private String business; |
||||
|
|
||||
|
/** |
||||
|
* 法人代表 |
||||
|
*/ |
||||
|
private String legalPerson; |
||||
|
|
||||
|
/** |
||||
|
* 电话 |
||||
|
*/ |
||||
|
private String mobile; |
||||
|
|
||||
|
/** |
||||
|
* 地址 |
||||
|
*/ |
||||
|
private String address; |
||||
|
|
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private String longitude; |
||||
|
|
||||
|
/** |
||||
|
* 纬度 |
||||
|
*/ |
||||
|
private String latitude; |
||||
|
|
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
<?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.dataaggre.dao.govorg.KeyEnterpriseDao"> |
||||
|
|
||||
|
<select id="countKeyEnterprise" resultType="java.lang.Integer"> |
||||
|
select count(id) from key_enterprise where DEL_FLAG = 0 |
||||
|
</select> |
||||
|
<select id="getList" resultType="com.epmet.dataaggre.entity.govorg.KeyEnterpriseEntity"> |
||||
|
SELECT |
||||
|
ke.ID, |
||||
|
ke.UNIT_NAME, |
||||
|
ke.UNIT_TYPE, |
||||
|
ke.BUSINESS, |
||||
|
ke.LEGAL_PERSON, |
||||
|
ke.MOBILE, |
||||
|
ke.ADDRESS, |
||||
|
ke.LONGITUDE, |
||||
|
ke.LATITUDE |
||||
|
FROM key_enterprise ke |
||||
|
<where> |
||||
|
ke.DEL_FLAG = 0 |
||||
|
</where> |
||||
|
</select> |
||||
|
</mapper> |
Loading…
Reference in new issue