Commit 57c21596 authored by cq990612's avatar cq990612

优化代码结构

parent 298001aa
......@@ -74,7 +74,7 @@ public class WorkCollectServiceImpl implements WorkCollectService {
}
List<CalendarDto> calendarDtoList = workCollectMapper.getWorkMonth(userId, workMonth);
if (CollectionUtils.isEmpty(calendarDtoList)) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.WORK_ORDER_INFO_IS_NULL);
calendarDtoList.add(new CalendarDto().setWorkDay(DateUtil.getFirstDayOfMonth(workMonth)).setUserId(userId));
}
return calendarDtoList;
}
......
package cn.wisenergy.web.admin.controller.app;
import cn.wisenergy.common.utils.exception.Result;
import cn.wisenergy.model.vo.GetManagerProjectsVo;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
......@@ -14,4 +20,15 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
public class WorkProjectController {
@ApiOperation(value = "项目/商机基础信息", notes = "项目/商机基础信息", httpMethod = "GET")
@ApiImplicitParam(name = "gmpv",value = "获取管理的项目/商机",dataType = "GetManagerProjectsVo")
@GetMapping(value = "/getProject")
public Result<PageInfo> getProject(GetManagerProjectsVo gmpv) {
log.info("WorkProjectController[]getProject[]input.param.GetManagerProjectsVo:{}" + gmpv);
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