diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/InspectionStationController.java b/bonus-business/src/main/java/com/bonus/digital/controller/InspectionStationController.java new file mode 100644 index 0000000..74ed26f --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/controller/InspectionStationController.java @@ -0,0 +1,102 @@ +package com.bonus.digital.controller; + +import com.bonus.common.core.controller.BaseController; +import com.bonus.common.core.domain.AjaxResult; +import com.bonus.common.core.page.TableDataInfo; +import com.bonus.digital.dao.InspectionStationVo; +import com.bonus.digital.service.InspectionStationService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/12 + */ +@Slf4j +@RestController +@RequestMapping("/inspectionStation") +public class InspectionStationController extends BaseController { + + @Resource + private InspectionStationService inspectionStationService; + + /** + * 获取0:运检站1:项目部 + */ + @PreAuthorize("@ss.hasPermi('inspection:station:list')") + @GetMapping("/getInspectionStationList") + public TableDataInfo getInspectionStationList(InspectionStationVo inspectionStationVo) + { + try { + startPage(); + List list = inspectionStationService.getInspectionStationList(inspectionStationVo); + return getDataTable(list); + }catch (Exception e) { + return getDataTable(null); + } + } + + + /** + * 新增0:运检站1:项目部 + */ + @PreAuthorize("@ss.hasPermi('inspection:station:add')") + @PostMapping("/addInspectionStation") + public AjaxResult addInspectionStation(@RequestBody InspectionStationVo inspectionStationVo) + { + try { + int res = inspectionStationService.addInspectionStation(inspectionStationVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("新增失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除0:运检站1:项目部 + */ + @PreAuthorize("@ss.hasPermi('inspection:station:del')") + @PostMapping("/delInspectionStation") + public AjaxResult delClassification(@RequestBody InspectionStationVo inspectionStationVo) + { + try { + int res = inspectionStationService.delInspectionStation(inspectionStationVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("删除失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 修改0:运检站1:项目部 + */ + @PreAuthorize("@ss.hasPermi('inspection:station:update')") + @PostMapping("/updateInspectionStation") + public AjaxResult updateInspectionStation(@RequestBody InspectionStationVo inspectionStationVo) + { + try { + int res = inspectionStationService.updateInspectionStation(inspectionStationVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("修改失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/MonthlyPlanController.java b/bonus-business/src/main/java/com/bonus/digital/controller/MonthlyPlanController.java new file mode 100644 index 0000000..662b2a8 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/controller/MonthlyPlanController.java @@ -0,0 +1,102 @@ +package com.bonus.digital.controller; + +import com.bonus.common.core.controller.BaseController; +import com.bonus.common.core.domain.AjaxResult; +import com.bonus.common.core.page.TableDataInfo; +import com.bonus.digital.dao.MonthlyPlanVo; +import com.bonus.digital.service.MonthlyPlanService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Slf4j +@RestController +@RequestMapping("/monthlyPlan") +public class MonthlyPlanController extends BaseController { + + @Resource + private MonthlyPlanService monthlyPlanService; + + /** + * 月计划列表 + */ + @PreAuthorize("@ss.hasPermi('monthly:plan:list')") + @GetMapping("/getMonthlyPlanList") + public TableDataInfo getMonthlyPlanList(MonthlyPlanVo monthlyPlanVo) + { + try { + startPage(); + List list = monthlyPlanService.getPlanMajorList(monthlyPlanVo); + return getDataTable(list); + }catch (Exception e) { + return getDataTable(null); + } + } + + /** + * 新增月计划 + */ + @PreAuthorize("@ss.hasPermi('monthly:plan:add')") + @PostMapping("/addMonthlyPlan") + public AjaxResult addMonthlyPlan(MonthlyPlanVo monthlyPlanVo) + { + try { + int res = monthlyPlanService.addMonthlyPlanList(monthlyPlanVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("新增失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除月计划 + */ + @PreAuthorize("@ss.hasPermi('monthly:plan:del')") + @PostMapping("/delMonthlyPlan") + public AjaxResult delMonthlyPlan(MonthlyPlanVo monthlyPlanVo) + { + try { + int res = monthlyPlanService.delMonthlyPlanList(monthlyPlanVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("删除失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 修改月计划 + */ + @PreAuthorize("@ss.hasPermi('monthly:plan:update')") + @PostMapping("/updateMonthlyPlan") + public AjaxResult updateMonthlyPlan(MonthlyPlanVo monthlyPlanVo) + { + try { + int res = monthlyPlanService.updateMonthlyPlan(monthlyPlanVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("修改失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/PersonnelClassificationController.java b/bonus-business/src/main/java/com/bonus/digital/controller/PersonnelClassificationController.java new file mode 100644 index 0000000..23d401d --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/controller/PersonnelClassificationController.java @@ -0,0 +1,100 @@ +package com.bonus.digital.controller; + +import com.bonus.common.core.controller.BaseController; +import com.bonus.common.core.domain.AjaxResult; +import com.bonus.common.core.page.TableDataInfo; +import com.bonus.digital.dao.PersonnelClassificationVo; +import com.bonus.digital.service.PersonnelClassificationService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/12 + */ +@Slf4j +@RestController +@RequestMapping("/personnelClassification") +public class PersonnelClassificationController extends BaseController { + + @Resource + private PersonnelClassificationService personnelClassificationService; + + /** + * 获取0:人员分类1:人员性质2:岗位列表 + */ + @PreAuthorize("@ss.hasPermi('personnel:classification:list')") + @GetMapping("/getClassificationList") + public TableDataInfo getClassificationList(PersonnelClassificationVo personnelClassificationVo) + { + try { + startPage(); + List list = personnelClassificationService.classificationList(personnelClassificationVo); + return getDataTable(list); + }catch (Exception e) { + return getDataTable(null); + } + } + + /** + * 新增0:人员分类1:人员性质2:岗位列表 + */ + @PreAuthorize("@ss.hasPermi('personnel:classification:add')") + @PostMapping("/addClassification") + public AjaxResult addClassification(@RequestBody PersonnelClassificationVo personnelClassificationVo) + { + try { + int res = personnelClassificationService.addClassification(personnelClassificationVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("新增失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除0:人员分类1:人员性质2:岗位列表 + */ + @PreAuthorize("@ss.hasPermi('personnel:classification:del')") + @PostMapping("/delClassification") + public AjaxResult delClassification(@RequestBody PersonnelClassificationVo personnelClassificationVo) + { + try { + int res = personnelClassificationService.delClassification(personnelClassificationVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("删除失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 修改0:人员分类1:人员性质2:岗位列表 + */ + @PreAuthorize("@ss.hasPermi('personnel:classification:update')") + @PostMapping("/updateClassification") + public AjaxResult updateClassification(@RequestBody PersonnelClassificationVo personnelClassificationVo) + { + try { + int res = personnelClassificationService.updateClassification(personnelClassificationVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("修改失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/PersonnelController.java b/bonus-business/src/main/java/com/bonus/digital/controller/PersonnelController.java new file mode 100644 index 0000000..1048ede --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/controller/PersonnelController.java @@ -0,0 +1,102 @@ +package com.bonus.digital.controller; + +import com.bonus.common.core.controller.BaseController; +import com.bonus.common.core.domain.AjaxResult; +import com.bonus.common.core.page.TableDataInfo; +import com.bonus.digital.dao.InspectionStationVo; +import com.bonus.digital.dao.PersonnelClassificationVo; +import com.bonus.digital.dao.PersonnelVo; +import com.bonus.digital.service.PersonnelService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Slf4j +@RestController +@RequestMapping("/personnel") +public class PersonnelController extends BaseController { + + @Resource + private PersonnelService personnelService; + + /** + * 获取人员管理列表 + */ + @PreAuthorize("@ss.hasPermi('tb:personnel:list')") + @GetMapping("/getPersonnelList") + public TableDataInfo getPersonnelList(PersonnelVo personnelVo) + { + try { + startPage(); + List list = personnelService.getPersonnelList(personnelVo); + return getDataTable(list); + }catch (Exception e) { + return getDataTable(null); + } + } + + /** + * 新增人员 + */ + @PreAuthorize("@ss.hasPermi('tb:personnel:add')") + @PostMapping("/addPersonnel") + public AjaxResult addPersonnel(@RequestBody PersonnelVo personnelVo) + { + try { + int res = personnelService.addPersonnel(personnelVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("新增失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除人员 + */ + @PreAuthorize("@ss.hasPermi('tb:personnel:del')") + @PostMapping("/delPersonnel") + public AjaxResult delPersonnel(@RequestBody PersonnelVo personnelVo) + { + try { + int res = personnelService.delPersonnel(personnelVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("删除失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 修改人员 + */ + @PreAuthorize("@ss.hasPermi('tb:personnel:update')") + @PostMapping("/updatePersonnel") + public AjaxResult updatePersonnel(@RequestBody PersonnelVo personnelVo) + { + try { + int res = personnelService.updatePersonnel(personnelVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("修改失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/PlanMajorController.java b/bonus-business/src/main/java/com/bonus/digital/controller/PlanMajorController.java new file mode 100644 index 0000000..e68e06d --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/controller/PlanMajorController.java @@ -0,0 +1,102 @@ +package com.bonus.digital.controller; + +import com.bonus.common.core.controller.BaseController; +import com.bonus.common.core.domain.AjaxResult; +import com.bonus.common.core.page.TableDataInfo; +import com.bonus.digital.dao.PersonnelVo; +import com.bonus.digital.dao.PlanMajorVo; +import com.bonus.digital.service.PlanMajorService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Slf4j +@RestController +@RequestMapping("/planMajor") +public class PlanMajorController extends BaseController { + + @Resource + private PlanMajorService planMajorService; + + + /** + * 列表类别0:计划专业1:业务分类2:计划类别 + */ + @PreAuthorize("@ss.hasPermi('plan:major:list')") + @GetMapping("/getPlanMajorList") + public TableDataInfo getPlanMajorList(PlanMajorVo planMajorVo) + { + try { + startPage(); + List list = planMajorService.getPlanMajorList(planMajorVo); + return getDataTable(list); + }catch (Exception e) { + return getDataTable(null); + } + } + + /** + * 新增类别0:计划专业1:业务分类2:计划类别 + */ + @PreAuthorize("@ss.hasPermi('plan:major:add')") + @PostMapping("/addPlanMajor") + public AjaxResult addPlanMajor(@RequestBody PlanMajorVo planMajorVo) + { + try { + int res = planMajorService.addPlanMajor(planMajorVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("新增失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除类别0:计划专业1:业务分类2:计划类别 + */ + @PreAuthorize("@ss.hasPermi('plan:major:del')") + @PostMapping("/delPlanMajor") + public AjaxResult delPlanMajor(@RequestBody PlanMajorVo planMajorVo) + { + try { + int res = planMajorService.delPlanMajor(planMajorVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("删除失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 修改类别0:计划专业1:业务分类2:计划类别 + */ + @PreAuthorize("@ss.hasPermi('plan:major:update')") + @PostMapping("/updatePlanMajor") + public AjaxResult updatePlanMajor(@RequestBody PlanMajorVo planMajorVo) + { + try { + int res = planMajorService.updatePlanMajor(planMajorVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("修改失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/PlanManagementController.java b/bonus-business/src/main/java/com/bonus/digital/controller/PlanManagementController.java new file mode 100644 index 0000000..e43e106 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/controller/PlanManagementController.java @@ -0,0 +1,121 @@ +package com.bonus.digital.controller; + +import com.bonus.common.core.controller.BaseController; +import com.bonus.common.core.domain.AjaxResult; +import com.bonus.common.core.domain.entity.SysUser; +import com.bonus.common.core.page.TableDataInfo; +import com.bonus.common.utils.poi.ExcelUtil; +import com.bonus.digital.dao.PlanManagementVo; +import com.bonus.digital.dao.WorkloadCategoryVo; +import com.bonus.digital.service.PlanManagementService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Slf4j +@RestController +@RequestMapping("/planManagement") +public class PlanManagementController extends BaseController { + + @Resource + private PlanManagementService planManagementService; + + /** + * 计划管理表列表 + */ + @PreAuthorize("@ss.hasPermi('plan:management:list')") + @GetMapping("/getPlanManagementList") + public TableDataInfo getPlanManagementList(PlanManagementVo planManagementVo) + { + try { + startPage(); + List list = planManagementService.getPlanManagementList(planManagementVo); + return getDataTable(list); + }catch (Exception e) { + return getDataTable(null); + } + } + + /** + * 新增计划管理表 + */ + @PreAuthorize("@ss.hasPermi('plan:management:add')") + @PostMapping("/addPlanManagement") + public AjaxResult addPlanManagement(@RequestBody PlanManagementVo planManagementVo) + { + try { + int res = planManagementService.addPlanManagement(planManagementVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("新增失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除计划管理表 + */ + @PreAuthorize("@ss.hasPermi('plan:management:del')") + @PostMapping("/delPlanManagement") + public AjaxResult delPlanManagement(@RequestBody PlanManagementVo planManagementVo) + { + try { + int res = planManagementService.delPlanManagement(planManagementVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("删除失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 修改计划管理 + */ + @PreAuthorize("@ss.hasPermi('plan:management:update')") + @PostMapping("/updatePlanManagement") + public AjaxResult updatePlanManagement(@RequestBody PlanManagementVo planManagementVo) + { + try { + int res = planManagementService.updatePlanManagement(planManagementVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("修改失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 导入计划管理 + */ + @PreAuthorize("@ss.hasPermi('plan:management:import')") + @PostMapping("/importPlanManagement") + public AjaxResult importPlanManagement(MultipartFile file) + { + try { + ExcelUtil util = new ExcelUtil(PlanManagementVo.class); + List planManagementList = util.importExcel(file.getInputStream()); + String message = planManagementService.importPlanManagement(planManagementList); + return success(message); + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/WorkloadCategoryController.java b/bonus-business/src/main/java/com/bonus/digital/controller/WorkloadCategoryController.java new file mode 100644 index 0000000..9dc3e64 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/controller/WorkloadCategoryController.java @@ -0,0 +1,100 @@ +package com.bonus.digital.controller; + +import com.bonus.common.core.controller.BaseController; +import com.bonus.common.core.domain.AjaxResult; +import com.bonus.common.core.page.TableDataInfo; +import com.bonus.digital.dao.InspectionStationVo; +import com.bonus.digital.dao.WorkloadCategoryVo; +import com.bonus.digital.service.WorkloadCategoryService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Slf4j +@RestController +@RequestMapping("/workloadCategory") +public class WorkloadCategoryController extends BaseController { + + @Resource + private WorkloadCategoryService workloadCategoryService; + + /** + * 工作量类别列表 + */ + @PreAuthorize("@ss.hasPermi('workload:category:list')") + @GetMapping("/getWorkloadCategoryList") + public TableDataInfo getWorkloadCategoryList(WorkloadCategoryVo workloadCategoryVo) + { + try { + startPage(); + List list = workloadCategoryService.getWorkloadCategoryList(workloadCategoryVo); + return getDataTable(list); + }catch (Exception e) { + return getDataTable(null); + } + } + + /** + * 新增工作量类别 + */ + @PreAuthorize("@ss.hasPermi('workload:category:add')") + @PostMapping("/addWorkloadCategory") + public AjaxResult addWorkloadCategory(@RequestBody WorkloadCategoryVo workloadCategoryVo) + { + try { + int res = workloadCategoryService.addWorkloadCategory(workloadCategoryVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("新增失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除工作量类别 + */ + @PreAuthorize("@ss.hasPermi('workload:category:del')") + @PostMapping("/delWorkloadCategory") + public AjaxResult delWorkloadCategory(@RequestBody WorkloadCategoryVo workloadCategoryVo) + { + try { + int res = workloadCategoryService.delWorkloadCategory(workloadCategoryVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("删除失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } + + /** + * 删除工作量类别 + */ + @PreAuthorize("@ss.hasPermi('workload:category:update')") + @PostMapping("/updateWorkloadCategory") + public AjaxResult updateWorkloadCategory(@RequestBody WorkloadCategoryVo workloadCategoryVo) + { + try { + int res = workloadCategoryService.updateWorkloadCategory(workloadCategoryVo); + if (res > 0) { + return AjaxResult.success(); + }else { + return AjaxResult.error("修改失败"); + } + }catch (Exception e) { + return AjaxResult.error("系统异常,请联系管理员"); + } + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/InspectionStationVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/InspectionStationVo.java new file mode 100644 index 0000000..104f82d --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/InspectionStationVo.java @@ -0,0 +1,60 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +import java.util.Date; + +/** + * @author 马三炮 + * @date 2025/12/12 + */ +@Data +public class InspectionStationVo { + + /** + * 运检站id + */ + private int inspectionStationId; + + /** + * 单位名称 + */ + private String inspectionStationName; + + /** + * 备注 + */ + private String remark; + + /** + * 是否有效1有效0无效 + */ + private String isActive; + + /** + * 创建人 + */ + private String createUser; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改人 + */ + private String updateUser; + + /** + * 修改时间 + */ + private Date updateTime; + + + /** + * 类别0:运检站1:项目部 + */ + private String category; + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/MonthlyPlanVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/MonthlyPlanVo.java new file mode 100644 index 0000000..ce24fc9 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/MonthlyPlanVo.java @@ -0,0 +1,140 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Data +public class MonthlyPlanVo { + + /** + * 月计划填报id + */ + private int monthlyPlanId; + + /** + * 计划月份 + */ + private String monthlyPlan; + + /** + * 运检站id + */ + private int inspectionStationId; + + /** + * 运检站名称 + */ + private String inspectionStationName; + + /** + * 计划专业id + */ + private int planMajorId; + + /** + * 业务类型id + */ + private int businessTypeId; + + /** + * 项目名称 + */ + private int projectName; + + /** + * 作业内容 + */ + private String workContent; + + /** + * 计划类别id + */ + private int planCategoryId; + + /** + * 塔基数 + */ + private int towerBaseNumber; + + /** + * 计划开始时间 + */ + private String plannedStartTime; + + /** + * 计划结束时间 + */ + private String plannedEndTime; + + /** + * 计划投入管理人员 + */ + private String planPersonnel; + + /** + * 计划投入管理车辆数量 + */ + private int planCarNum; + + /** + * 计划投入熟练工人员数量 + */ + private int planSkilledWorkerNum; + + /** + * 计划投入辅助工人员数量 + */ + private int planAuxiliaryWorkerNum; + + /** + * 计划投入分包车辆数量 + */ + private int planSubCarNum; + + /** + * 实际工作天数 + */ + private int actualWorkingDay; + + /** + * 创建人 + */ + private String createUser; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改人 + */ + private String updateUser; + + /** + * 修改时间 + */ + private Date updateTime; + + /** + * 人员安排表 + */ + private List personnelArrangementList; + + /** + * 管理人员列表 + */ + private List personneltList; + + /** + * 工作量列表 + */ + private List workloadList; + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelArrangementVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelArrangementVo.java new file mode 100644 index 0000000..b34c903 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelArrangementVo.java @@ -0,0 +1,31 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Data +public class PersonnelArrangementVo { + + /** + * 人员安排id + */ + private int personnelArrangementId; + + /** + * 月计划填报id + */ + private int monthlyPlanId; + + /** + * 日期 + */ + private String day; + + /** + * 人员列表 + */ + private String personnelNames; +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelClassificationVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelClassificationVo.java new file mode 100644 index 0000000..136bced --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelClassificationVo.java @@ -0,0 +1,58 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +import java.util.Date; + +/** + * @author 马三炮 + * @date 2025/12/12 + */ +@Data +public class PersonnelClassificationVo { + + /** + * 人员分类id + */ + private int personnelClassificationId; + + /** + * 人员分类名称 + */ + private String personnelClassificationName; + + /** + * 备注 + */ + private String remark; + + /** + * 是否有效1有效0无效 + */ + private String isActive; + + /** + * 创建人 + */ + private String createUser; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改人 + */ + private String updateUser; + + /** + * 修改时间 + */ + private Date updateTime; + + /** + * 类别0:人员分类1:人员性质2:岗位 + */ + private String category; +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelVo.java new file mode 100644 index 0000000..cafe108 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/PersonnelVo.java @@ -0,0 +1,112 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Data +public class PersonnelVo { + + /** + * 人员id + */ + private int id; + + /** + * 人员所属 + */ + private int inspectionStationId; + + + /** + * 单位名称 + */ + private String inspectionStationName; + + + /** + * 姓名 + */ + private String name; + + /** + * 性别 + */ + private String sex; + + + /** + * 电话 + */ + private String phone; + + /** + * 岗位 + */ + private int positionId; + + /** + * 岗位 + */ + private String positionName; + + /** + * 人员性质 + */ + private int personnelNatureId; + + /** + * 人员性质 + */ + private String personnelNatureName; + + /** + * 人员分类 + */ + private int personnelClassificationId; + + /** + * 人员分类 + */ + private String personnelClassificationName; + + /** + * 长期借调1是0否 + */ + private String longTermSecondment; + + /** + * 是否有效1有效0无效 + */ + private String isActive; + + /** + * 创建人 + */ + private String createUser; + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改人 + */ + private String updateUser; + + /** + * 修改时间 + */ + private Date updateTime; + + /** + * idList + */ + private List idList; + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/PlanMajorVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/PlanMajorVo.java new file mode 100644 index 0000000..956bc18 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/PlanMajorVo.java @@ -0,0 +1,58 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +import java.util.Date; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Data +public class PlanMajorVo { + + /** + * 计划专业id + */ + private int planMajorId; + + /** + * 计划专业名称 + */ + private String planMajorName; + + /** + * 备注 + */ + private String remark; + + /** + * 是否有效1有效0无效 + */ + private String isActive; + + /** + * 创建人 + */ + private String createUser; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改人 + */ + private String updateUser; + + /** + * 修改时间 + */ + private Date updateTime; + + /** + * 类别0:计划专业1:业务分类2:计划类别 + */ + private String category; +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/PlanManagementVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/PlanManagementVo.java new file mode 100644 index 0000000..13d31c8 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/PlanManagementVo.java @@ -0,0 +1,89 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +import java.util.Date; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Data +public class PlanManagementVo { + + /** + * 计划管理id + */ + private int planManagementId; + + /** + * 计划管理月份 + */ + private String planManagementMonth; + + /** + * 项目名称 + */ + private String projectName; + + /** + * 作业内容 + */ + private String workContent; + + /** + * 实施部门 + */ + private int inspectionStationId; + + /** + * 实施部门 + */ + private String inspectionStationName; + + /** + * 计划开始时间 + */ + private String stareDate; + + /** + * 计划结束时间 + */ + private String endDate; + + /** + * 风险等级 + */ + private String riskLevel; + + /** + * 备注 + */ + private String remark; + + /** + * 是否有效1有效0无效 + */ + private String isActive; + + /** + * 创建人 + */ + private String createUser; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改人 + */ + private String updateUser; + + /** + * 修改时间 + */ + private Date updateTime; + +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/WorkloadCategoryVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/WorkloadCategoryVo.java new file mode 100644 index 0000000..e50c405 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/WorkloadCategoryVo.java @@ -0,0 +1,58 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +import java.util.Date; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Data +public class WorkloadCategoryVo { + + /** + * 工作量类别id + */ + private int workloadCategoryId; + + /** + * 工作量类别名称 + */ + private String workloadCategoryName; + + /** + * 备注 + */ + private String remark; + + /** + * 是否有效1有效0无效 + */ + private String isActive; + + /** + * 创建人 + */ + private String createUser; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 修改人 + */ + private String updateUser; + + /** + * 修改时间 + */ + private Date updateTime; + + /** + * 单价(元) + */ + private int unitPrice; +} diff --git a/bonus-business/src/main/java/com/bonus/digital/dao/WorkloadVo.java b/bonus-business/src/main/java/com/bonus/digital/dao/WorkloadVo.java new file mode 100644 index 0000000..f3eb168 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/dao/WorkloadVo.java @@ -0,0 +1,46 @@ +package com.bonus.digital.dao; + +import lombok.Data; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Data +public class WorkloadVo { + + /** + * 工作量id + */ + private int workloadId; + + /** + * 计划填报id + */ + private int planId; + + /** + * 工作量类别id + */ + private int workloadCategoryId; + + /** + * 工作量类别名称 + */ + private String workloadCategoryName; + + /** + * 单价(元) + */ + private int unitPrice; + + /** + *工作量 + */ + private int workloadNum; + + /** + * 数据来源:0月计划:1日计划 + */ + private String dataSource; +} diff --git a/bonus-business/src/main/java/com/bonus/digital/mapper/InspectionStationMapper.java b/bonus-business/src/main/java/com/bonus/digital/mapper/InspectionStationMapper.java new file mode 100644 index 0000000..75d59bc --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/InspectionStationMapper.java @@ -0,0 +1,29 @@ +package com.bonus.digital.mapper; + +import com.bonus.digital.dao.InspectionStationVo; + +import java.util.List; + +public interface InspectionStationMapper { + /** + * 获取0:运检站1:项目部 + */ + List getInspectionStationList(InspectionStationVo inspectionStationVo); + + /** + * 新增0:运检站1:项目部 + */ + int addInspectionStation(InspectionStationVo inspectionStationVo); + + /** + * 删除0:运检站1:项目部 + */ + int delInspectionStation(InspectionStationVo inspectionStationVo); + + /** + * 修改0:运检站1:项目部 + */ + int updateInspectionStation(InspectionStationVo inspectionStationVo); + + InspectionStationVo getInspectionStationDetail(InspectionStationVo inspectionStationVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/mapper/MonthlyPlanMapper.java b/bonus-business/src/main/java/com/bonus/digital/mapper/MonthlyPlanMapper.java new file mode 100644 index 0000000..bf6a4ff --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/MonthlyPlanMapper.java @@ -0,0 +1,54 @@ +package com.bonus.digital.mapper; + +import com.bonus.digital.dao.MonthlyPlanVo; +import com.bonus.digital.dao.PersonnelArrangementVo; +import com.bonus.digital.dao.WorkloadVo; + +import java.util.List; + +public interface MonthlyPlanMapper { + /** + * 月计划列表 + */ + List getPlanMajorList(MonthlyPlanVo monthlyPlanVo); + + /** + * 人员列表 + */ + List getPersonnelArrangementList(MonthlyPlanVo monthlyPlanVo2); + + /** + * 新增月计划 + */ + int addMonthlyPlanList(MonthlyPlanVo monthlyPlanVo); + + /** + * 新增人员安排 + */ + void addPersonnelArrangement(PersonnelArrangementVo p); + + /** + * 新增工作量信息 + */ + void addWorkload(WorkloadVo w); + + /** + * 删除月计划 + */ + int delMonthlyPlanList(MonthlyPlanVo monthlyPlanVo); + + /** + * 删除人员安排 + */ + void delPersonnelArrangement(MonthlyPlanVo monthlyPlanVo); + + /** + * 删除工作量信息 + */ + void delWorkload(MonthlyPlanVo monthlyPlanVo); + + /** + * 修改月计划 + */ + int updateMonthlyPlan(MonthlyPlanVo monthlyPlanVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelClassificationMapper.java b/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelClassificationMapper.java new file mode 100644 index 0000000..fd89a0a --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelClassificationMapper.java @@ -0,0 +1,28 @@ +package com.bonus.digital.mapper; + +import com.bonus.digital.dao.PersonnelClassificationVo; + +import java.util.List; + +public interface PersonnelClassificationMapper { + + /** + * 获取0:人员分类1:人员性质2:岗位列表 + */ + List classificationList(PersonnelClassificationVo personnelClassificationVo); + + /** + * 新增0:人员分类1:人员性质2:岗位列表 + */ + int addClassification(PersonnelClassificationVo personnelClassificationVo); + + /** + * 删除0:人员分类1:人员性质2:岗位列表 + */ + int delClassification(PersonnelClassificationVo personnelClassificationVo); + + /** + * 修改0:人员分类1:人员性质2:岗位列表 + */ + int updateClassification(PersonnelClassificationVo personnelClassificationVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelMapper.java b/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelMapper.java new file mode 100644 index 0000000..c37c1fc --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelMapper.java @@ -0,0 +1,28 @@ +package com.bonus.digital.mapper; + +import com.bonus.digital.dao.PersonnelVo; + +import java.util.List; + +public interface PersonnelMapper { + + /** + * 获取人员管理列表 + */ + List getPersonnelList(PersonnelVo personnelVo); + + /** + * 新增人员 + */ + int addPersonnel(PersonnelVo personnelVo); + + /** + * 删除人员 + */ + int delPersonnel(PersonnelVo personnelVo); + + /** + * 修改人员 + */ + int updatePersonnel(PersonnelVo personnelVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/mapper/PlanMajorMapper.java b/bonus-business/src/main/java/com/bonus/digital/mapper/PlanMajorMapper.java new file mode 100644 index 0000000..bf5b38f --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/PlanMajorMapper.java @@ -0,0 +1,29 @@ +package com.bonus.digital.mapper; + +import com.bonus.digital.dao.PersonnelVo; +import com.bonus.digital.dao.PlanMajorVo; + +import java.util.List; + +public interface PlanMajorMapper { + + /** + * 列表类别0:计划专业1:业务分类2:计划类别 + */ + List getPlanMajorList(PlanMajorVo planMajorVo); + + /** + * 新增类别0:计划专业1:业务分类2:计划类别 + */ + int addPlanMajor(PlanMajorVo planMajorVo); + + /** + * 删除类别0:计划专业1:业务分类2:计划类别 + */ + int delPlanMajor(PlanMajorVo planMajorVo); + + /** + * 修改类别0:计划专业1:业务分类2:计划类别 + */ + int updatePlanMajor(PlanMajorVo planMajorVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/mapper/PlanManagementMapper.java b/bonus-business/src/main/java/com/bonus/digital/mapper/PlanManagementMapper.java new file mode 100644 index 0000000..f986cbd --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/PlanManagementMapper.java @@ -0,0 +1,27 @@ +package com.bonus.digital.mapper; + +import com.bonus.digital.dao.PlanManagementVo; + +import java.util.List; + +public interface PlanManagementMapper { + /** + * 计划管理表列表 + */ + List getPlanManagementList(PlanManagementVo planManagementVo); + + /** + * 新增计划管理表 + */ + int addPlanManagement(PlanManagementVo planManagementVo); + + /** + * 删除计划管理表 + */ + int delPlanManagement(PlanManagementVo planManagementVo); + + /** + * 修改计划管理 + */ + int updatePlanManagement(PlanManagementVo planManagementVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/mapper/WorkloadCategoryMapper.java b/bonus-business/src/main/java/com/bonus/digital/mapper/WorkloadCategoryMapper.java new file mode 100644 index 0000000..9263af0 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/WorkloadCategoryMapper.java @@ -0,0 +1,15 @@ +package com.bonus.digital.mapper; + +import com.bonus.digital.dao.WorkloadCategoryVo; + +import java.util.List; + +public interface WorkloadCategoryMapper { + List getWorkloadCategoryList(WorkloadCategoryVo workloadCategoryVo); + + int addWorkloadCategory(WorkloadCategoryVo workloadCategoryVo); + + int delWorkloadCategory(WorkloadCategoryVo workloadCategoryVo); + + int updateWorkloadCategory(WorkloadCategoryVo workloadCategoryVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/InspectionStationService.java b/bonus-business/src/main/java/com/bonus/digital/service/InspectionStationService.java new file mode 100644 index 0000000..bf63a8a --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/InspectionStationService.java @@ -0,0 +1,27 @@ +package com.bonus.digital.service; + +import com.bonus.digital.dao.InspectionStationVo; + +import java.util.List; + +public interface InspectionStationService { + /** + * 获取0:运检站1:项目部 + */ + List getInspectionStationList(InspectionStationVo inspectionStationVo); + + /** + * 新增0:运检站1:项目部 + */ + int addInspectionStation(InspectionStationVo inspectionStationVo); + + /** + * 删除0:运检站1:项目部 + */ + int delInspectionStation(InspectionStationVo inspectionStationVo); + + /** + * 修改0:运检站1:项目部 + */ + int updateInspectionStation(InspectionStationVo inspectionStationVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/MonthlyPlanService.java b/bonus-business/src/main/java/com/bonus/digital/service/MonthlyPlanService.java new file mode 100644 index 0000000..26fc88b --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/MonthlyPlanService.java @@ -0,0 +1,27 @@ +package com.bonus.digital.service; + +import com.bonus.digital.dao.MonthlyPlanVo; + +import java.util.List; + +public interface MonthlyPlanService { + /** + * 月计划列表 + */ + List getPlanMajorList(MonthlyPlanVo monthlyPlanVo); + + /** + * 新增月计划 + */ + int addMonthlyPlanList(MonthlyPlanVo monthlyPlanVo); + + /** + * 删除月计划 + */ + int delMonthlyPlanList(MonthlyPlanVo monthlyPlanVo); + + /** + * 修改月计划 + */ + int updateMonthlyPlan(MonthlyPlanVo monthlyPlanVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/PersonnelClassificationService.java b/bonus-business/src/main/java/com/bonus/digital/service/PersonnelClassificationService.java new file mode 100644 index 0000000..cc8d36d --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/PersonnelClassificationService.java @@ -0,0 +1,29 @@ +package com.bonus.digital.service; + + +import com.bonus.digital.dao.PersonnelClassificationVo; + +import java.util.List; + +public interface PersonnelClassificationService { + + /** + * 获取0:人员分类1:人员性质2:岗位列表 + */ + List classificationList(PersonnelClassificationVo personnelClassificationVo); + + /** + * 新增0:人员分类1:人员性质2:岗位列表 + */ + int addClassification(PersonnelClassificationVo personnelClassificationVo); + + /** + * 删除0:人员分类1:人员性质2:岗位列表 + */ + int delClassification(PersonnelClassificationVo personnelClassificationVo); + + /** + * 修改0:人员分类1:人员性质2:岗位列表 + */ + int updateClassification(PersonnelClassificationVo personnelClassificationVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/PersonnelService.java b/bonus-business/src/main/java/com/bonus/digital/service/PersonnelService.java new file mode 100644 index 0000000..b76179c --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/PersonnelService.java @@ -0,0 +1,29 @@ +package com.bonus.digital.service; + +import com.bonus.digital.dao.PersonnelVo; + +import java.util.List; + +public interface PersonnelService { + + + /** + * 获取人员管理列表 + */ + List getPersonnelList(PersonnelVo personnelVo); + + /** + * 新增人员 + */ + int addPersonnel(PersonnelVo personnelVo); + + /** + * 删除人员 + */ + int delPersonnel(PersonnelVo personnelVo); + + /** + * 修改人员 + */ + int updatePersonnel(PersonnelVo personnelVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/PlanMajorService.java b/bonus-business/src/main/java/com/bonus/digital/service/PlanMajorService.java new file mode 100644 index 0000000..8fba895 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/PlanMajorService.java @@ -0,0 +1,30 @@ +package com.bonus.digital.service; + +import com.bonus.digital.dao.PersonnelVo; +import com.bonus.digital.dao.PlanMajorVo; + +import java.util.List; + +public interface PlanMajorService { + + + /** + * 列表类别0:计划专业1:业务分类2:计划类别 + */ + List getPlanMajorList(PlanMajorVo planMajorVo); + + /** + * 新增类别0:计划专业1:业务分类2:计划类别 + */ + int addPlanMajor(PlanMajorVo planMajorVo); + + /** + * 删除类别0:计划专业1:业务分类2:计划类别 + */ + int delPlanMajor(PlanMajorVo planMajorVo); + + /** + * 修改类别0:计划专业1:业务分类2:计划类别 + */ + int updatePlanMajor(PlanMajorVo planMajorVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/PlanManagementService.java b/bonus-business/src/main/java/com/bonus/digital/service/PlanManagementService.java new file mode 100644 index 0000000..e3c883a --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/PlanManagementService.java @@ -0,0 +1,32 @@ +package com.bonus.digital.service; + +import com.bonus.digital.dao.PlanManagementVo; + +import java.util.List; + +public interface PlanManagementService { + /** + * 计划管理表列表 + */ + List getPlanManagementList(PlanManagementVo planManagementVo); + + /** + * 新增计划管理表 + */ + int addPlanManagement(PlanManagementVo planManagementVo); + + /** + * 删除计划管理表 + */ + int delPlanManagement(PlanManagementVo planManagementVo); + + /** + * 修改计划管理 + */ + int updatePlanManagement(PlanManagementVo planManagementVo); + + /** + * 导入计划管理 + */ + String importPlanManagement(List planManagementList); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/WorkloadCategoryService.java b/bonus-business/src/main/java/com/bonus/digital/service/WorkloadCategoryService.java new file mode 100644 index 0000000..bf86905 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/WorkloadCategoryService.java @@ -0,0 +1,15 @@ +package com.bonus.digital.service; + +import com.bonus.digital.dao.WorkloadCategoryVo; + +import java.util.List; + +public interface WorkloadCategoryService { + List getWorkloadCategoryList(WorkloadCategoryVo workloadCategoryVo); + + int addWorkloadCategory(WorkloadCategoryVo workloadCategoryVo); + + int delWorkloadCategory(WorkloadCategoryVo workloadCategoryVo); + + int updateWorkloadCategory(WorkloadCategoryVo workloadCategoryVo); +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/impl/InspectionStationServiceImpl.java b/bonus-business/src/main/java/com/bonus/digital/service/impl/InspectionStationServiceImpl.java new file mode 100644 index 0000000..0ae49a9 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/impl/InspectionStationServiceImpl.java @@ -0,0 +1,64 @@ +package com.bonus.digital.service.impl; + +import com.bonus.common.utils.SecurityUtils; +import com.bonus.digital.dao.InspectionStationVo; +import com.bonus.digital.mapper.InspectionStationMapper; +import com.bonus.digital.service.InspectionStationService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.security.Security; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/12 + */ +@Service +@Slf4j +public class InspectionStationServiceImpl implements InspectionStationService { + + @Resource + private InspectionStationMapper inspectionStationMapper; + + /** + * 获取0:运检站1:项目部 + */ + @Override + public List getInspectionStationList(InspectionStationVo inspectionStationVo) { + return inspectionStationMapper.getInspectionStationList(inspectionStationVo); + } + + /** + * 新增0:运检站1:项目部 + */ + @Override + public int addInspectionStation(InspectionStationVo inspectionStationVo) { + Long userId = SecurityUtils.getUserId(); + inspectionStationVo.setCreateUser(userId.toString()); + inspectionStationVo.setCreateTime(new Date()); + return inspectionStationMapper.addInspectionStation(inspectionStationVo); + } + + /** + * 删除0:运检站1:项目部 + */ + @Override + public int delInspectionStation(InspectionStationVo inspectionStationVo) { + return inspectionStationMapper.delInspectionStation(inspectionStationVo); + } + + /** + * 修改0:运检站1:项目部 + */ + @Override + public int updateInspectionStation(InspectionStationVo inspectionStationVo) { + Long userId = SecurityUtils.getUserId(); + inspectionStationVo.setUpdateUser(userId.toString()); + inspectionStationVo.setUpdateTime(new Date()); + return inspectionStationMapper.updateInspectionStation(inspectionStationVo); + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/impl/MonthlyPlanServiceImpl.java b/bonus-business/src/main/java/com/bonus/digital/service/impl/MonthlyPlanServiceImpl.java new file mode 100644 index 0000000..d515b90 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/impl/MonthlyPlanServiceImpl.java @@ -0,0 +1,120 @@ +package com.bonus.digital.service.impl; + +import com.bonus.common.utils.SecurityUtils; +import com.bonus.digital.dao.MonthlyPlanVo; +import com.bonus.digital.dao.PersonnelArrangementVo; +import com.bonus.digital.dao.PersonnelVo; +import com.bonus.digital.dao.WorkloadVo; +import com.bonus.digital.mapper.MonthlyPlanMapper; +import com.bonus.digital.mapper.PersonnelMapper; +import com.bonus.digital.service.MonthlyPlanService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.Arrays; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Service +@Slf4j +public class MonthlyPlanServiceImpl implements MonthlyPlanService { + + + @Resource + private MonthlyPlanMapper monthlyPlanMapper; + + @Resource + private PersonnelMapper personnelMapper; + + /** + * 月计划列表 + */ + @Override + public List getPlanMajorList(MonthlyPlanVo monthlyPlanVo) { + List monthlyPlanVoList = monthlyPlanMapper.getPlanMajorList(monthlyPlanVo); + for (MonthlyPlanVo monthlyPlanVo2 : monthlyPlanVoList) { + //获取每个月计划投入的管理人员 + List plannedIdList = Arrays.asList(monthlyPlanVo2.getPlanPersonnel().split(",")); + PersonnelVo personnelVo = new PersonnelVo(); + personnelVo.setIdList(plannedIdList); + List plannedList = personnelMapper.getPersonnelList(personnelVo); + monthlyPlanVo2.setPersonneltList(plannedList); + //获取人员安排信息 + List personnelArrangementVoList = monthlyPlanMapper.getPersonnelArrangementList(monthlyPlanVo2); + monthlyPlanVo2.setPersonnelArrangementList(personnelArrangementVoList); + } + return Collections.emptyList(); + } + + /** + * 新增月计划 + */ + @Override + @Transactional + public int addMonthlyPlanList(MonthlyPlanVo monthlyPlanVo) { + Long userId = SecurityUtils.getUserId(); + monthlyPlanVo.setCreateUser(userId.toString()); + monthlyPlanVo.setCreateTime(new Date()); + int res = monthlyPlanMapper.addMonthlyPlanList(monthlyPlanVo); + //保存人员安排信息 + List personnelArrangementList = monthlyPlanVo.getPersonnelArrangementList(); + for (PersonnelArrangementVo p : personnelArrangementList) { + p.setMonthlyPlanId(monthlyPlanVo.getMonthlyPlanId()); + monthlyPlanMapper.addPersonnelArrangement(p); + } + //保存工作量信息 + List workloadVoList = monthlyPlanVo.getWorkloadList(); + for (WorkloadVo w : workloadVoList) { + w.setPlanId(monthlyPlanVo.getMonthlyPlanId()); + w.setDataSource("0"); + monthlyPlanMapper.addWorkload(w); + } + return res; + } + + /** + * 删除月计划 + */ + @Override + @Transactional + public int delMonthlyPlanList(MonthlyPlanVo monthlyPlanVo) { + monthlyPlanMapper.delPersonnelArrangement(monthlyPlanVo); + monthlyPlanMapper.delWorkload(monthlyPlanVo); + return monthlyPlanMapper.delMonthlyPlanList(monthlyPlanVo); + } + + /** + * 修改月计划 + */ + @Override + @Transactional + public int updateMonthlyPlan(MonthlyPlanVo monthlyPlanVo) { + Long userId = SecurityUtils.getUserId(); + monthlyPlanVo.setUpdateUser(userId.toString()); + monthlyPlanVo.setUpdateTime(new Date()); + int res = monthlyPlanMapper.updateMonthlyPlan(monthlyPlanVo); + monthlyPlanMapper.delPersonnelArrangement(monthlyPlanVo); + monthlyPlanMapper.delWorkload(monthlyPlanVo); + //保存人员安排信息 + List personnelArrangementList = monthlyPlanVo.getPersonnelArrangementList(); + for (PersonnelArrangementVo p : personnelArrangementList) { + p.setMonthlyPlanId(monthlyPlanVo.getMonthlyPlanId()); + monthlyPlanMapper.addPersonnelArrangement(p); + } + //保存工作量信息 + List workloadVoList = monthlyPlanVo.getWorkloadList(); + for (WorkloadVo w : workloadVoList) { + w.setPlanId(monthlyPlanVo.getMonthlyPlanId()); + w.setDataSource("0"); + monthlyPlanMapper.addWorkload(w); + } + return res; + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/impl/PersonnelClassificationServiceImpl.java b/bonus-business/src/main/java/com/bonus/digital/service/impl/PersonnelClassificationServiceImpl.java new file mode 100644 index 0000000..a64fd7f --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/impl/PersonnelClassificationServiceImpl.java @@ -0,0 +1,65 @@ +package com.bonus.digital.service.impl; + +import com.bonus.common.utils.SecurityUtils; +import com.bonus.digital.dao.PersonnelClassificationVo; +import com.bonus.digital.mapper.PersonnelClassificationMapper; +import com.bonus.digital.service.PersonnelClassificationService; +import lombok.extern.log4j.Log4j; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/12 + */ +@Service +@Slf4j +public class PersonnelClassificationServiceImpl implements PersonnelClassificationService { + + @Resource + private PersonnelClassificationMapper personnelClassificationMapper; + + /** + * 获取0:人员分类1:人员性质2:岗位列表 + */ + @Override + public List classificationList(PersonnelClassificationVo personnelClassificationVo) { + + return personnelClassificationMapper.classificationList(personnelClassificationVo); + } + + /** + * 新增0:人员分类1:人员性质2:岗位列表 + */ + @Override + public int addClassification(PersonnelClassificationVo personnelClassificationVo) { + Long userId = SecurityUtils.getUserId(); + personnelClassificationVo.setCreateUser(userId.toString()); + personnelClassificationVo.setCreateTime(new Date()); + return personnelClassificationMapper.addClassification(personnelClassificationVo); + } + + /** + * 删除0:人员分类1:人员性质2:岗位列表 + */ + @Override + public int delClassification(PersonnelClassificationVo personnelClassificationVo) { + return personnelClassificationMapper.delClassification(personnelClassificationVo); + } + + /** + * 修改0:人员分类1:人员性质2:岗位列表 + */ + @Override + public int updateClassification(PersonnelClassificationVo personnelClassificationVo) { + Long userId = SecurityUtils.getUserId(); + personnelClassificationVo.setUpdateUser(userId.toString()); + personnelClassificationVo.setUpdateTime(new Date()); + return personnelClassificationMapper.updateClassification(personnelClassificationVo); + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/impl/PersonnelServiceImpl.java b/bonus-business/src/main/java/com/bonus/digital/service/impl/PersonnelServiceImpl.java new file mode 100644 index 0000000..b95057a --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/impl/PersonnelServiceImpl.java @@ -0,0 +1,63 @@ +package com.bonus.digital.service.impl; + +import com.bonus.common.utils.SecurityUtils; +import com.bonus.digital.dao.PersonnelVo; +import com.bonus.digital.mapper.PersonnelMapper; +import com.bonus.digital.service.PersonnelService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Service +@Slf4j +public class PersonnelServiceImpl implements PersonnelService { + + @Resource + private PersonnelMapper personnelMapper; + + + /** + * 获取人员管理列表 + */ + @Override + public List getPersonnelList(PersonnelVo personnelVo) { + return personnelMapper.getPersonnelList(personnelVo); + } + + /** + * 新增人员 + */ + @Override + public int addPersonnel(PersonnelVo personnelVo) { + Long userId = SecurityUtils.getUserId(); + personnelVo.setCreateUser(userId.toString()); + personnelVo.setCreateTime(new Date()); + return personnelMapper.addPersonnel(personnelVo); + } + + /** + * 删除人员 + */ + @Override + public int delPersonnel(PersonnelVo personnelVo) { + return personnelMapper.delPersonnel(personnelVo); + } + + /** + * 修改人员 + */ + @Override + public int updatePersonnel(PersonnelVo personnelVo) { + Long userId = SecurityUtils.getUserId(); + personnelVo.setUpdateUser(userId.toString()); + personnelVo.setUpdateTime(new Date()); + return personnelMapper.updatePersonnel(personnelVo); + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/impl/PlanMajorServiceImpl.java b/bonus-business/src/main/java/com/bonus/digital/service/impl/PlanMajorServiceImpl.java new file mode 100644 index 0000000..0ebb5d3 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/impl/PlanMajorServiceImpl.java @@ -0,0 +1,67 @@ +package com.bonus.digital.service.impl; + +import com.bonus.common.utils.SecurityUtils; +import com.bonus.digital.dao.PersonnelVo; +import com.bonus.digital.dao.PlanMajorVo; +import com.bonus.digital.mapper.PlanMajorMapper; +import com.bonus.digital.service.PersonnelService; +import com.bonus.digital.service.PlanMajorService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +/** + *@author 马三炮 + *@date 2025/12/15 + */ +@Service +@Slf4j +public class PlanMajorServiceImpl implements PlanMajorService { + + @Resource + private PlanMajorMapper planMajorMapper; + + + /** + * 列表类别0:计划专业1:业务分类2:计划类别 + */ + @Override + public List getPlanMajorList(PlanMajorVo planMajorVo) { + + return planMajorMapper.getPlanMajorList(planMajorVo); + } + + /** + * 新增类别0:计划专业1:业务分类2:计划类别 + */ + @Override + public int addPlanMajor(PlanMajorVo planMajorVo) { + Long userId = SecurityUtils.getUserId(); + planMajorVo.setCreateUser(userId.toString()); + planMajorVo.setCreateTime(new Date()); + return planMajorMapper.addPlanMajor(planMajorVo); + } + + /** + * 删除类别0:计划专业1:业务分类2:计划类别 + */ + @Override + public int delPlanMajor(PlanMajorVo planMajorVo) { + return planMajorMapper.delPlanMajor(planMajorVo); + } + + /** + * 修改类别0:计划专业1:业务分类2:计划类别 + */ + @Override + public int updatePlanMajor(PlanMajorVo planMajorVo) { + Long userId = SecurityUtils.getUserId(); + planMajorVo.setUpdateUser(userId.toString()); + planMajorVo.setUpdateTime(new Date()); + return planMajorMapper.updatePlanMajor(planMajorVo); + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/impl/PlanManagementServiceImpl.java b/bonus-business/src/main/java/com/bonus/digital/service/impl/PlanManagementServiceImpl.java new file mode 100644 index 0000000..d0ec2ab --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/impl/PlanManagementServiceImpl.java @@ -0,0 +1,90 @@ +package com.bonus.digital.service.impl; + +import com.bonus.common.utils.SecurityUtils; +import com.bonus.digital.dao.InspectionStationVo; +import com.bonus.digital.dao.PlanManagementVo; +import com.bonus.digital.mapper.InspectionStationMapper; +import com.bonus.digital.mapper.PlanManagementMapper; +import com.bonus.digital.service.PlanManagementService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/16 + */ +@Service +@Slf4j +public class PlanManagementServiceImpl implements PlanManagementService { + + @Resource + private PlanManagementMapper planManagementMapper; + + @Resource + private InspectionStationMapper inspectionStationMapper; + + /** + * 计划管理表列表 + */ + @Override + public List getPlanManagementList(PlanManagementVo planManagementVo) { + return planManagementMapper.getPlanManagementList(planManagementVo); + } + + /** + * 新增计划管理表 + */ + @Override + public int addPlanManagement(PlanManagementVo planManagementVo) { + Long userId = SecurityUtils.getUserId(); + planManagementVo.setCreateUser(userId.toString()); + planManagementVo.setCreateTime(new Date()); + return planManagementMapper.addPlanManagement(planManagementVo); + } + + /** + * 删除计划管理表 + */ + @Override + public int delPlanManagement(PlanManagementVo planManagementVo) { + return planManagementMapper.delPlanManagement(planManagementVo); + } + + /** + * 修改计划管理 + */ + @Override + public int updatePlanManagement(PlanManagementVo planManagementVo) { + Long userId = SecurityUtils.getUserId(); + planManagementVo.setUpdateUser(userId.toString()); + planManagementVo.setUpdateTime(new Date()); + return planManagementMapper.updatePlanManagement(planManagementVo); + } + + /** + * 导入计划管理 + */ + @Override + @Transactional + public String importPlanManagement(List planManagementList) { + + for (PlanManagementVo planManagementVo : planManagementList) { + //获取当前 + InspectionStationVo inspectionStationVo = new InspectionStationVo(); + inspectionStationVo.setInspectionStationName(planManagementVo.getInspectionStationName()); + inspectionStationVo =inspectionStationMapper.getInspectionStationDetail(inspectionStationVo); + planManagementVo.setInspectionStationId(inspectionStationVo.getInspectionStationId()); + Long userId = SecurityUtils.getUserId(); + planManagementVo.setCreateUser(userId.toString()); + planManagementVo.setCreateTime(new Date()); + planManagementMapper.addPlanManagement(planManagementVo); + } + return "导入成功"; + } +} diff --git a/bonus-business/src/main/java/com/bonus/digital/service/impl/WorkloadCategoryServiceImpl.java b/bonus-business/src/main/java/com/bonus/digital/service/impl/WorkloadCategoryServiceImpl.java new file mode 100644 index 0000000..1aad9e4 --- /dev/null +++ b/bonus-business/src/main/java/com/bonus/digital/service/impl/WorkloadCategoryServiceImpl.java @@ -0,0 +1,51 @@ +package com.bonus.digital.service.impl; + +import com.bonus.common.utils.SecurityUtils; +import com.bonus.digital.dao.WorkloadCategoryVo; +import com.bonus.digital.mapper.WorkloadCategoryMapper; +import com.bonus.digital.service.WorkloadCategoryService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +/** + * @author 马三炮 + * @date 2025/12/15 + */ +@Service +@Slf4j +public class WorkloadCategoryServiceImpl implements WorkloadCategoryService { + + @Resource + private WorkloadCategoryMapper workloadCategoryMapper; + + @Override + public List getWorkloadCategoryList(WorkloadCategoryVo workloadCategoryVo) { + return workloadCategoryMapper.getWorkloadCategoryList(workloadCategoryVo); + } + + @Override + public int addWorkloadCategory(WorkloadCategoryVo workloadCategoryVo) { + Long userId = SecurityUtils.getUserId(); + workloadCategoryVo.setCreateUser(userId.toString()); + workloadCategoryVo.setCreateTime(new Date()); + return workloadCategoryMapper.addWorkloadCategory(workloadCategoryVo); + } + + @Override + public int delWorkloadCategory(WorkloadCategoryVo workloadCategoryVo) { + return workloadCategoryMapper.delWorkloadCategory(workloadCategoryVo); + } + + @Override + public int updateWorkloadCategory(WorkloadCategoryVo workloadCategoryVo) { + Long userId = SecurityUtils.getUserId(); + workloadCategoryVo.setUpdateUser(userId.toString()); + workloadCategoryVo.setUpdateTime(new Date()); + return workloadCategoryMapper.updateWorkloadCategory(workloadCategoryVo); + } +} diff --git a/bonus-business/src/main/resources/mapper/InspectionStationMapper.xml b/bonus-business/src/main/resources/mapper/InspectionStationMapper.xml new file mode 100644 index 0000000..0c6cde0 --- /dev/null +++ b/bonus-business/src/main/resources/mapper/InspectionStationMapper.xml @@ -0,0 +1,40 @@ + + + + + insert into tb_inspection_station (inspection_station_name,remark,create_user,create_time,category) + values (#{inspectionStationName},#{remark},#{createUser},#{createTime},#{category}) + + + update tb_inspection_station + + + inspection_station_name=#{inspectionStationName}, + + + remark=#{remark}, + + + update_user=#{updateUser}, + + + update_time=#{updateTime}, + + + where inspection_station_id = #{inspectionStationId} + + + update tb_inspection_station set is_active ='0' where inspection_station_id = #{inspectionStationId} + + + + + diff --git a/bonus-business/src/main/resources/mapper/MonthPlanMapper.xml b/bonus-business/src/main/resources/mapper/MonthPlanMapper.xml new file mode 100644 index 0000000..39378de --- /dev/null +++ b/bonus-business/src/main/resources/mapper/MonthPlanMapper.xml @@ -0,0 +1,129 @@ + + + + + insert into tb_monthly_plan (monthly_plan,inspection_station_id,inspection_station_name,plan_major_id,business_type_id, + project_name,work_content,plan_category_id,tower_base_number,planned_start_time, + planned_end_time,plan_personnel,plan_car_num,plan_skilled_worker_num,plan_auxiliary_worker_num, + plan_sub_car_num,create_user,create_time,actual_working_day) + values (#{monthlyPlan},#{inspectionStationId},#{inspectionStationName},#{planMajorId},#{businessTypeId}, + #{projectName},#{workContent},#{planCategoryId},#{towerBaseNumber},#{plannedStartTime},#{plannedEndTime}, + #{planPersonnel},#{planCarNum},#{planSkilledWorkerNum},#{planAuxiliaryWorkerNum},#{planSubCarNum}, + #{createUser},#{createTime},#{actualWorkingDay}) + + + insert into tb_personnel_arrangement (monthly_plan_id,day,personnel_names) + values (#{monthlyPlanId},#{day},#{personnelNames}) + + + insert into tb_workload (plan_id,workload_category_id,workload_category_name,unit_price,workload_num,data_source) + values (#{planId},#{workloadCategoryId},#{workloadCategoryName},#{unitPrice},#{workloadNum},#{dataSource}) + + + update tb_monthly_plan + + + monthly_plan=#{monthlyPlan}, + + + inspection_station_id=#{inspectionStationId}, + + + inspection_station_name=#{inspectionStationName}, + + + plan_major_id=#{planMajorId}, + + + business_type_id=#{businessTypeId}, + + + project_name=#{projectName}, + + + work_content=#{workContent}, + + + plan_category_id=#{planCategoryId}, + + + tower_base_number=#{towerBaseNumber}, + + + planned_start_time=#{plannedStartTime}, + + + planned_end_time=#{plannedEndTime}, + + + plan_personnel=#{planPersonnel}, + + + plan_car_num=#{planCarNum}, + + + plan_skilled_worker_num=#{planSkilledWorkerNum}, + + + plan_auxiliary_worker_num=#{planAuxiliaryWorkerNum}, + + + plan_sub_car_num=#{planSubCarNum}, + + + update_time=#{updateTime}, + + + update_user=#{updateUser}, + + + actual_working_day=#{actualWorkingDay}, + + + where monthly_plan_id = #{monthlyPlanId} + + + update tb_monthly_plan set is_active ='0' where monthly_plan_id = #{monthlyPlanId} + + + delete from tb_personnel_arrangement where monthly_plan_id = #{monthlyPlanId} + + + delete from tb_workload where plan_id= #{monthlyPlanId} + + + + + diff --git a/bonus-business/src/main/resources/mapper/PersonnalMapper.xml b/bonus-business/src/main/resources/mapper/PersonnalMapper.xml new file mode 100644 index 0000000..937c283 --- /dev/null +++ b/bonus-business/src/main/resources/mapper/PersonnalMapper.xml @@ -0,0 +1,96 @@ + + + + + insert into tb_personnel (inspection_station_id,NAME,sex,phone,position_id,personnel_nature_id, + personnel_classification_id,long_term_secondment,create_user,create_time) + values (#{inspectionStationId},#{name},#{sex},#{phone},#{positionId}#{personnelNatureId}, + #{personnelClassificationId},#{longTermSecondment},#{createUser},#{createTime}) + + + update tb_personnel + + + inspectionStationId=#{inspectionStationId}, + + + NAME=#{name}, + + + sex=#{sex}, + + + phone=#{phone}, + + + position_id=#{positionId}, + + + personnel_nature_id=#{personnelNatureId}, + + + personnel_classification_id=#{personnelClassificationId}, + + + long_term_secondment=#{longTermSecondment}, + + + update_user=#{updateUser}, + + + update_time=#{updateTime}, + + + where personnel_classification_id = #{personnelClassificationId} + + + update tb_personnel set is_active ='0' where id = #{id} + + + + diff --git a/bonus-business/src/main/resources/mapper/PersonnelClassificationMapper.xml b/bonus-business/src/main/resources/mapper/PersonnelClassificationMapper.xml new file mode 100644 index 0000000..3dbe9d7 --- /dev/null +++ b/bonus-business/src/main/resources/mapper/PersonnelClassificationMapper.xml @@ -0,0 +1,37 @@ + + + + + insert into tb_personnel_classification (personnel_classification_name,remark,create_user,create_time,category) + values (#{personnelClassificationName},#{remark},#{createUser},#{createTime},#{category}) + + + update tb_personnel_classification + + + personnel_classification_name=#{personnelClassificationName}, + + + remark=#{remark}, + + + update_user=#{updateUser}, + + + update_time=#{updateTime}, + + + where personnel_classification_id = #{personnelClassificationId} + + + update tb_personnel_classification set is_active ='0' where personnel_classification_id = #{personnelClassificationId} + + + + + diff --git a/bonus-business/src/main/resources/mapper/PlanMajorMapper.xml b/bonus-business/src/main/resources/mapper/PlanMajorMapper.xml new file mode 100644 index 0000000..41b9a7f --- /dev/null +++ b/bonus-business/src/main/resources/mapper/PlanMajorMapper.xml @@ -0,0 +1,36 @@ + + + + + insert into tb_plan_major (plan_major_name,remark,create_user,create_time,category) + values (#{planMajorName},#{remark},#{createUser},#{createTime},#{category}) + + + update tb_plan_major + + + plan_major_name=#{planMajorName}, + + + remark=#{remark}, + + + update_user=#{updateUser}, + + + update_time=#{updateTime}, + + + where plan_major_id = #{planMajorId} + + + update tb_plan_major set is_active ='0' where plan_major_id = #{planMajorId} + + + + diff --git a/bonus-business/src/main/resources/mapper/PlanManagementMapper.xml b/bonus-business/src/main/resources/mapper/PlanManagementMapper.xml new file mode 100644 index 0000000..9cddc91 --- /dev/null +++ b/bonus-business/src/main/resources/mapper/PlanManagementMapper.xml @@ -0,0 +1,64 @@ + + + + + insert into tb_plan_management (plan_management_month,project_name,work_content,inspection_station_id, + stare_date,end_date,risk_level,remark,create_user,create_time) + values (#{planManagementMonth},#{projectName},#{workContent},#{inspectionStationId}, + #{stareDate}, #{endDate},#{riskLevel},#{remark},#{createUser},#{createTime}) + + + update tb_plan_management + + + plan_management_month=#{planManagementMonth}, + + + project_name=#{projectName}, + + + work_content=#{workContent}, + + + inspection_station_id=#{inspectionStationId}, + + + stare_date=#{stareDate}, + + + end_date=#{endDate}, + + + risk_level=#{riskLevel}, + + + update_user=#{updateUser}, + + + update_time=#{updateTime}, + + + where plan_management_id = #{planManagementId} + + + update tb_plan_management set is_active ='0' where plan_management_id = #{planManagementId} + + + + diff --git a/bonus-business/src/main/resources/mapper/WorkloadCategoryMapper.xml b/bonus-business/src/main/resources/mapper/WorkloadCategoryMapper.xml new file mode 100644 index 0000000..399cd13 --- /dev/null +++ b/bonus-business/src/main/resources/mapper/WorkloadCategoryMapper.xml @@ -0,0 +1,39 @@ + + + + + insert into tb_workload_category (workload_category_name,remark,create_user,create_time,unit_price) + values (#{workloadCategoryName},#{remark},#{createUser},#{createTime},#{unitPrice}) + + + update tb_workload_category + + + workload_category_name=#{workloadCategoryName}, + + + remark=#{remark}, + + + unit_price=#{unitPrice}, + + + update_user=#{updateUser}, + + + update_time=#{updateTime}, + + + where workload_category_id = #{workloadCategoryId} + + + update tb_workload_category set is_active ='0' where workload_category_id = #{workloadCategoryId} + + + +