parent
59194d7e76
commit
347c9e6bf3
@ -1,4 +1,4 @@ |
||||
package com.share.help.res.activity; |
||||
package com.share.help.entity.custorm; |
||||
|
||||
/** |
||||
* 活动列表实体 |
@ -1,4 +1,4 @@ |
||||
package com.share.help.res.activity; |
||||
package com.share.help.entity.custorm; |
||||
|
||||
import com.share.help.res.Page; |
||||
|
@ -1,4 +1,4 @@ |
||||
package com.share.help.res.account; |
||||
package com.share.help.entity.custorm; |
||||
|
||||
import com.share.help.entity.UserEntity; |
||||
import com.share.help.res.Page; |
@ -0,0 +1,89 @@ |
||||
package com.share.help.entity.custorm; |
||||
|
||||
import java.sql.Timestamp; |
||||
|
||||
/** |
||||
* 统计用户求助信息 |
||||
*/ |
||||
public class SeekHelpSum { |
||||
//活动id
|
||||
private Long activityId; |
||||
//活动背景图
|
||||
private String activityImg; |
||||
//求助时间
|
||||
private Timestamp seekHelpTime; |
||||
//活动标题
|
||||
private String title; |
||||
//活动内容
|
||||
private String content; |
||||
//报名人数
|
||||
private Integer apply; |
||||
//参与人数
|
||||
private Integer join; |
||||
//完成人数
|
||||
private Integer complete; |
||||
|
||||
public Long getActivityId() { |
||||
return activityId; |
||||
} |
||||
|
||||
public void setActivityId(Long activityId) { |
||||
this.activityId = activityId; |
||||
} |
||||
|
||||
public String getActivityImg() { |
||||
return activityImg; |
||||
} |
||||
|
||||
public void setActivityImg(String activityImg) { |
||||
this.activityImg = activityImg; |
||||
} |
||||
|
||||
public Timestamp getSeekHelpTime() { |
||||
return seekHelpTime; |
||||
} |
||||
|
||||
public void setSeekHelpTime(Timestamp seekHelpTime) { |
||||
this.seekHelpTime = seekHelpTime; |
||||
} |
||||
|
||||
public String getTitle() { |
||||
return title; |
||||
} |
||||
|
||||
public void setTitle(String title) { |
||||
this.title = title; |
||||
} |
||||
|
||||
public String getContent() { |
||||
return content; |
||||
} |
||||
|
||||
public void setContent(String content) { |
||||
this.content = content; |
||||
} |
||||
|
||||
public Integer getApply() { |
||||
return apply; |
||||
} |
||||
|
||||
public void setApply(Integer apply) { |
||||
this.apply = apply; |
||||
} |
||||
|
||||
public Integer getJoin() { |
||||
return join; |
||||
} |
||||
|
||||
public void setJoin(Integer join) { |
||||
this.join = join; |
||||
} |
||||
|
||||
public Integer getComplete() { |
||||
return complete; |
||||
} |
||||
|
||||
public void setComplete(Integer complete) { |
||||
this.complete = complete; |
||||
} |
||||
} |
@ -0,0 +1,23 @@ |
||||
package com.share.help.entity.custorm; |
||||
|
||||
public class UserWithName { |
||||
private String userId; |
||||
|
||||
private String name; |
||||
|
||||
public String getUserId() { |
||||
return userId; |
||||
} |
||||
|
||||
public void setUserId(String userId) { |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
@ -0,0 +1,26 @@ |
||||
package com.share.help.form; |
||||
|
||||
/** |
||||
* 获取志愿者列表信息 |
||||
*/ |
||||
public class FindUserHelp { |
||||
private Long activityId; |
||||
|
||||
private ActivityStatus activityStatus; |
||||
|
||||
public ActivityStatus getActivityStatus() { |
||||
return activityStatus; |
||||
} |
||||
|
||||
public void setActivityStatus(ActivityStatus activityStatus) { |
||||
this.activityStatus = activityStatus; |
||||
} |
||||
|
||||
public Long getActivityId() { |
||||
return activityId; |
||||
} |
||||
|
||||
public void setActivityId(Long activityId) { |
||||
this.activityId = activityId; |
||||
} |
||||
} |
@ -0,0 +1,11 @@ |
||||
<?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.share.help.dao.ActivityHistoryMapper"> |
||||
<!-- 获取志愿者列表--> |
||||
<select id="queryUser" resultType="com.share.help.entity.custorm.UserWithName"> |
||||
select user_id as userId,name from user where user_id in (select user_id from activity_history where |
||||
activity_id=#{activityId} and activity_status=#{activityStatus}) |
||||
</select> |
||||
</mapper> |
Loading…
Reference in new issue