记得上下班打卡 | git大法好,push需谨慎

Commit 92bf05c1 authored by jiangxiulong's avatar jiangxiulong

setActivityNum

parent 1faac76d
...@@ -94,6 +94,7 @@ public class SweetIntegralActivityFromParam implements Serializable, Cloneable { ...@@ -94,6 +94,7 @@ public class SweetIntegralActivityFromParam implements Serializable, Cloneable {
sweetIntegralActivity.setActivityTitle(source.getActivityTitle()); sweetIntegralActivity.setActivityTitle(source.getActivityTitle());
sweetIntegralActivity.setActivityImg(source.getActivityImg()); sweetIntegralActivity.setActivityImg(source.getActivityImg());
sweetIntegralActivity.setActivityType(source.getActivityType()); sweetIntegralActivity.setActivityType(source.getActivityType());
sweetIntegralActivity.setActivityNum(source.getActivityNum());
sweetIntegralActivity.setTimeType(source.getTimeType()); sweetIntegralActivity.setTimeType(source.getTimeType());
if (null != source.getStartTime() && !source.getStartTime().isEmpty()) { if (null != source.getStartTime() && !source.getStartTime().isEmpty()) {
LocalDateTime startTime = DateUtil.Formatter.yyyyMMddHHmmss.parse(source.getStartTime()); LocalDateTime startTime = DateUtil.Formatter.yyyyMMddHHmmss.parse(source.getStartTime());
......
...@@ -66,6 +66,7 @@ public class IntegralActivityVo implements Serializable, Cloneable { ...@@ -66,6 +66,7 @@ public class IntegralActivityVo implements Serializable, Cloneable {
this.setActivityTitle(source.getActivityTitle()); this.setActivityTitle(source.getActivityTitle());
this.setActivityImg(source.getActivityImg()); this.setActivityImg(source.getActivityImg());
this.setActivityType(source.getActivityType()); this.setActivityType(source.getActivityType());
this.setActivityNum(source.getActivityNum());
this.setTimeType(source.getTimeType()); this.setTimeType(source.getTimeType());
this.setStartTime(source.getStartTime()); this.setStartTime(source.getStartTime());
this.setEndTime(source.getEndTime()); this.setEndTime(source.getEndTime());
......
...@@ -86,6 +86,7 @@ public class SweetIntegralActivityVo implements Serializable, Cloneable { ...@@ -86,6 +86,7 @@ public class SweetIntegralActivityVo implements Serializable, Cloneable {
this.setActivityTitle(source.getActivityTitle()); this.setActivityTitle(source.getActivityTitle());
this.setActivityImg(source.getActivityImg()); this.setActivityImg(source.getActivityImg());
this.setActivityType(source.getActivityType()); this.setActivityType(source.getActivityType());
this.setActivityNum(source.getActivityNum());
this.setTimeType(source.getTimeType()); this.setTimeType(source.getTimeType());
this.setStartTime(source.getStartTime()); this.setStartTime(source.getStartTime());
this.setEndTime(source.getEndTime()); this.setEndTime(source.getEndTime());
......
...@@ -18,4 +18,6 @@ import java.util.List; ...@@ -18,4 +18,6 @@ import java.util.List;
public interface ISweetIntegralActivityService extends IService<SweetIntegralActivity> { public interface ISweetIntegralActivityService extends IService<SweetIntegralActivity> {
ResponseDto<List<IntegralActivityVo>> getList(); ResponseDto<List<IntegralActivityVo>> getList();
ResponseDto<IntegralActivityVo> detail(String integralActivityId);
} }
...@@ -8,6 +8,7 @@ import io.swagger.annotations.Api; ...@@ -8,6 +8,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -34,4 +35,10 @@ public class SweetIntegralActivityController { ...@@ -34,4 +35,10 @@ public class SweetIntegralActivityController {
public ResponseDto<List<IntegralActivityVo>> getList() { public ResponseDto<List<IntegralActivityVo>> getList() {
return activityService.getList(); return activityService.getList();
} }
@GetMapping("detail/{integralActivityId}")
@ApiOperation("积分抽奖活动详情")
public ResponseDto<IntegralActivityVo> detail(@PathVariable("integralActivityId") String integralActivityId) {
return activityService.detail(integralActivityId);
}
} }
...@@ -53,4 +53,9 @@ public class SweetIntegralActivityServiceImpl extends ServiceImpl<SweetIntegralA ...@@ -53,4 +53,9 @@ public class SweetIntegralActivityServiceImpl extends ServiceImpl<SweetIntegralA
} }
return ResponseDto.success(sweetIntegralActivityVoList); return ResponseDto.success(sweetIntegralActivityVoList);
} }
@Override
public ResponseDto<IntegralActivityVo> detail(String integralActivityId) {
return null;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment