forked from luyan/epmet-cloud-lingshan
				
			
				 68 changed files with 1164 additions and 330 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; | |||
|     } | |||
| } | |||
								
									Binary file not shown.
								
							
						
					
								
									Binary file not shown.
								
							
						
					| @ -0,0 +1,20 @@ | |||
| package com.epmet.dto.form.demand; | |||
| 
 | |||
| import lombok.Data; | |||
| 
 | |||
| import javax.validation.constraints.NotBlank; | |||
| import javax.validation.constraints.NotNull; | |||
| import java.io.Serializable; | |||
| 
 | |||
| @Data | |||
| public class IcResiUserDemandFromDTO implements Serializable { | |||
|     public interface AddUserInternalGroup { | |||
|     } | |||
| 
 | |||
|     @NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class) | |||
|     private String userId; | |||
|     @NotNull(message = "pageNo不能为空", groups = AddUserInternalGroup.class) | |||
|     private Integer pageNo; | |||
|     @NotNull(message = "pageSize不能为空", groups = AddUserInternalGroup.class) | |||
|     private Integer pageSize; | |||
| } | |||
| @ -0,0 +1,10 @@ | |||
| package com.epmet.dto.result.demand; | |||
| 
 | |||
| import lombok.Data; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| @Data | |||
| public class IcResiUserReportDemandRes implements Serializable { | |||
|     private static final long serialVersionUID = 7043350476644105434L; | |||
| } | |||
| @ -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; | |||
| } | |||
| @ -0,0 +1,5 @@ | |||
| alter table staff_patrol_record add column `IS_HAND_END` INT(1) NOT NULL DEFAULT 0 COMMENT '是否手动结束 手动:1,定时任务传参:0'; | |||
| 
 | |||
| UPDATE staff_patrol_record | |||
| SET is_hand_end  = 1 | |||
| WHERE ID IN (SELECT ID FROM staff_patrol_record WHERE ACTRUAL_END_TIME NOT LIKE '%23:59:59'); | |||
					Loading…
					
					
				
		Reference in new issue