11 changed files with 703 additions and 150 deletions
@ -0,0 +1,207 @@ |
|||
/** |
|||
* 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.elink.esua.epdc.activity; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 活动信息表 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-12-11 |
|||
*/ |
|||
@Data |
|||
public class ActInfoDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动头图 |
|||
*/ |
|||
private String headPic; |
|||
|
|||
/** |
|||
* 报名开始时间 |
|||
*/ |
|||
private Date signupStartTime; |
|||
|
|||
/** |
|||
* 报名截止时间 |
|||
*/ |
|||
private Date signupEndTime; |
|||
|
|||
/** |
|||
* 活动开始时间 |
|||
*/ |
|||
private Date actStartTime; |
|||
|
|||
/** |
|||
* 活动结束时间 |
|||
*/ |
|||
private Date actEndTime; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String actAddress; |
|||
|
|||
/** |
|||
* 活动位置经度 |
|||
*/ |
|||
private BigDecimal actLongitude; |
|||
|
|||
/** |
|||
* 活动位置纬度 |
|||
*/ |
|||
private BigDecimal actLatitude; |
|||
|
|||
/** |
|||
* 活动签到打卡地点 |
|||
*/ |
|||
private String signinAddress; |
|||
|
|||
/** |
|||
* 活动签到打卡位置经度 |
|||
*/ |
|||
private BigDecimal signinLongitude; |
|||
|
|||
/** |
|||
* 活动签到打卡位置纬度 |
|||
*/ |
|||
private BigDecimal signinLatitude; |
|||
|
|||
/** |
|||
* 活动签到打卡半径(单位:米) |
|||
*/ |
|||
private Integer clockRadius; |
|||
|
|||
/** |
|||
* 活动名额 |
|||
*/ |
|||
private Integer actQuota; |
|||
|
|||
/** |
|||
* 已报名人数 |
|||
*/ |
|||
private Integer signupNum; |
|||
|
|||
/** |
|||
* 活动打卡人数 |
|||
*/ |
|||
private Integer clockNum; |
|||
|
|||
/** |
|||
* 活动分享数 |
|||
*/ |
|||
private Integer actShareNum; |
|||
|
|||
/** |
|||
* 活动浏览数 |
|||
*/ |
|||
private Integer actBrowseNum; |
|||
|
|||
/** |
|||
* 联系人 |
|||
*/ |
|||
private String contacts; |
|||
|
|||
/** |
|||
* 联系电话 |
|||
*/ |
|||
private String tel; |
|||
|
|||
/** |
|||
* 招募要求 |
|||
*/ |
|||
private String requirement; |
|||
|
|||
/** |
|||
* 活动内容 |
|||
*/ |
|||
private String actContent; |
|||
|
|||
/** |
|||
* 活动发布状态(0-下架,1上架) |
|||
*/ |
|||
private String actStatus; |
|||
|
|||
/** |
|||
* 活动发布时间 |
|||
*/ |
|||
private Date publishTime; |
|||
|
|||
/** |
|||
* 活动主办方 |
|||
*/ |
|||
private String sponsor; |
|||
|
|||
/** |
|||
* 创建部门ID |
|||
*/ |
|||
private Long deptId; |
|||
|
|||
/** |
|||
* 活动惩罚积分 |
|||
*/ |
|||
private Integer punishmentPoints; |
|||
|
|||
/** |
|||
* 活动奖励积分 |
|||
*/ |
|||
private Integer reward; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -1,33 +0,0 @@ |
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.dto.DemoDto; |
|||
import com.elink.esua.epdc.feign.DemoFeignClient; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* |
|||
* @author yujintao |
|||
* @email yujintao@elink-cn.com |
|||
* @date 2019/8/23 10:59 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("demo") |
|||
public class DemoController { |
|||
|
|||
|
|||
@Autowired |
|||
private DemoFeignClient demoFeignClient; |
|||
|
|||
|
|||
@GetMapping("listAll") |
|||
public Result<List<DemoDto>> listDemo(){ |
|||
Result<List<DemoDto>> listResult = demoFeignClient.listDemo(); |
|||
return listResult; |
|||
} |
|||
} |
@ -0,0 +1,182 @@ |
|||
/** |
|||
* 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.elink.esua.epdc.modules.activity.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 活动信息表 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-12-11 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epdc_act_info") |
|||
public class ActInfoEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动头图 |
|||
*/ |
|||
private String headPic; |
|||
|
|||
/** |
|||
* 报名开始时间 |
|||
*/ |
|||
private Date signupStartTime; |
|||
|
|||
/** |
|||
* 报名截止时间 |
|||
*/ |
|||
private Date signupEndTime; |
|||
|
|||
/** |
|||
* 活动开始时间 |
|||
*/ |
|||
private Date actStartTime; |
|||
|
|||
/** |
|||
* 活动结束时间 |
|||
*/ |
|||
private Date actEndTime; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String actAddress; |
|||
|
|||
/** |
|||
* 活动位置经度 |
|||
*/ |
|||
private BigDecimal actLongitude; |
|||
|
|||
/** |
|||
* 活动位置纬度 |
|||
*/ |
|||
private BigDecimal actLatitude; |
|||
|
|||
/** |
|||
* 活动签到打卡地点 |
|||
*/ |
|||
private String signinAddress; |
|||
|
|||
/** |
|||
* 活动签到打卡位置经度 |
|||
*/ |
|||
private BigDecimal signinLongitude; |
|||
|
|||
/** |
|||
* 活动签到打卡位置纬度 |
|||
*/ |
|||
private BigDecimal signinLatitude; |
|||
|
|||
/** |
|||
* 活动签到打卡半径(单位:米) |
|||
*/ |
|||
private Integer clockRadius; |
|||
|
|||
/** |
|||
* 活动名额 |
|||
*/ |
|||
private Integer actQuota; |
|||
|
|||
/** |
|||
* 已报名人数 |
|||
*/ |
|||
private Integer signupNum; |
|||
|
|||
/** |
|||
* 活动打卡人数 |
|||
*/ |
|||
private Integer clockNum; |
|||
|
|||
/** |
|||
* 活动分享数 |
|||
*/ |
|||
private Integer actShareNum; |
|||
|
|||
/** |
|||
* 活动浏览数 |
|||
*/ |
|||
private Integer actBrowseNum; |
|||
|
|||
/** |
|||
* 联系人 |
|||
*/ |
|||
private String contacts; |
|||
|
|||
/** |
|||
* 联系电话 |
|||
*/ |
|||
private String tel; |
|||
|
|||
/** |
|||
* 招募要求 |
|||
*/ |
|||
private String requirement; |
|||
|
|||
/** |
|||
* 活动内容 |
|||
*/ |
|||
private String actContent; |
|||
|
|||
/** |
|||
* 活动发布状态(0-下架,1上架) |
|||
*/ |
|||
private String actStatus; |
|||
|
|||
/** |
|||
* 活动发布时间 |
|||
*/ |
|||
private Date publishTime; |
|||
|
|||
/** |
|||
* 活动主办方 |
|||
*/ |
|||
private String sponsor; |
|||
|
|||
/** |
|||
* 创建部门ID |
|||
*/ |
|||
private Long deptId; |
|||
|
|||
/** |
|||
* 活动惩罚积分 |
|||
*/ |
|||
private Integer punishmentPoints; |
|||
|
|||
/** |
|||
* 活动奖励积分 |
|||
*/ |
|||
private Integer reward; |
|||
|
|||
} |
@ -0,0 +1,138 @@ |
|||
/** |
|||
* 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.elink.esua.epdc.modules.activity.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 活动信息表 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-12-11 |
|||
*/ |
|||
@Data |
|||
public class ActInfoExcel { |
|||
|
|||
@Excel(name = "主键") |
|||
private String id; |
|||
|
|||
@Excel(name = "标题") |
|||
private String title; |
|||
|
|||
@Excel(name = "活动头图") |
|||
private String headPic; |
|||
|
|||
@Excel(name = "报名开始时间") |
|||
private Date signupStartTime; |
|||
|
|||
@Excel(name = "报名截止时间") |
|||
private Date signupEndTime; |
|||
|
|||
@Excel(name = "活动开始时间") |
|||
private Date actStartTime; |
|||
|
|||
@Excel(name = "活动结束时间") |
|||
private Date actEndTime; |
|||
|
|||
@Excel(name = "活动地点") |
|||
private String actAddress; |
|||
|
|||
@Excel(name = "活动位置经度") |
|||
private BigDecimal actLongitude; |
|||
|
|||
@Excel(name = "活动位置纬度") |
|||
private BigDecimal actLatitude; |
|||
|
|||
@Excel(name = "活动签到打卡地点") |
|||
private String signinAddress; |
|||
|
|||
@Excel(name = "活动签到打卡位置经度") |
|||
private BigDecimal signinLongitude; |
|||
|
|||
@Excel(name = "活动签到打卡位置纬度") |
|||
private BigDecimal signinLatitude; |
|||
|
|||
@Excel(name = "活动签到打卡半径(单位:米)") |
|||
private Integer clockRadius; |
|||
|
|||
@Excel(name = "活动名额") |
|||
private Integer actQuota; |
|||
|
|||
@Excel(name = "已报名人数") |
|||
private Integer signupNum; |
|||
|
|||
@Excel(name = "活动打卡人数") |
|||
private Integer clockNum; |
|||
|
|||
@Excel(name = "活动分享数") |
|||
private Integer actShareNum; |
|||
|
|||
@Excel(name = "活动浏览数") |
|||
private Integer actBrowseNum; |
|||
|
|||
@Excel(name = "联系人") |
|||
private String contacts; |
|||
|
|||
@Excel(name = "联系电话") |
|||
private String tel; |
|||
|
|||
@Excel(name = "招募要求") |
|||
private String requirement; |
|||
|
|||
@Excel(name = "活动内容") |
|||
private String actContent; |
|||
|
|||
@Excel(name = "活动发布状态(0-下架,1上架)") |
|||
private String actStatus; |
|||
|
|||
@Excel(name = "活动发布时间") |
|||
private Date publishTime; |
|||
|
|||
@Excel(name = "活动主办方") |
|||
private String sponsor; |
|||
|
|||
@Excel(name = "创建部门ID") |
|||
private Long deptId; |
|||
|
|||
@Excel(name = "活动惩罚积分") |
|||
private Integer punishmentPoints; |
|||
|
|||
@Excel(name = "活动奖励积分") |
|||
private Integer reward; |
|||
|
|||
@Excel(name = "乐观锁") |
|||
private Integer revision; |
|||
|
|||
@Excel(name = "创建人") |
|||
private String createdBy; |
|||
|
|||
@Excel(name = "创建时间") |
|||
private Date createdTime; |
|||
|
|||
@Excel(name = "更新人") |
|||
private String updatedBy; |
|||
|
|||
@Excel(name = "更新时间") |
|||
private Date updatedTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
/** |
|||
* 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.elink.esua.epdc.modules.activity.redis; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 活动信息表 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-12-11 |
|||
*/ |
|||
@Component |
|||
public class ActInfoRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,44 @@ |
|||
<?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.elink.esua.epdc.modules.activity.dao.ActInfoDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.modules.activity.entity.ActInfoEntity" id="actInfoMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="title" column="TITLE"/> |
|||
<result property="headPic" column="HEAD_PIC"/> |
|||
<result property="signupStartTime" column="SIGNUP_START_TIME"/> |
|||
<result property="signupEndTime" column="SIGNUP_END_TIME"/> |
|||
<result property="actStartTime" column="ACT_START_TIME"/> |
|||
<result property="actEndTime" column="ACT_END_TIME"/> |
|||
<result property="actAddress" column="ACT_ADDRESS"/> |
|||
<result property="actLongitude" column="ACT_LONGITUDE"/> |
|||
<result property="actLatitude" column="ACT_LATITUDE"/> |
|||
<result property="signinAddress" column="SIGNIN_ADDRESS"/> |
|||
<result property="signinLongitude" column="SIGNIN_LONGITUDE"/> |
|||
<result property="signinLatitude" column="SIGNIN_LATITUDE"/> |
|||
<result property="clockRadius" column="CLOCK_RADIUS"/> |
|||
<result property="actQuota" column="ACT_QUOTA"/> |
|||
<result property="signupNum" column="SIGNUP_NUM"/> |
|||
<result property="clockNum" column="CLOCK_NUM"/> |
|||
<result property="actShareNum" column="ACT_SHARE_NUM"/> |
|||
<result property="actBrowseNum" column="ACT_BROWSE_NUM"/> |
|||
<result property="contacts" column="CONTACTS"/> |
|||
<result property="tel" column="TEL"/> |
|||
<result property="requirement" column="REQUIREMENT"/> |
|||
<result property="actContent" column="ACT_CONTENT"/> |
|||
<result property="actStatus" column="ACT_STATUS"/> |
|||
<result property="publishTime" column="PUBLISH_TIME"/> |
|||
<result property="sponsor" column="SPONSOR"/> |
|||
<result property="deptId" column="DEPT_ID"/> |
|||
<result property="punishmentPoints" column="PUNISHMENT_POINTS"/> |
|||
<result property="reward" column="REWARD"/> |
|||
<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> |
|||
|
|||
|
|||
</mapper> |
Loading…
Reference in new issue