New file |
| | |
| | | package com.ycl.controller; |
| | | |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.PlanForm; |
| | | import com.ycl.domain.query.PlanQuery; |
| | | import com.ycl.service.PlanService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划表 前端控制器 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "项目计划表", tags = "项目计划表管理") |
| | | @RestController |
| | | @RequestMapping("/api/plan") |
| | | public class PlanController { |
| | | |
| | | private final PlanService planService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('plan:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) PlanForm form) { |
| | | return planService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | @PreAuthorize("hasAuthority('plan:edit')") |
| | | public Result update(@RequestBody @Validated(Update.class) PlanForm form) { |
| | | return planService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | @PreAuthorize("hasAuthority('plan:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return planService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |
| | | @PreAuthorize("hasAuthority('plan:del:batch')") |
| | | public Result remove(@RequestBody @NotEmpty(message = "请选择数据") List<String> ids) { |
| | | return planService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("hasAuthority('plan:page')") |
| | | public Result page(PlanQuery query) { |
| | | return planService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('plan:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return planService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("hasAuthority('plan:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return planService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.controller; |
| | | |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProgressPlanForm; |
| | | import com.ycl.domain.query.ProgressPlanQuery; |
| | | import com.ycl.service.ProgressPlanService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划进度 前端控制器 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "项目计划进度", tags = "项目计划进度管理") |
| | | @RestController |
| | | @RequestMapping("/api/progress-plan") |
| | | public class ProgressPlanController { |
| | | |
| | | private final ProgressPlanService progressPlanService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('progressPlan:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProgressPlanForm form) { |
| | | return progressPlanService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | @PreAuthorize("hasAuthority('progressPlan:edit')") |
| | | public Result update(@RequestBody @Validated(Update.class) ProgressPlanForm form) { |
| | | return progressPlanService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | @PreAuthorize("hasAuthority('progressPlan:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return progressPlanService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |
| | | @PreAuthorize("hasAuthority('progressPlan:del:batch')") |
| | | public Result remove(@RequestBody @NotEmpty(message = "请选择数据") List<String> ids) { |
| | | return progressPlanService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("hasAuthority('progressPlan:page')") |
| | | public Result page(ProgressPlanQuery query) { |
| | | return progressPlanService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('progressPlan:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return progressPlanService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("hasAuthority('progressPlan:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return progressPlanService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.controller; |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanExamineRecordForm; |
| | | import com.ycl.domain.query.ProjectPlanExamineRecordQuery; |
| | | import com.ycl.service.ProjectPlanExamineRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目审核记录表 前端控制器 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "项目审核记录表", tags = "项目审核记录表管理") |
| | | @RestController |
| | | @RequestMapping("/api/project-plan-examine-record") |
| | | public class ProjectPlanExamineRecordController { |
| | | |
| | | private final ProjectPlanExamineRecordService projectPlanExamineRecordService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanExamineRecordForm form) { |
| | | return projectPlanExamineRecordService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:edit')") |
| | | public Result update(@RequestBody @Validated(Update.class) ProjectPlanExamineRecordForm form) { |
| | | return projectPlanExamineRecordService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return projectPlanExamineRecordService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:del:batch')") |
| | | public Result remove(@RequestBody @NotEmpty(message = "请选择数据") List<String> ids) { |
| | | return projectPlanExamineRecordService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:page')") |
| | | public Result page(ProjectPlanExamineRecordQuery query) { |
| | | return projectPlanExamineRecordService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return projectPlanExamineRecordService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("hasAuthority('projectPlanExamineRecord:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return projectPlanExamineRecordService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.controller; |
| | | |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanInfoForm; |
| | | import com.ycl.domain.query.ProjectPlanInfoQuery; |
| | | import com.ycl.service.ProjectPlanInfoService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划项 前端控制器 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "项目计划项", tags = "项目计划项管理") |
| | | @RestController |
| | | @RequestMapping("/api/project-plan-info") |
| | | public class ProjectPlanInfoController { |
| | | |
| | | private final ProjectPlanInfoService projectPlanInfoService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanInfoForm form) { |
| | | return projectPlanInfoService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:edit')") |
| | | public Result update(@RequestBody @Validated(Update.class) ProjectPlanInfoForm form) { |
| | | return projectPlanInfoService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return projectPlanInfoService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:del:batch')") |
| | | public Result remove(@RequestBody @NotEmpty(message = "请选择数据") List<String> ids) { |
| | | return projectPlanInfoService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:page')") |
| | | public Result page(ProjectPlanInfoQuery query) { |
| | | return projectPlanInfoService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return projectPlanInfoService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return projectPlanInfoService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.controller; |
| | | |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanProgressReportForm; |
| | | import com.ycl.domain.query.ProjectPlanProgressReportQuery; |
| | | import com.ycl.service.ProjectPlanProgressReportService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 进度上报内容 前端控制器 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "进度上报内容", tags = "进度上报内容管理") |
| | | @RestController |
| | | @RequestMapping("/api/project-plan-progress-report") |
| | | public class ProjectPlanProgressReportController { |
| | | |
| | | private final ProjectPlanProgressReportService projectPlanProgressReportService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('projectPlanProgressReport:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanProgressReportForm form) { |
| | | return projectPlanProgressReportService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | @PreAuthorize("hasAuthority('projectPlanProgressReport:edit')") |
| | | public Result update(@RequestBody @Validated(Update.class) ProjectPlanProgressReportForm form) { |
| | | return projectPlanProgressReportService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | @PreAuthorize("hasAuthority('projectPlanProgressReport:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return projectPlanProgressReportService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |
| | | @PreAuthorize("hasAuthority('projectPlanProgressReport:del:batch')") |
| | | public Result remove(@RequestBody @NotEmpty(message = "请选择数据") List<String> ids) { |
| | | return projectPlanProgressReportService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("hasAuthority('projectPlanProgressReport:page')") |
| | | public Result page(ProjectPlanProgressReportQuery query) { |
| | | return projectPlanProgressReportService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectPlanProgressReport:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return projectPlanProgressReportService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("hasAuthority('projectPlanProgressReport:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return projectPlanProgressReportService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.controller; |
| | | |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanRecordForm; |
| | | import com.ycl.domain.query.ProjectPlanRecordQuery; |
| | | import com.ycl.service.ProjectPlanRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划记录 前端控制器 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "项目计划记录", tags = "项目计划记录管理") |
| | | @RestController |
| | | @RequestMapping("/api/project-plan-record") |
| | | public class ProjectPlanRecordController { |
| | | |
| | | private final ProjectPlanRecordService projectPlanRecordService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanRecordForm form) { |
| | | return projectPlanRecordService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:edit')") |
| | | public Result update(@RequestBody @Validated(Update.class) ProjectPlanRecordForm form) { |
| | | return projectPlanRecordService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return projectPlanRecordService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:del:batch')") |
| | | public Result remove(@RequestBody @NotEmpty(message = "请选择数据") List<String> ids) { |
| | | return projectPlanRecordService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:page')") |
| | | public Result page(ProjectPlanRecordQuery query) { |
| | | return projectPlanRecordService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return projectPlanRecordService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return projectPlanRecordService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.controller; |
| | | |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.common.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.ycl.service.ProjectUnitRegistrationInfoService; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.form.ProjectUnitRegistrationInfoForm; |
| | | import com.ycl.domain.query.ProjectUnitRegistrationInfoQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表 前端控制器 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "项目(法人)单位登记信息表", tags = "项目(法人)单位登记信息表管理") |
| | | @RestController |
| | | @RequestMapping("/project-unit-registration-info") |
| | | public class ProjectUnitRegistrationInfoController { |
| | | |
| | | private final ProjectUnitRegistrationInfoService projectUnitRegistrationInfoService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('projectUnitRegistrationInfo:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectUnitRegistrationInfoForm form) { |
| | | return projectUnitRegistrationInfoService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "修改", notes = "修改") |
| | | @PreAuthorize("hasAuthority('projectUnitRegistrationInfo:edit')") |
| | | public Result update(@RequestBody @Validated(Update.class) ProjectUnitRegistrationInfoForm form) { |
| | | return projectUnitRegistrationInfoService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | @PreAuthorize("hasAuthority('projectUnitRegistrationInfo:del')") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return projectUnitRegistrationInfoService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "批量删除", notes = "批量删除") |
| | | @PreAuthorize("hasAuthority('projectUnitRegistrationInfo:del:batch')") |
| | | public Result remove(@RequestBody @NotEmpty(message = "请选择数据") List<String> ids) { |
| | | return projectUnitRegistrationInfoService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("hasAuthority('projectUnitRegistrationInfo:page')") |
| | | public Result page(ProjectUnitRegistrationInfoQuery query) { |
| | | return projectUnitRegistrationInfoService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectUnitRegistrationInfo:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return projectUnitRegistrationInfoService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("hasAuthority('projectUnitRegistrationInfo:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return projectUnitRegistrationInfoService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import com.ycl.system.domain.base.AbsEntity; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目计划表 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @TableName("t_plan") |
| | | public class Plan extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableField("project_info_id") |
| | | /** 项目详情表id */ |
| | | private Long projectInfoId; |
| | | |
| | | @TableField("report_status") |
| | | /** 上报状态(0:已上报,1:未上报) */ |
| | | private Integer reportStatus; |
| | | |
| | | @TableField("month_status") |
| | | /** 月度(0:已上报,1:未上报) */ |
| | | private Integer monthStatus; |
| | | |
| | | @TableField("season_status") |
| | | /** 季度(0:已上报,1:未上报) */ |
| | | private Integer seasonStatus; |
| | | |
| | | @TableField("year_status") |
| | | /** 年度(0:已上报,1:未上报) */ |
| | | private Integer yearStatus; |
| | | |
| | | @TableField("gmt_create_time") |
| | | /** 创建时间 */ |
| | | private LocalDateTime gmtCreateTime; |
| | | |
| | | @TableField("gmt_update_time") |
| | | /** 修改时间 */ |
| | | private LocalDateTime gmtUpdateTime; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.system.domain.base.AbsEntity; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 项目计划进度 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @TableName("t_progress_plan") |
| | | public class ProgressPlan extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableField("project_info_id") |
| | | /** 项目信息表id */ |
| | | private Long projectInfoId; |
| | | |
| | | @TableField("report_status") |
| | | /** 上报状态(0:已上报,1:未上报) */ |
| | | private Integer reportStatus; |
| | | |
| | | @TableField("month_status") |
| | | /** 月度(0:已上报,1:未上报) */ |
| | | private Integer monthStatus; |
| | | |
| | | @TableField("season_status") |
| | | /** 季度(0:已上报,1:未上报) */ |
| | | private Integer seasonStatus; |
| | | |
| | | @TableField("year_status") |
| | | /** 年度(0:已上报,1:未上报) */ |
| | | private Integer yearStatus; |
| | | |
| | | @TableField("gmt_create_time") |
| | | /** 创建时间 */ |
| | | private LocalDateTime gmtCreateTime; |
| | | |
| | | @TableField("gmt_update_time") |
| | | /** 修改时间 */ |
| | | private LocalDateTime gmtUpdateTime; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | import com.ycl.system.domain.base.AbsEntity; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目审核记录表 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @TableName("t_project_plan_examine_record") |
| | | public class ProjectPlanExamineRecord extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableField("project_plan_record_id") |
| | | /** 项目计划记录id */ |
| | | private Long projectPlanRecordId; |
| | | |
| | | @TableField("department_user_id") |
| | | /** 上级部门审核人 */ |
| | | private Long departmentUserId; |
| | | |
| | | @TableField("manager_user_id") |
| | | /** 主管部门审核人 */ |
| | | private Long managerUserId; |
| | | |
| | | @TableField("department_examine") |
| | | /** 上级审核(同意:0,驳回:1) */ |
| | | private Integer departmentExamine; |
| | | |
| | | @TableField("department_approval") |
| | | /** 上级批复 */ |
| | | private String departmentApproval; |
| | | |
| | | @TableField("department_approval_reply") |
| | | /** 上级批复回复 */ |
| | | private String departmentApprovalReply; |
| | | |
| | | @TableField("manage_examine") |
| | | /** 主管部门审核(同意:0,驳回:1) */ |
| | | private Integer manageExamine; |
| | | |
| | | @TableField("manage_approval") |
| | | /** 主管部门批复 */ |
| | | private String manageApproval; |
| | | |
| | | @TableField("manage_approval_reply") |
| | | /** 主管部门批复回复 */ |
| | | private String manageApprovalReply; |
| | | |
| | | @TableField("event_type") |
| | | /** 计划上报/延期/进度上报(0/1/2) */ |
| | | private Integer eventType; |
| | | |
| | | @TableField("delay_start_time") |
| | | /** 延期开始时间 */ |
| | | private LocalDateTime delayStartTime; |
| | | |
| | | @TableField("delay_end_time") |
| | | /** 延期结束时间 */ |
| | | private LocalDateTime delayEndTime; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.system.domain.base.AbsEntity; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 项目计划项 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @TableName("t_project_plan_info") |
| | | public class ProjectPlanInfo extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableField("project_plan_record_id") |
| | | /** 项目计划记录id */ |
| | | private Long projectPlanRecordId; |
| | | |
| | | @TableField("title") |
| | | /** 事项名称 */ |
| | | private String title; |
| | | |
| | | @TableField("progress_status") |
| | | /** 状态(0:未完成,1:待审核,2:已驳回,3:已完成) */ |
| | | private Integer progressStatus; |
| | | |
| | | @TableField("start_time") |
| | | /** 计划开始时间 */ |
| | | private LocalDateTime startTime; |
| | | |
| | | @TableField("end_time") |
| | | /** 计划完成时间 */ |
| | | private LocalDateTime endTime; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.system.domain.base.AbsEntity; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 进度上报内容 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @TableName("t_project_plan_progress_report") |
| | | public class ProjectPlanProgressReport extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableField("project_plan_info_id") |
| | | /** 项目计划项id */ |
| | | private Long projectPlanInfoId; |
| | | |
| | | @TableField("start_time") |
| | | /** 实际开始时间 */ |
| | | private LocalDateTime startTime; |
| | | |
| | | @TableField("end_time") |
| | | /** 实际完成时间 */ |
| | | private LocalDateTime endTime; |
| | | |
| | | @TableField("progress_status") |
| | | /** 进度情况 */ |
| | | private String progressStatus; |
| | | |
| | | @TableField("actual_invest") |
| | | /** 当前实际投资 */ |
| | | private BigDecimal actualInvest; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.system.domain.base.AbsEntity; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * 项目计划记录 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @TableName("t_project_plan_record") |
| | | public class ProjectPlanRecord extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableField("project_info_id") |
| | | /** 项目信息id */ |
| | | private Long projectInfoId; |
| | | |
| | | @TableField("plan_id") |
| | | /** 项目计划id */ |
| | | private Long planId; |
| | | |
| | | @TableField("engineering_info_id") |
| | | /** 工程id */ |
| | | private Long engineeringInfoId; |
| | | |
| | | @TableField("plan_time") |
| | | /** 计划期 */ |
| | | private Integer planTime; |
| | | |
| | | @TableField("plan_time_flag") |
| | | /** 月度/季度/年度 0/1/2 */ |
| | | private Integer planTimeFlag; |
| | | |
| | | @TableField("report_status") |
| | | /** 上报状态 已上报/未上报 0/1 */ |
| | | private Integer reportStatus; |
| | | |
| | | @TableField("actual_invest") |
| | | /** 投资 */ |
| | | private BigDecimal actualInvest; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.system.domain.base.AbsEntity; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @TableName("t_project_unit_registration_info") |
| | | public class ProjectUnitRegistrationInfo extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableField("project_id") |
| | | /** 项目id */ |
| | | private Long projectId; |
| | | |
| | | @TableField("total_investment") |
| | | /** 项目总投资额 */ |
| | | private BigDecimal totalInvestment; |
| | | |
| | | @TableField("project_unit") |
| | | /** 项目单位 */ |
| | | private String projectUnit; |
| | | |
| | | @TableField("project_unit_type") |
| | | /** 项目单位类型 */ |
| | | private String projectUnitType; |
| | | |
| | | @TableField("registration_type") |
| | | /** 登记注册类型 */ |
| | | private String registrationType; |
| | | |
| | | @TableField("holding_situation") |
| | | /** 控股情况 */ |
| | | private String holdingSituation; |
| | | |
| | | @TableField("certificate_type") |
| | | /** 证照类型 */ |
| | | private String certificateType; |
| | | |
| | | @TableField("certificate_number") |
| | | /** 证照号码 */ |
| | | private String certificateNumber; |
| | | |
| | | @TableField("registered_address") |
| | | /** 注册地址 */ |
| | | private String registeredAddress; |
| | | |
| | | @TableField("registered_capital") |
| | | /** 注册资金 */ |
| | | private BigDecimal registeredCapital; |
| | | |
| | | @TableField("legal_representative") |
| | | /** 法人代表 */ |
| | | private String legalRepresentative; |
| | | |
| | | @TableField("fixed_phone") |
| | | /** 固定电话 */ |
| | | private String fixedPhone; |
| | | |
| | | @TableField("legal_person_idcard") |
| | | /** 法人身份证 */ |
| | | private String legalPersonIdcard; |
| | | |
| | | @TableField("project_contact_person") |
| | | /** 项目联系人 */ |
| | | private String projectContactPerson; |
| | | |
| | | @TableField("phone") |
| | | /** 移动电话 */ |
| | | private String phone; |
| | | |
| | | @TableField("contact_idcard") |
| | | /** 联系人身份证 */ |
| | | private String contactIdcard; |
| | | |
| | | @TableField("wechat") |
| | | /** 微信号 */ |
| | | private String wechat; |
| | | |
| | | @TableField("contact_address") |
| | | /** 联系人通讯地址 */ |
| | | private String contactAddress; |
| | | |
| | | @TableField("post_code") |
| | | /** 邮政编码 */ |
| | | private String postCode; |
| | | |
| | | @TableField("email") |
| | | /** 电子邮箱 */ |
| | | private String email; |
| | | |
| | | @TableField("create_by") |
| | | /** 创建人 */ |
| | | private Long createBy; |
| | | |
| | | @TableField("update_by") |
| | | /** 更新人 */ |
| | | private Long updateBy; |
| | | |
| | | @TableField("gmt_create_time") |
| | | /** 创建时间 */ |
| | | private LocalDateTime gmtCreateTime; |
| | | |
| | | @TableField("gmt_update_time") |
| | | /** 更新时间 */ |
| | | private LocalDateTime gmtUpdateTime; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.form; |
| | | |
| | | |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.entity.Plan; |
| | | import com.ycl.system.domain.base.AbsForm; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划表表单 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "Plan表单", description = "项目计划表表单") |
| | | public class PlanForm extends AbsForm { |
| | | |
| | | @NotNull(message = "项目详情表id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目详情表id") |
| | | private Long projectInfoId; |
| | | |
| | | @NotNull(message = "上报状态(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("上报状态(0:已上报,1:未上报)") |
| | | private Integer reportStatus; |
| | | |
| | | @NotNull(message = "月度(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("月度(0:已上报,1:未上报)") |
| | | private Integer monthStatus; |
| | | |
| | | @NotNull(message = "季度(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("季度(0:已上报,1:未上报)") |
| | | private Integer seasonStatus; |
| | | |
| | | @NotNull(message = "年度(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("年度(0:已上报,1:未上报)") |
| | | private Integer yearStatus; |
| | | |
| | | @NotNull(message = "创建时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("创建时间") |
| | | private Date gmtCreateTime; |
| | | |
| | | @NotNull(message = "修改时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("修改时间") |
| | | private Date gmtUpdateTime; |
| | | |
| | | public static Plan getEntityByForm(@NonNull PlanForm form, Plan entity) { |
| | | if(entity == null) { |
| | | entity = new Plan(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.form; |
| | | |
| | | |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.entity.ProgressPlan; |
| | | import com.ycl.system.domain.base.AbsForm; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划进度表单 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProgressPlan表单", description = "项目计划进度表单") |
| | | public class ProgressPlanForm extends AbsForm { |
| | | |
| | | @NotNull(message = "项目信息表id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目信息表id") |
| | | private Long projectInfoId; |
| | | |
| | | @NotNull(message = "上报状态(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("上报状态(0:已上报,1:未上报)") |
| | | private Integer reportStatus; |
| | | |
| | | @NotNull(message = "月度(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("月度(0:已上报,1:未上报)") |
| | | private Integer monthStatus; |
| | | |
| | | @NotNull(message = "季度(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("季度(0:已上报,1:未上报)") |
| | | private Integer seasonStatus; |
| | | |
| | | @NotNull(message = "年度(0:已上报,1:未上报)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("年度(0:已上报,1:未上报)") |
| | | private Integer yearStatus; |
| | | |
| | | @NotNull(message = "创建时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("创建时间") |
| | | private Date gmtCreateTime; |
| | | |
| | | @NotNull(message = "修改时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("修改时间") |
| | | private Date gmtUpdateTime; |
| | | |
| | | public static ProgressPlan getEntityByForm(@NonNull ProgressPlanForm form, ProgressPlan entity) { |
| | | if(entity == null) { |
| | | entity = new ProgressPlan(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.form; |
| | | |
| | | |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.entity.ProjectPlanExamineRecord; |
| | | import com.ycl.system.domain.base.AbsForm; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目审核记录表表单 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanExamineRecord表单", description = "项目审核记录表表单") |
| | | public class ProjectPlanExamineRecordForm extends AbsForm { |
| | | |
| | | @NotNull(message = "项目计划记录id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目计划记录id") |
| | | private Long projectPlanRecordId; |
| | | |
| | | @NotNull(message = "上级部门审核人不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("上级部门审核人") |
| | | private Long departmentUserId; |
| | | |
| | | @NotNull(message = "主管部门审核人不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("主管部门审核人") |
| | | private Long managerUserId; |
| | | |
| | | @NotNull(message = "上级审核(同意:0,驳回:1)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("上级审核(同意:0,驳回:1)") |
| | | private Integer departmentExamine; |
| | | |
| | | @NotBlank(message = "上级批复不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("上级批复") |
| | | private String departmentApproval; |
| | | |
| | | @NotBlank(message = "上级批复回复不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("上级批复回复") |
| | | private String departmentApprovalReply; |
| | | |
| | | @NotNull(message = "主管部门审核(同意:0,驳回:1)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("主管部门审核(同意:0,驳回:1)") |
| | | private Integer manageExamine; |
| | | |
| | | @NotBlank(message = "主管部门批复不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("主管部门批复") |
| | | private String manageApproval; |
| | | |
| | | @NotBlank(message = "主管部门批复回复不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("主管部门批复回复") |
| | | private String manageApprovalReply; |
| | | |
| | | @NotNull(message = "计划上报/延期/进度上报(0/1/2)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("计划上报/延期/进度上报(0/1/2)") |
| | | private Integer eventType; |
| | | |
| | | @NotNull(message = "延期开始时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("延期开始时间") |
| | | private Date delayStartTime; |
| | | |
| | | @NotNull(message = "延期结束时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("延期结束时间") |
| | | private Date delayEndTime; |
| | | |
| | | public static ProjectPlanExamineRecord getEntityByForm(@NonNull ProjectPlanExamineRecordForm form, ProjectPlanExamineRecord entity) { |
| | | if(entity == null) { |
| | | entity = new ProjectPlanExamineRecord(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.form; |
| | | |
| | | |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.entity.ProjectPlanInfo; |
| | | import com.ycl.system.domain.base.AbsForm; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划项表单 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanInfo表单", description = "项目计划项表单") |
| | | public class ProjectPlanInfoForm extends AbsForm { |
| | | |
| | | @NotNull(message = "项目计划记录id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目计划记录id") |
| | | private Long projectPlanRecordId; |
| | | |
| | | @NotBlank(message = "事项名称不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("事项名称") |
| | | private String title; |
| | | |
| | | @NotNull(message = "状态(0:未完成,1:待审核,2:已驳回,3:已完成)不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("状态(0:未完成,1:待审核,2:已驳回,3:已完成)") |
| | | private Integer progressStatus; |
| | | |
| | | @NotNull(message = "计划开始时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("计划开始时间") |
| | | private Date startTime; |
| | | |
| | | @NotNull(message = "计划完成时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("计划完成时间") |
| | | private Date endTime; |
| | | |
| | | public static ProjectPlanInfo getEntityByForm(@NonNull ProjectPlanInfoForm form, ProjectPlanInfo entity) { |
| | | if(entity == null) { |
| | | entity = new ProjectPlanInfo(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.form; |
| | | |
| | | |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.entity.ProjectPlanProgressReport; |
| | | import com.ycl.system.domain.base.AbsForm; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 进度上报内容表单 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanProgressReport表单", description = "进度上报内容表单") |
| | | public class ProjectPlanProgressReportForm extends AbsForm { |
| | | |
| | | @NotNull(message = "项目计划项id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目计划项id") |
| | | private Long projectPlanInfoId; |
| | | |
| | | @NotNull(message = "实际开始时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("实际开始时间") |
| | | private Date startTime; |
| | | |
| | | @NotNull(message = "实际完成时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("实际完成时间") |
| | | private Date endTime; |
| | | |
| | | @NotBlank(message = "进度情况不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("进度情况") |
| | | private String progressStatus; |
| | | |
| | | @NotNull(message = "当前实际投资不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("当前实际投资") |
| | | private BigDecimal actualInvest; |
| | | |
| | | public static ProjectPlanProgressReport getEntityByForm(@NonNull ProjectPlanProgressReportForm form, ProjectPlanProgressReport entity) { |
| | | if(entity == null) { |
| | | entity = new ProjectPlanProgressReport(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.form; |
| | | |
| | | |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | import com.ycl.system.domain.base.AbsForm; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划记录表单 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanRecord表单", description = "项目计划记录表单") |
| | | public class ProjectPlanRecordForm extends AbsForm { |
| | | |
| | | @NotNull(message = "项目信息id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目信息id") |
| | | private Long projectInfoId; |
| | | |
| | | @NotNull(message = "项目计划id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目计划id") |
| | | private Long planId; |
| | | |
| | | @NotNull(message = "工程id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("工程id") |
| | | private Long engineeringInfoId; |
| | | |
| | | @NotNull(message = "计划期不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("计划期") |
| | | private Integer planTime; |
| | | |
| | | @NotNull(message = "月度/季度/年度 0/1/2不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("月度/季度/年度 0/1/2") |
| | | private Integer planTimeFlag; |
| | | |
| | | @NotNull(message = "创建时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("创建时间") |
| | | private Date createTime; |
| | | |
| | | @NotNull(message = "上报状态 已上报/未上报 0/1不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("上报状态 已上报/未上报 0/1") |
| | | private Integer reportStatus; |
| | | |
| | | @NotNull(message = "投资不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("投资") |
| | | private BigDecimal actualInvest; |
| | | |
| | | public static ProjectPlanRecord getEntityByForm(@NonNull ProjectPlanRecordForm form, ProjectPlanRecord entity) { |
| | | if(entity == null) { |
| | | entity = new ProjectPlanRecord(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.form; |
| | | |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.system.domain.base.AbsForm; |
| | | import com.ycl.domain.entity.ProjectUnitRegistrationInfo; |
| | | import org.springframework.beans.BeanUtils; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import org.springframework.lang.NonNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表表单 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectUnitRegistrationInfo表单", description = "项目(法人)单位登记信息表表单") |
| | | public class ProjectUnitRegistrationInfoForm extends AbsForm { |
| | | |
| | | @NotNull(message = "项目id不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目id") |
| | | private Long projectId; |
| | | |
| | | @NotNull(message = "项目总投资额不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目总投资额") |
| | | private BigDecimal totalInvestment; |
| | | |
| | | @NotBlank(message = "项目单位不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目单位") |
| | | private String projectUnit; |
| | | |
| | | @NotBlank(message = "项目单位类型不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目单位类型") |
| | | private String projectUnitType; |
| | | |
| | | @NotBlank(message = "登记注册类型不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("登记注册类型") |
| | | private String registrationType; |
| | | |
| | | @NotBlank(message = "控股情况不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("控股情况") |
| | | private String holdingSituation; |
| | | |
| | | @NotBlank(message = "证照类型不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("证照类型") |
| | | private String certificateType; |
| | | |
| | | @NotBlank(message = "证照号码不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("证照号码") |
| | | private String certificateNumber; |
| | | |
| | | @NotBlank(message = "注册地址不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("注册地址") |
| | | private String registeredAddress; |
| | | |
| | | @NotNull(message = "注册资金不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("注册资金") |
| | | private BigDecimal registeredCapital; |
| | | |
| | | @NotBlank(message = "法人代表不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("法人代表") |
| | | private String legalRepresentative; |
| | | |
| | | @NotBlank(message = "固定电话不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("固定电话") |
| | | private String fixedPhone; |
| | | |
| | | @NotBlank(message = "法人身份证不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("法人身份证") |
| | | private String legalPersonIdcard; |
| | | |
| | | @NotBlank(message = "项目联系人不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("项目联系人") |
| | | private String projectContactPerson; |
| | | |
| | | @NotBlank(message = "移动电话不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("移动电话") |
| | | private String phone; |
| | | |
| | | @NotBlank(message = "联系人身份证不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("联系人身份证") |
| | | private String contactIdcard; |
| | | |
| | | @NotBlank(message = "微信号不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("微信号") |
| | | private String wechat; |
| | | |
| | | @NotBlank(message = "联系人通讯地址不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("联系人通讯地址") |
| | | private String contactAddress; |
| | | |
| | | @NotBlank(message = "邮政编码不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("邮政编码") |
| | | private String postCode; |
| | | |
| | | @NotBlank(message = "电子邮箱不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("电子邮箱") |
| | | private String email; |
| | | |
| | | @NotNull(message = "创建人不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("创建人") |
| | | private Long createBy; |
| | | |
| | | @NotNull(message = "更新人不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("更新人") |
| | | private Long updateBy; |
| | | |
| | | @NotNull(message = "创建时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("创建时间") |
| | | private Date gmtCreateTime; |
| | | |
| | | @NotNull(message = "更新时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("更新时间") |
| | | private Date gmtUpdateTime; |
| | | |
| | | public static ProjectUnitRegistrationInfo getEntityByForm(@NonNull ProjectUnitRegistrationInfoForm form, ProjectUnitRegistrationInfo entity) { |
| | | if(entity == null) { |
| | | entity = new ProjectUnitRegistrationInfo(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.query; |
| | | |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目计划表查询 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "Plan查询参数", description = "项目计划表查询参数") |
| | | public class PlanQuery extends AbsQuery { |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.domain.query; |
| | | |
| | | |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目计划进度查询 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProgressPlan查询参数", description = "项目计划进度查询参数") |
| | | public class ProgressPlanQuery extends AbsQuery { |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.domain.query; |
| | | |
| | | |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目审核记录表查询 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanExamineRecord查询参数", description = "项目审核记录表查询参数") |
| | | public class ProjectPlanExamineRecordQuery extends AbsQuery { |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.domain.query; |
| | | |
| | | |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目计划项查询 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanInfo查询参数", description = "项目计划项查询参数") |
| | | public class ProjectPlanInfoQuery extends AbsQuery { |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.domain.query; |
| | | |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 进度上报内容查询 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanProgressReport查询参数", description = "进度上报内容查询参数") |
| | | public class ProjectPlanProgressReportQuery extends AbsQuery { |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.domain.query; |
| | | |
| | | |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目计划记录查询 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectPlanRecord查询参数", description = "项目计划记录查询参数") |
| | | public class ProjectPlanRecordQuery extends AbsQuery { |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.domain.query; |
| | | |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import java.util.List; |
| | | import org.springframework.lang.NonNull; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表查询 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ProjectUnitRegistrationInfo查询参数", description = "项目(法人)单位登记信息表查询参数") |
| | | public class ProjectUnitRegistrationInfoQuery extends AbsQuery { |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.domain.vo; |
| | | |
| | | |
| | | import com.ycl.domain.entity.Plan; |
| | | import java.util.List; |
| | | |
| | | import com.ycl.system.domain.base.AbsVo; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划表展示 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "项目计划表响应数据", description = "项目计划表响应数据") |
| | | public class PlanVO extends AbsVo { |
| | | |
| | | /** 项目详情表id */ |
| | | @ApiModelProperty("项目详情表id") |
| | | private Long projectInfoId; |
| | | |
| | | /** 上报状态(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("上报状态(0:已上报,1:未上报)") |
| | | private Integer reportStatus; |
| | | |
| | | /** 月度(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("月度(0:已上报,1:未上报)") |
| | | private Integer monthStatus; |
| | | |
| | | /** 季度(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("季度(0:已上报,1:未上报)") |
| | | private Integer seasonStatus; |
| | | |
| | | /** 年度(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("年度(0:已上报,1:未上报)") |
| | | private Integer yearStatus; |
| | | |
| | | /** 创建时间 */ |
| | | @ApiModelProperty("创建时间") |
| | | private Date gmtCreateTime; |
| | | |
| | | /** 修改时间 */ |
| | | @ApiModelProperty("修改时间") |
| | | private Date gmtUpdateTime; |
| | | |
| | | public static PlanVO getVoByEntity(@NonNull Plan entity, PlanVO vo) { |
| | | if(vo == null) { |
| | | vo = new PlanVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.vo; |
| | | |
| | | |
| | | import com.ycl.domain.entity.ProgressPlan; |
| | | import com.ycl.system.domain.base.AbsVo; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划进度展示 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "项目计划进度响应数据", description = "项目计划进度响应数据") |
| | | public class ProgressPlanVO extends AbsVo { |
| | | |
| | | /** 项目信息表id */ |
| | | @ApiModelProperty("项目信息表id") |
| | | private Long projectInfoId; |
| | | |
| | | /** 上报状态(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("上报状态(0:已上报,1:未上报)") |
| | | private Integer reportStatus; |
| | | |
| | | /** 月度(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("月度(0:已上报,1:未上报)") |
| | | private Integer monthStatus; |
| | | |
| | | /** 季度(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("季度(0:已上报,1:未上报)") |
| | | private Integer seasonStatus; |
| | | |
| | | /** 年度(0:已上报,1:未上报) */ |
| | | @ApiModelProperty("年度(0:已上报,1:未上报)") |
| | | private Integer yearStatus; |
| | | |
| | | /** 创建时间 */ |
| | | @ApiModelProperty("创建时间") |
| | | private Date gmtCreateTime; |
| | | |
| | | /** 修改时间 */ |
| | | @ApiModelProperty("修改时间") |
| | | private Date gmtUpdateTime; |
| | | |
| | | public static ProgressPlanVO getVoByEntity(@NonNull ProgressPlan entity, ProgressPlanVO vo) { |
| | | if(vo == null) { |
| | | vo = new ProgressPlanVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.vo; |
| | | |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanExamineRecord; |
| | | import com.ycl.system.domain.base.AbsVo; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目审核记录表展示 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "项目审核记录表响应数据", description = "项目审核记录表响应数据") |
| | | public class ProjectPlanExamineRecordVO extends AbsVo { |
| | | |
| | | /** 项目计划记录id */ |
| | | @ApiModelProperty("项目计划记录id") |
| | | private Long projectPlanRecordId; |
| | | |
| | | /** 上级部门审核人 */ |
| | | @ApiModelProperty("上级部门审核人") |
| | | private Long departmentUserId; |
| | | |
| | | /** 主管部门审核人 */ |
| | | @ApiModelProperty("主管部门审核人") |
| | | private Long managerUserId; |
| | | |
| | | /** 上级审核(同意:0,驳回:1) */ |
| | | @ApiModelProperty("上级审核(同意:0,驳回:1)") |
| | | private Integer departmentExamine; |
| | | |
| | | /** 上级批复 */ |
| | | @ApiModelProperty("上级批复") |
| | | private String departmentApproval; |
| | | |
| | | /** 上级批复回复 */ |
| | | @ApiModelProperty("上级批复回复") |
| | | private String departmentApprovalReply; |
| | | |
| | | /** 主管部门审核(同意:0,驳回:1) */ |
| | | @ApiModelProperty("主管部门审核(同意:0,驳回:1)") |
| | | private Integer manageExamine; |
| | | |
| | | /** 主管部门批复 */ |
| | | @ApiModelProperty("主管部门批复") |
| | | private String manageApproval; |
| | | |
| | | /** 主管部门批复回复 */ |
| | | @ApiModelProperty("主管部门批复回复") |
| | | private String manageApprovalReply; |
| | | |
| | | /** 计划上报/延期/进度上报(0/1/2) */ |
| | | @ApiModelProperty("计划上报/延期/进度上报(0/1/2)") |
| | | private Integer eventType; |
| | | |
| | | /** 延期开始时间 */ |
| | | @ApiModelProperty("延期开始时间") |
| | | private Date delayStartTime; |
| | | |
| | | /** 延期结束时间 */ |
| | | @ApiModelProperty("延期结束时间") |
| | | private Date delayEndTime; |
| | | |
| | | public static ProjectPlanExamineRecordVO getVoByEntity(@NonNull ProjectPlanExamineRecord entity, ProjectPlanExamineRecordVO vo) { |
| | | if(vo == null) { |
| | | vo = new ProjectPlanExamineRecordVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.vo; |
| | | |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanInfo; |
| | | import com.ycl.system.domain.base.AbsVo; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划项展示 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "项目计划项响应数据", description = "项目计划项响应数据") |
| | | public class ProjectPlanInfoVO extends AbsVo { |
| | | |
| | | /** 项目计划记录id */ |
| | | @ApiModelProperty("项目计划记录id") |
| | | private Long projectPlanRecordId; |
| | | |
| | | /** 事项名称 */ |
| | | @ApiModelProperty("事项名称") |
| | | private String title; |
| | | |
| | | /** 状态(0:未完成,1:待审核,2:已驳回,3:已完成) */ |
| | | @ApiModelProperty("状态(0:未完成,1:待审核,2:已驳回,3:已完成)") |
| | | private Integer progressStatus; |
| | | |
| | | /** 计划开始时间 */ |
| | | @ApiModelProperty("计划开始时间") |
| | | private Date startTime; |
| | | |
| | | /** 计划完成时间 */ |
| | | @ApiModelProperty("计划完成时间") |
| | | private Date endTime; |
| | | |
| | | public static ProjectPlanInfoVO getVoByEntity(@NonNull ProjectPlanInfo entity, ProjectPlanInfoVO vo) { |
| | | if(vo == null) { |
| | | vo = new ProjectPlanInfoVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.vo; |
| | | |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanProgressReport; |
| | | import com.ycl.system.domain.base.AbsVo; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 进度上报内容展示 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "进度上报内容响应数据", description = "进度上报内容响应数据") |
| | | public class ProjectPlanProgressReportVO extends AbsVo { |
| | | |
| | | /** 项目计划项id */ |
| | | @ApiModelProperty("项目计划项id") |
| | | private Long projectPlanInfoId; |
| | | |
| | | /** 实际开始时间 */ |
| | | @ApiModelProperty("实际开始时间") |
| | | private Date startTime; |
| | | |
| | | /** 实际完成时间 */ |
| | | @ApiModelProperty("实际完成时间") |
| | | private Date endTime; |
| | | |
| | | /** 进度情况 */ |
| | | @ApiModelProperty("进度情况") |
| | | private String progressStatus; |
| | | |
| | | /** 当前实际投资 */ |
| | | @ApiModelProperty("当前实际投资") |
| | | private BigDecimal actualInvest; |
| | | |
| | | public static ProjectPlanProgressReportVO getVoByEntity(@NonNull ProjectPlanProgressReport entity, ProjectPlanProgressReportVO vo) { |
| | | if(vo == null) { |
| | | vo = new ProjectPlanProgressReportVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.vo; |
| | | |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import com.ycl.system.domain.base.AbsVo; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目计划记录展示 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "项目计划记录响应数据", description = "项目计划记录响应数据") |
| | | public class ProjectPlanRecordVO extends AbsVo { |
| | | |
| | | /** 项目信息id */ |
| | | @ApiModelProperty("项目信息id") |
| | | private Long projectInfoId; |
| | | |
| | | /** 项目计划id */ |
| | | @ApiModelProperty("项目计划id") |
| | | private Long planId; |
| | | |
| | | /** 工程id */ |
| | | @ApiModelProperty("工程id") |
| | | private Long engineeringInfoId; |
| | | |
| | | /** 计划期 */ |
| | | @ApiModelProperty("计划期") |
| | | private Integer planTime; |
| | | |
| | | /** 月度/季度/年度 0/1/2 */ |
| | | @ApiModelProperty("月度/季度/年度 0/1/2") |
| | | private Integer planTimeFlag; |
| | | |
| | | /** 创建时间 */ |
| | | @ApiModelProperty("创建时间") |
| | | private Date createTime; |
| | | |
| | | /** 上报状态 已上报/未上报 0/1 */ |
| | | @ApiModelProperty("上报状态 已上报/未上报 0/1") |
| | | private Integer reportStatus; |
| | | |
| | | /** 投资 */ |
| | | @ApiModelProperty("投资") |
| | | private BigDecimal actualInvest; |
| | | |
| | | public static ProjectPlanRecordVO getVoByEntity(@NonNull ProjectPlanRecord entity, ProjectPlanRecordVO vo) { |
| | | if(vo == null) { |
| | | vo = new ProjectPlanRecordVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.domain.vo; |
| | | |
| | | import com.ycl.system.domain.base.AbsVo; |
| | | import com.ycl.domain.entity.ProjectUnitRegistrationInfo; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表展示 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "项目(法人)单位登记信息表响应数据", description = "项目(法人)单位登记信息表响应数据") |
| | | public class ProjectUnitRegistrationInfoVO extends AbsVo { |
| | | |
| | | /** 项目id */ |
| | | @ApiModelProperty("项目id") |
| | | private Long projectId; |
| | | |
| | | /** 项目总投资额 */ |
| | | @ApiModelProperty("项目总投资额") |
| | | private BigDecimal totalInvestment; |
| | | |
| | | /** 项目单位 */ |
| | | @ApiModelProperty("项目单位") |
| | | private String projectUnit; |
| | | |
| | | /** 项目单位类型 */ |
| | | @ApiModelProperty("项目单位类型") |
| | | private String projectUnitType; |
| | | |
| | | /** 登记注册类型 */ |
| | | @ApiModelProperty("登记注册类型") |
| | | private String registrationType; |
| | | |
| | | /** 控股情况 */ |
| | | @ApiModelProperty("控股情况") |
| | | private String holdingSituation; |
| | | |
| | | /** 证照类型 */ |
| | | @ApiModelProperty("证照类型") |
| | | private String certificateType; |
| | | |
| | | /** 证照号码 */ |
| | | @ApiModelProperty("证照号码") |
| | | private String certificateNumber; |
| | | |
| | | /** 注册地址 */ |
| | | @ApiModelProperty("注册地址") |
| | | private String registeredAddress; |
| | | |
| | | /** 注册资金 */ |
| | | @ApiModelProperty("注册资金") |
| | | private BigDecimal registeredCapital; |
| | | |
| | | /** 法人代表 */ |
| | | @ApiModelProperty("法人代表") |
| | | private String legalRepresentative; |
| | | |
| | | /** 固定电话 */ |
| | | @ApiModelProperty("固定电话") |
| | | private String fixedPhone; |
| | | |
| | | /** 法人身份证 */ |
| | | @ApiModelProperty("法人身份证") |
| | | private String legalPersonIdcard; |
| | | |
| | | /** 项目联系人 */ |
| | | @ApiModelProperty("项目联系人") |
| | | private String projectContactPerson; |
| | | |
| | | /** 移动电话 */ |
| | | @ApiModelProperty("移动电话") |
| | | private String phone; |
| | | |
| | | /** 联系人身份证 */ |
| | | @ApiModelProperty("联系人身份证") |
| | | private String contactIdcard; |
| | | |
| | | /** 微信号 */ |
| | | @ApiModelProperty("微信号") |
| | | private String wechat; |
| | | |
| | | /** 联系人通讯地址 */ |
| | | @ApiModelProperty("联系人通讯地址") |
| | | private String contactAddress; |
| | | |
| | | /** 邮政编码 */ |
| | | @ApiModelProperty("邮政编码") |
| | | private String postCode; |
| | | |
| | | /** 电子邮箱 */ |
| | | @ApiModelProperty("电子邮箱") |
| | | private String email; |
| | | |
| | | /** 创建人 */ |
| | | @ApiModelProperty("创建人") |
| | | private Long createBy; |
| | | |
| | | /** 更新人 */ |
| | | @ApiModelProperty("更新人") |
| | | private Long updateBy; |
| | | |
| | | /** 创建时间 */ |
| | | @ApiModelProperty("创建时间") |
| | | private Date gmtCreateTime; |
| | | |
| | | /** 更新时间 */ |
| | | @ApiModelProperty("更新时间") |
| | | private Date gmtUpdateTime; |
| | | |
| | | public static ProjectUnitRegistrationInfoVO getVoByEntity(@NonNull ProjectUnitRegistrationInfo entity, ProjectUnitRegistrationInfoVO vo) { |
| | | if(vo == null) { |
| | | vo = new ProjectUnitRegistrationInfoVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.domain.entity.Plan; |
| | | import com.ycl.domain.query.PlanQuery; |
| | | import com.ycl.domain.vo.PlanVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 项目计划表 Mapper 接口 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface PlanMapper extends BaseMapper<Plan> { |
| | | |
| | | /** |
| | | * id查找项目计划表 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | PlanVO getById(Integer id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") PlanQuery query); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.domain.entity.ProgressPlan; |
| | | import com.ycl.domain.query.ProgressPlanQuery; |
| | | import com.ycl.domain.vo.ProgressPlanVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 项目计划进度 Mapper 接口 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface ProgressPlanMapper extends BaseMapper<ProgressPlan> { |
| | | |
| | | /** |
| | | * id查找项目计划进度 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | ProgressPlanVO getById(Integer id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") ProgressPlanQuery query); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper; |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanExamineRecord; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.domain.query.ProjectPlanExamineRecordQuery; |
| | | import com.ycl.domain.vo.ProjectPlanExamineRecordVO; |
| | | import com.ycl.domain.form.ProjectPlanExamineRecordForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 项目审核记录表 Mapper 接口 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface ProjectPlanExamineRecordMapper extends BaseMapper<ProjectPlanExamineRecord> { |
| | | |
| | | /** |
| | | * id查找项目审核记录表 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | ProjectPlanExamineRecordVO getById(Integer id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") ProjectPlanExamineRecordQuery query); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper; |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanInfo; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.domain.query.ProjectPlanInfoQuery; |
| | | import com.ycl.domain.vo.ProjectPlanInfoVO; |
| | | import com.ycl.domain.form.ProjectPlanInfoForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 项目计划项 Mapper 接口 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface ProjectPlanInfoMapper extends BaseMapper<ProjectPlanInfo> { |
| | | |
| | | /** |
| | | * id查找项目计划项 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | ProjectPlanInfoVO getById(Integer id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") ProjectPlanInfoQuery query); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper; |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanProgressReport; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.domain.query.ProjectPlanProgressReportQuery; |
| | | import com.ycl.domain.vo.ProjectPlanProgressReportVO; |
| | | import com.ycl.domain.form.ProjectPlanProgressReportForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 进度上报内容 Mapper 接口 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface ProjectPlanProgressReportMapper extends BaseMapper<ProjectPlanProgressReport> { |
| | | |
| | | /** |
| | | * id查找进度上报内容 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | ProjectPlanProgressReportVO getById(Integer id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") ProjectPlanProgressReportQuery query); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper; |
| | | |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.domain.query.ProjectPlanRecordQuery; |
| | | import com.ycl.domain.vo.ProjectPlanRecordVO; |
| | | import com.ycl.domain.form.ProjectPlanRecordForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 项目计划记录 Mapper 接口 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface ProjectPlanRecordMapper extends BaseMapper<ProjectPlanRecord> { |
| | | |
| | | /** |
| | | * id查找项目计划记录 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | ProjectPlanRecordVO getById(Integer id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") ProjectPlanRecordQuery query); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.mapper; |
| | | |
| | | import com.ycl.domain.entity.ProjectUnitRegistrationInfo; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.domain.vo.ProjectUnitRegistrationInfoVO; |
| | | import com.ycl.domain.form.ProjectUnitRegistrationInfoForm; |
| | | import com.ycl.domain.query.ProjectUnitRegistrationInfoQuery; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表 Mapper 接口 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Mapper |
| | | public interface ProjectUnitRegistrationInfoMapper extends BaseMapper<ProjectUnitRegistrationInfo> { |
| | | |
| | | /** |
| | | * id查找项目(法人)单位登记信息表 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | ProjectUnitRegistrationInfoVO getById(Integer id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") ProjectUnitRegistrationInfoQuery query); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.service; |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.Plan; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.domain.form.PlanForm; |
| | | import com.ycl.domain.query.PlanQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划表 服务类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | public interface PlanService extends IService<Plan> { |
| | | |
| | | /** |
| | | * 添加 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(PlanForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(PlanForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * id删除 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(PlanQuery query); |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | |
| | | /** |
| | | * 列表 |
| | | * |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.service; |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProgressPlan; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.domain.form.ProgressPlanForm; |
| | | import com.ycl.domain.query.ProgressPlanQuery; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划进度 服务类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | public interface ProgressPlanService extends IService<ProgressPlan> { |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(ProgressPlanForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(ProgressPlanForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(ProgressPlanQuery query); |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanExamineRecord; |
| | | import com.ycl.domain.form.ProjectPlanExamineRecordForm; |
| | | import com.ycl.domain.query.ProjectPlanExamineRecordQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目审核记录表 服务类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | public interface ProjectPlanExamineRecordService extends IService<ProjectPlanExamineRecord> { |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(ProjectPlanExamineRecordForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(ProjectPlanExamineRecordForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(ProjectPlanExamineRecordQuery query); |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanInfo; |
| | | import com.ycl.domain.form.ProjectPlanInfoForm; |
| | | import com.ycl.domain.query.ProjectPlanInfoQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划项 服务类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | public interface ProjectPlanInfoService extends IService<ProjectPlanInfo> { |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(ProjectPlanInfoForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(ProjectPlanInfoForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(ProjectPlanInfoQuery query); |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanProgressReport; |
| | | import com.ycl.domain.form.ProjectPlanProgressReportForm; |
| | | import com.ycl.domain.query.ProjectPlanProgressReportQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 进度上报内容 服务类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | public interface ProjectPlanProgressReportService extends IService<ProjectPlanProgressReport> { |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(ProjectPlanProgressReportForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(ProjectPlanProgressReportForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(ProjectPlanProgressReportQuery query); |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | import com.ycl.domain.form.ProjectPlanRecordForm; |
| | | import com.ycl.domain.query.ProjectPlanRecordQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目计划记录 服务类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | public interface ProjectPlanRecordService extends IService<ProjectPlanRecord> { |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(ProjectPlanRecordForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(ProjectPlanRecordForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(ProjectPlanRecordQuery query); |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.service; |
| | | |
| | | import com.ycl.domain.entity.ProjectUnitRegistrationInfo; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.form.ProjectUnitRegistrationInfoForm; |
| | | import com.ycl.domain.query.ProjectUnitRegistrationInfoQuery; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表 服务类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | public interface ProjectUnitRegistrationInfoService extends IService<ProjectUnitRegistrationInfo> { |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(ProjectUnitRegistrationInfoForm form); |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(ProjectUnitRegistrationInfoForm form); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(ProjectUnitRegistrationInfoQuery query); |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(Integer id); |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.Plan; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.mapper.PlanMapper; |
| | | import com.ycl.service.PlanService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.domain.form.PlanForm; |
| | | import com.ycl.domain.vo.PlanVO; |
| | | import com.ycl.domain.query.PlanQuery; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 项目计划表 服务实现类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements PlanService { |
| | | |
| | | private final PlanMapper planMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(PlanForm form) { |
| | | Plan entity = PlanForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(PlanForm form) { |
| | | Plan entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("修改成功"); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(PlanQuery query) { |
| | | IPage<PlanVO> page = PageUtil.getPage(query, PlanVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | PlanVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<Plan> entities = baseMapper.selectList(null); |
| | | List<PlanVO> vos = entities.stream() |
| | | .map(entity -> PlanVO.getVoByEntity(entity, null)) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProgressPlan; |
| | | import com.ycl.domain.form.ProgressPlanForm; |
| | | import com.ycl.domain.query.ProgressPlanQuery; |
| | | import com.ycl.domain.vo.ProgressPlanVO; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.mapper.ProgressPlanMapper; |
| | | import com.ycl.service.ProgressPlanService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 项目计划进度 服务实现类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ProgressPlanServiceImpl extends ServiceImpl<ProgressPlanMapper, ProgressPlan> implements ProgressPlanService { |
| | | |
| | | private final ProgressPlanMapper progressPlanMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(ProgressPlanForm form) { |
| | | ProgressPlan entity = ProgressPlanForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(ProgressPlanForm form) { |
| | | ProgressPlan entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("修改成功"); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(ProgressPlanQuery query) { |
| | | IPage<ProgressPlanVO> page = PageUtil.getPage(query, ProgressPlanVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | ProgressPlanVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<ProgressPlan> entities = baseMapper.selectList(null); |
| | | List<ProgressPlanVO> vos = entities.stream() |
| | | .map(entity -> ProgressPlanVO.getVoByEntity(entity, null)) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanExamineRecord; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.mapper.ProjectPlanExamineRecordMapper; |
| | | import com.ycl.service.ProjectPlanExamineRecordService; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.domain.form.ProjectPlanExamineRecordForm; |
| | | import com.ycl.domain.vo.ProjectPlanExamineRecordVO; |
| | | import com.ycl.domain.query.ProjectPlanExamineRecordQuery; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 项目审核记录表 服务实现类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ProjectPlanExamineRecordServiceImpl extends ServiceImpl<ProjectPlanExamineRecordMapper, ProjectPlanExamineRecord> implements ProjectPlanExamineRecordService { |
| | | |
| | | private final ProjectPlanExamineRecordMapper projectPlanExamineRecordMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(ProjectPlanExamineRecordForm form) { |
| | | ProjectPlanExamineRecord entity = ProjectPlanExamineRecordForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(ProjectPlanExamineRecordForm form) { |
| | | ProjectPlanExamineRecord entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("修改成功"); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(ProjectPlanExamineRecordQuery query) { |
| | | IPage<ProjectPlanExamineRecordVO> page = PageUtil.getPage(query, ProjectPlanExamineRecordVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | ProjectPlanExamineRecordVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<ProjectPlanExamineRecord> entities = baseMapper.selectList(null); |
| | | List<ProjectPlanExamineRecordVO> vos = entities.stream() |
| | | .map(entity -> ProjectPlanExamineRecordVO.getVoByEntity(entity, null)) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanInfo; |
| | | import com.ycl.domain.form.ProjectPlanInfoForm; |
| | | import com.ycl.domain.query.ProjectPlanInfoQuery; |
| | | import com.ycl.domain.vo.ProjectPlanInfoVO; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.mapper.ProjectPlanInfoMapper; |
| | | import com.ycl.service.ProjectPlanInfoService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 项目计划项 服务实现类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ProjectPlanInfoServiceImpl extends ServiceImpl<ProjectPlanInfoMapper, ProjectPlanInfo> implements ProjectPlanInfoService { |
| | | |
| | | private final ProjectPlanInfoMapper projectPlanInfoMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(ProjectPlanInfoForm form) { |
| | | ProjectPlanInfo entity = ProjectPlanInfoForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(ProjectPlanInfoForm form) { |
| | | ProjectPlanInfo entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("修改成功"); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(ProjectPlanInfoQuery query) { |
| | | IPage<ProjectPlanInfoVO> page = PageUtil.getPage(query, ProjectPlanInfoVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | ProjectPlanInfoVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<ProjectPlanInfo> entities = baseMapper.selectList(null); |
| | | List<ProjectPlanInfoVO> vos = entities.stream() |
| | | .map(entity -> ProjectPlanInfoVO.getVoByEntity(entity, null)) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanProgressReport; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.mapper.ProjectPlanProgressReportMapper; |
| | | import com.ycl.service.ProjectPlanProgressReportService; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.domain.form.ProjectPlanProgressReportForm; |
| | | import com.ycl.domain.vo.ProjectPlanProgressReportVO; |
| | | import com.ycl.domain.query.ProjectPlanProgressReportQuery; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 进度上报内容 服务实现类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ProjectPlanProgressReportServiceImpl extends ServiceImpl<ProjectPlanProgressReportMapper, ProjectPlanProgressReport> implements ProjectPlanProgressReportService { |
| | | |
| | | private final ProjectPlanProgressReportMapper projectPlanProgressReportMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(ProjectPlanProgressReportForm form) { |
| | | ProjectPlanProgressReport entity = ProjectPlanProgressReportForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(ProjectPlanProgressReportForm form) { |
| | | ProjectPlanProgressReport entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("修改成功"); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(ProjectPlanProgressReportQuery query) { |
| | | IPage<ProjectPlanProgressReportVO> page = PageUtil.getPage(query, ProjectPlanProgressReportVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | ProjectPlanProgressReportVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<ProjectPlanProgressReport> entities = baseMapper.selectList(null); |
| | | List<ProjectPlanProgressReportVO> vos = entities.stream() |
| | | .map(entity -> ProjectPlanProgressReportVO.getVoByEntity(entity, null)) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.mapper.ProjectPlanRecordMapper; |
| | | import com.ycl.service.ProjectPlanRecordService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.domain.form.ProjectPlanRecordForm; |
| | | import com.ycl.domain.vo.ProjectPlanRecordVO; |
| | | import com.ycl.domain.query.ProjectPlanRecordQuery; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 项目计划记录 服务实现类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ProjectPlanRecordServiceImpl extends ServiceImpl<ProjectPlanRecordMapper, ProjectPlanRecord> implements ProjectPlanRecordService { |
| | | |
| | | private final ProjectPlanRecordMapper projectPlanRecordMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(ProjectPlanRecordForm form) { |
| | | ProjectPlanRecord entity = ProjectPlanRecordForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(ProjectPlanRecordForm form) { |
| | | ProjectPlanRecord entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("修改成功"); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(ProjectPlanRecordQuery query) { |
| | | IPage<ProjectPlanRecordVO> page = PageUtil.getPage(query, ProjectPlanRecordVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | ProjectPlanRecordVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<ProjectPlanRecord> entities = baseMapper.selectList(null); |
| | | List<ProjectPlanRecordVO> vos = entities.stream() |
| | | .map(entity -> ProjectPlanRecordVO.getVoByEntity(entity, null)) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.domain.entity.ProjectUnitRegistrationInfo; |
| | | import com.ycl.mapper.ProjectUnitRegistrationInfoMapper; |
| | | import com.ycl.service.ProjectUnitRegistrationInfoService; |
| | | import com.ycl.common.base.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.domain.form.ProjectUnitRegistrationInfoForm; |
| | | import com.ycl.domain.vo.ProjectUnitRegistrationInfoVO; |
| | | import com.ycl.domain.query.ProjectUnitRegistrationInfoQuery; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 项目(法人)单位登记信息表 服务实现类 |
| | | * |
| | | * @author lhr |
| | | * @since 2024-11-22 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ProjectUnitRegistrationInfoServiceImpl extends ServiceImpl<ProjectUnitRegistrationInfoMapper, ProjectUnitRegistrationInfo> implements ProjectUnitRegistrationInfoService { |
| | | |
| | | private final ProjectUnitRegistrationInfoMapper projectUnitRegistrationInfoMapper; |
| | | |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(ProjectUnitRegistrationInfoForm form) { |
| | | ProjectUnitRegistrationInfo entity = ProjectUnitRegistrationInfoForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(ProjectUnitRegistrationInfoForm form) { |
| | | ProjectUnitRegistrationInfo entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空抛IllegalArgumentException,做全局异常处理 |
| | | Assert.notNull(entity, "记录不存在"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | return Result.ok("修改成功"); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | return Result.ok("删除成功"); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(ProjectUnitRegistrationInfoQuery query) { |
| | | IPage<ProjectUnitRegistrationInfoVO> page = PageUtil.getPage(query, ProjectUnitRegistrationInfoVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查找 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | ProjectUnitRegistrationInfoVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<ProjectUnitRegistrationInfo> entities = baseMapper.selectList(null); |
| | | List<ProjectUnitRegistrationInfoVO> vos = entities.stream() |
| | | .map(entity -> ProjectUnitRegistrationInfoVO.getVoByEntity(entity, null)) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | <?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.ycl.mapper.PlanMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.domain.vo.PlanVO"> |
| | | <result column="project_info_id" property="projectInfoId" /> |
| | | <result column="report_status" property="reportStatus" /> |
| | | <result column="month_status" property="monthStatus" /> |
| | | <result column="season_status" property="seasonStatus" /> |
| | | <result column="year_status" property="yearStatus" /> |
| | | <result column="gmt_create_time" property="gmtCreateTime" /> |
| | | <result column="gmt_update_time" property="gmtUpdateTime" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TP.project_info_id, |
| | | TP.report_status, |
| | | TP.month_status, |
| | | TP.season_status, |
| | | TP.year_status, |
| | | TP.gmt_create_time, |
| | | TP.gmt_update_time, |
| | | TP.id |
| | | FROM |
| | | t_plan TP |
| | | WHERE |
| | | TP.id = #{id} AND TP.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TP.project_info_id, |
| | | TP.report_status, |
| | | TP.month_status, |
| | | TP.season_status, |
| | | TP.year_status, |
| | | TP.gmt_create_time, |
| | | TP.gmt_update_time, |
| | | TP.id |
| | | FROM |
| | | t_plan TP |
| | | WHERE |
| | | TP.deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.mapper.ProgressPlanMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProgressPlanVO"> |
| | | <result column="project_info_id" property="projectInfoId" /> |
| | | <result column="report_status" property="reportStatus" /> |
| | | <result column="month_status" property="monthStatus" /> |
| | | <result column="season_status" property="seasonStatus" /> |
| | | <result column="year_status" property="yearStatus" /> |
| | | <result column="gmt_create_time" property="gmtCreateTime" /> |
| | | <result column="gmt_update_time" property="gmtUpdateTime" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPP.project_info_id, |
| | | TPP.report_status, |
| | | TPP.month_status, |
| | | TPP.season_status, |
| | | TPP.year_status, |
| | | TPP.gmt_create_time, |
| | | TPP.gmt_update_time, |
| | | TPP.id |
| | | FROM |
| | | t_progress_plan TPP |
| | | WHERE |
| | | TPP.id = #{id} AND TPP.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPP.project_info_id, |
| | | TPP.report_status, |
| | | TPP.month_status, |
| | | TPP.season_status, |
| | | TPP.year_status, |
| | | TPP.gmt_create_time, |
| | | TPP.gmt_update_time, |
| | | TPP.id |
| | | FROM |
| | | t_progress_plan TPP |
| | | WHERE |
| | | TPP.deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.mapper.ProjectPlanExamineRecordMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectPlanExamineRecordVO"> |
| | | <result column="project_plan_record_id" property="projectPlanRecordId" /> |
| | | <result column="department_user_id" property="departmentUserId" /> |
| | | <result column="manager_user_id" property="managerUserId" /> |
| | | <result column="department_examine" property="departmentExamine" /> |
| | | <result column="department_approval" property="departmentApproval" /> |
| | | <result column="department_approval_reply" property="departmentApprovalReply" /> |
| | | <result column="manage_examine" property="manageExamine" /> |
| | | <result column="manage_approval" property="manageApproval" /> |
| | | <result column="manage_approval_reply" property="manageApprovalReply" /> |
| | | <result column="event_type" property="eventType" /> |
| | | <result column="delay_start_time" property="delayStartTime" /> |
| | | <result column="delay_end_time" property="delayEndTime" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPER.project_plan_record_id, |
| | | TPPER.department_user_id, |
| | | TPPER.manager_user_id, |
| | | TPPER.department_examine, |
| | | TPPER.department_approval, |
| | | TPPER.department_approval_reply, |
| | | TPPER.manage_examine, |
| | | TPPER.manage_approval, |
| | | TPPER.manage_approval_reply, |
| | | TPPER.event_type, |
| | | TPPER.delay_start_time, |
| | | TPPER.delay_end_time, |
| | | TPPER.id |
| | | FROM |
| | | t_project_plan_examine_record TPPER |
| | | WHERE |
| | | TPPER.id = #{id} AND TPPER.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPER.project_plan_record_id, |
| | | TPPER.department_user_id, |
| | | TPPER.manager_user_id, |
| | | TPPER.department_examine, |
| | | TPPER.department_approval, |
| | | TPPER.department_approval_reply, |
| | | TPPER.manage_examine, |
| | | TPPER.manage_approval, |
| | | TPPER.manage_approval_reply, |
| | | TPPER.event_type, |
| | | TPPER.delay_start_time, |
| | | TPPER.delay_end_time, |
| | | TPPER.id |
| | | FROM |
| | | t_project_plan_examine_record TPPER |
| | | WHERE |
| | | TPPER.deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.mapper.ProjectPlanInfoMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectPlanInfoVO"> |
| | | <result column="project_plan_record_id" property="projectPlanRecordId" /> |
| | | <result column="title" property="title" /> |
| | | <result column="progress_status" property="progressStatus" /> |
| | | <result column="start_time" property="startTime" /> |
| | | <result column="end_time" property="endTime" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPI.project_plan_record_id, |
| | | TPPI.title, |
| | | TPPI.progress_status, |
| | | TPPI.start_time, |
| | | TPPI.end_time, |
| | | TPPI.id |
| | | FROM |
| | | t_project_plan_info TPPI |
| | | WHERE |
| | | TPPI.id = #{id} AND TPPI.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPI.project_plan_record_id, |
| | | TPPI.title, |
| | | TPPI.progress_status, |
| | | TPPI.start_time, |
| | | TPPI.end_time, |
| | | TPPI.id |
| | | FROM |
| | | t_project_plan_info TPPI |
| | | WHERE |
| | | TPPI.deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.mapper.ProjectPlanProgressReportMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectPlanProgressReportVO"> |
| | | <result column="project_plan_info_id" property="projectPlanInfoId" /> |
| | | <result column="start_time" property="startTime" /> |
| | | <result column="end_time" property="endTime" /> |
| | | <result column="progress_status" property="progressStatus" /> |
| | | <result column="actual_invest" property="actualInvest" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPPR.project_plan_info_id, |
| | | TPPPR.start_time, |
| | | TPPPR.end_time, |
| | | TPPPR.progress_status, |
| | | TPPPR.actual_invest, |
| | | TPPPR.id |
| | | FROM |
| | | t_project_plan_progress_report TPPPR |
| | | WHERE |
| | | TPPPR.id = #{id} AND TPPPR.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPPR.project_plan_info_id, |
| | | TPPPR.start_time, |
| | | TPPPR.end_time, |
| | | TPPPR.progress_status, |
| | | TPPPR.actual_invest, |
| | | TPPPR.id |
| | | FROM |
| | | t_project_plan_progress_report TPPPR |
| | | WHERE |
| | | TPPPR.deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.mapper.ProjectPlanRecordMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectPlanRecordVO"> |
| | | <result column="project_info_id" property="projectInfoId" /> |
| | | <result column="plan_id" property="planId" /> |
| | | <result column="engineering_info_id" property="engineeringInfoId" /> |
| | | <result column="plan_time" property="planTime" /> |
| | | <result column="plan_time_flag" property="planTimeFlag" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="report_status" property="reportStatus" /> |
| | | <result column="actual_invest" property="actualInvest" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPR.project_info_id, |
| | | TPPR.plan_id, |
| | | TPPR.engineering_info_id, |
| | | TPPR.plan_time, |
| | | TPPR.plan_time_flag, |
| | | TPPR.create_time, |
| | | TPPR.report_status, |
| | | TPPR.actual_invest, |
| | | TPPR.id |
| | | FROM |
| | | t_project_plan_record TPPR |
| | | WHERE |
| | | TPPR.id = #{id} AND TPPR.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPPR.project_info_id, |
| | | TPPR.plan_id, |
| | | TPPR.engineering_info_id, |
| | | TPPR.plan_time, |
| | | TPPR.plan_time_flag, |
| | | TPPR.create_time, |
| | | TPPR.report_status, |
| | | TPPR.actual_invest, |
| | | TPPR.id |
| | | FROM |
| | | t_project_plan_record TPPR |
| | | WHERE |
| | | TPPR.deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.mapper.ProjectUnitRegistrationInfoMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectUnitRegistrationInfoVO"> |
| | | <result column="project_id" property="projectId" /> |
| | | <result column="total_investment" property="totalInvestment" /> |
| | | <result column="project_unit" property="projectUnit" /> |
| | | <result column="project_unit_type" property="projectUnitType" /> |
| | | <result column="registration_type" property="registrationType" /> |
| | | <result column="holding_situation" property="holdingSituation" /> |
| | | <result column="certificate_type" property="certificateType" /> |
| | | <result column="certificate_number" property="certificateNumber" /> |
| | | <result column="registered_address" property="registeredAddress" /> |
| | | <result column="registered_capital" property="registeredCapital" /> |
| | | <result column="legal_representative" property="legalRepresentative" /> |
| | | <result column="fixed_phone" property="fixedPhone" /> |
| | | <result column="legal_person_idcard" property="legalPersonIdcard" /> |
| | | <result column="project_contact_person" property="projectContactPerson" /> |
| | | <result column="phone" property="phone" /> |
| | | <result column="contact_idcard" property="contactIdcard" /> |
| | | <result column="wechat" property="wechat" /> |
| | | <result column="contact_address" property="contactAddress" /> |
| | | <result column="post_code" property="postCode" /> |
| | | <result column="email" property="email" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="gmt_create_time" property="gmtCreateTime" /> |
| | | <result column="gmt_update_time" property="gmtUpdateTime" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPURI.project_id, |
| | | TPURI.total_investment, |
| | | TPURI.project_unit, |
| | | TPURI.project_unit_type, |
| | | TPURI.registration_type, |
| | | TPURI.holding_situation, |
| | | TPURI.certificate_type, |
| | | TPURI.certificate_number, |
| | | TPURI.registered_address, |
| | | TPURI.registered_capital, |
| | | TPURI.legal_representative, |
| | | TPURI.fixed_phone, |
| | | TPURI.legal_person_idcard, |
| | | TPURI.project_contact_person, |
| | | TPURI.phone, |
| | | TPURI.contact_idcard, |
| | | TPURI.wechat, |
| | | TPURI.contact_address, |
| | | TPURI.post_code, |
| | | TPURI.email, |
| | | TPURI.create_by, |
| | | TPURI.update_by, |
| | | TPURI.gmt_create_time, |
| | | TPURI.gmt_update_time, |
| | | TPURI.id |
| | | FROM |
| | | t_project_unit_registration_info TPURI |
| | | WHERE |
| | | TPURI.id = #{id} AND TPURI.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPURI.project_id, |
| | | TPURI.total_investment, |
| | | TPURI.project_unit, |
| | | TPURI.project_unit_type, |
| | | TPURI.registration_type, |
| | | TPURI.holding_situation, |
| | | TPURI.certificate_type, |
| | | TPURI.certificate_number, |
| | | TPURI.registered_address, |
| | | TPURI.registered_capital, |
| | | TPURI.legal_representative, |
| | | TPURI.fixed_phone, |
| | | TPURI.legal_person_idcard, |
| | | TPURI.project_contact_person, |
| | | TPURI.phone, |
| | | TPURI.contact_idcard, |
| | | TPURI.wechat, |
| | | TPURI.contact_address, |
| | | TPURI.post_code, |
| | | TPURI.email, |
| | | TPURI.create_by, |
| | | TPURI.update_by, |
| | | TPURI.gmt_create_time, |
| | | TPURI.gmt_update_time, |
| | | TPURI.id |
| | | FROM |
| | | t_project_unit_registration_info TPURI |
| | | WHERE |
| | | TPURI.deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |