12 changed files with 466 additions and 11 deletions
@ -0,0 +1,59 @@ |
|||
package com.epmet.commons.tools.enums; |
|||
|
|||
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
*/ |
|||
public enum PartyUnitTypeEnum { |
|||
//房屋类型,1楼房,2平房,3别墅
|
|||
LOUYU("0", "楼宇党建"), |
|||
ZUZHI("1", "两新组织"), |
|||
DANWEI("2", "区域单位党建"), |
|||
JIGUAN("3", "机关直属部门"), |
|||
QITA("4", "其他"); |
|||
private String code; |
|||
private String name; |
|||
|
|||
|
|||
PartyUnitTypeEnum(String code, String name) { |
|||
this.code = code; |
|||
this.name = name; |
|||
} |
|||
|
|||
public static String getName(String code) { |
|||
PartyUnitTypeEnum[] houseTypeEnums = values(); |
|||
for (PartyUnitTypeEnum houseTypeEnum : houseTypeEnums) { |
|||
if (houseTypeEnum.getCode() == code) { |
|||
return houseTypeEnum.getName(); |
|||
} |
|||
} |
|||
return EpmetErrorCode.SERVER_ERROR.getMsg(); |
|||
} |
|||
|
|||
public static String getCode(String name) { |
|||
PartyUnitTypeEnum[] houseTypeEnums = values(); |
|||
for (PartyUnitTypeEnum houseTypeEnum : houseTypeEnums) { |
|||
if (houseTypeEnum.getName().equals(name)) { |
|||
return houseTypeEnum.getCode(); |
|||
} |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
} |
@ -0,0 +1,66 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import com.epmet.commons.tools.utils.ExcelVerifyInfo; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 联建活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcPartyActivityImportExcel extends ExcelVerifyInfo { |
|||
|
|||
@Excel(name = "单位名称") |
|||
private String unitName; |
|||
|
|||
@Excel(name = "服务事项") |
|||
private String serviceMatter; |
|||
|
|||
@Excel(name = "活动标题") |
|||
private String title; |
|||
|
|||
@Excel(name = "活动目标") |
|||
private String target; |
|||
|
|||
@Excel(name = "活动内容") |
|||
private String content; |
|||
|
|||
@Excel(name = "活动地址") |
|||
private String address; |
|||
|
|||
@Excel(name = "活动地址经度") |
|||
private String longitude; |
|||
|
|||
@Excel(name = "活动地址纬度") |
|||
private String latitude; |
|||
|
|||
@Excel(name = "服务人数") |
|||
private Integer peopleCount; |
|||
|
|||
@Excel(name = "活动时间") |
|||
private String activityTime; |
|||
|
|||
@Excel(name = "活动结果") |
|||
private String result; |
|||
|
|||
} |
@ -0,0 +1,62 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import com.epmet.commons.tools.utils.ExcelVerifyInfo; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 联建单位 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcPartyUnitImportExcel extends ExcelVerifyInfo { |
|||
|
|||
@Excel(name = "单位名称") |
|||
private String unitName; |
|||
|
|||
@Excel(name = "分类") |
|||
private String type; |
|||
|
|||
@Excel(name = "服务事项") |
|||
private String serviceMatter; |
|||
|
|||
@Excel(name = "联系人") |
|||
private String contact; |
|||
|
|||
@Excel(name = "联系电话") |
|||
private String contactMobile; |
|||
|
|||
@Excel(name = "在职党员") |
|||
private Integer memberCount; |
|||
|
|||
@Excel(name = "地址") |
|||
private String address; |
|||
|
|||
@Excel(name = "中心位置经度") |
|||
private String longitude; |
|||
|
|||
@Excel(name = "中心位置纬度") |
|||
private String latitude; |
|||
|
|||
@Excel(name = "备注") |
|||
private String remark; |
|||
} |
Loading…
Reference in new issue