Commit 9d2ecab2 by “Kongxiangkun”

增加积分商城相关代码

parent 527d069a
......@@ -7,6 +7,7 @@ import com.yizhi.course.application.vo.RangeImportParamVo;
import com.yizhi.point.application.feign.PointFeignClients;
import com.yizhi.point.application.feign.PointManageFeignClients;
import com.yizhi.point.application.vo.PointDetailsVO;
import com.yizhi.point.application.vo.PointSearchParamVO;
import com.yizhi.point.application.vo.domain.PointVo;
import com.yizhi.statistics.application.feign.StatisticsPointClient;
import com.yizhi.statistics.application.request.point.StatisticsPointDetailQO;
......@@ -87,13 +88,8 @@ public class PointController {
}
@ApiOperation(value = "积分流水明细", notes = "积分流水明细", response = PointDetailsVO.class)
@GetMapping("/details/list")
Response<Object> getManagePointDetails(@ApiParam(value = "类型", required = false) @RequestParam(name = "learnType", required = false) String learnType,
@ApiParam(value = "用户", required = false) @RequestParam(name = "accountName", required = false) String accountName,
@ApiParam(value = "查询开始日期,时间戳", required = false) @RequestParam(name = "startTime", required = false) Long startTime,
@ApiParam(value = "查询结束日期,时间戳", required = false) @RequestParam(name = "endTime", required = false) Long endTime,
@ApiParam(value = "页码", required = false) @RequestParam(name = "pageNo", required = false, defaultValue = "1") Integer pageNo,
@ApiParam(value = "每页显示页数", required = false) @RequestParam(name = "pageSize", required = false, defaultValue = "10") Integer pageSize) {
@PostMapping("/details/list")
Response<Object> getManagePointDetails(@RequestBody PointSearchParamVO searchParamVO) {
RequestContext requestContext = ContextHolder.get();
if (null == requestContext) {
Response.fail();
......@@ -101,8 +97,8 @@ public class PointController {
Long companyId = requestContext.getCompanyId();
Long siteId = requestContext.getSiteId();
try {
Page<PointDetailsVO> page = pointManageFeignClients.getManagePointDetails(learnType, accountName,
startTime, endTime, pageNo, pageSize, companyId, siteId);
Page<PointDetailsVO> page = pointManageFeignClients.getManagePointDetails(searchParamVO.getLearnType(), searchParamVO.getName(),
searchParamVO.getStartTime(), searchParamVO.getEndTime(), searchParamVO.getPageNo(), searchParamVO.getPageSize(), companyId, siteId);
return Response.ok(page);
} catch (Exception e) {
LOG.error("服务出错。", e);
......
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