diff --git a/bonus-business/src/main/java/com/bonus/digital/controller/DayPlanController.java b/bonus-business/src/main/java/com/bonus/digital/controller/DayPlanController.java index 803af88..9fd30ca 100644 --- a/bonus-business/src/main/java/com/bonus/digital/controller/DayPlanController.java +++ b/bonus-business/src/main/java/com/bonus/digital/controller/DayPlanController.java @@ -12,10 +12,7 @@ import com.bonus.digital.dao.MonthlyPlanVo; import com.bonus.digital.service.DayPlanService; 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 org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; @@ -47,7 +44,7 @@ public class DayPlanController extends BaseController { //新增日计划 @PreAuthorize("@ss.hasPermi('day:plan:add')") @PostMapping("/addDayPlan") - public AjaxResult addMonthlyPlan(DayPlanVo dayPlanVo) { + public AjaxResult addMonthlyPlan(@RequestBody DayPlanVo dayPlanVo) { try { int res = dayPlanService.addMonthlyPlan(dayPlanVo); if (res > 0) { @@ -63,7 +60,7 @@ public class DayPlanController extends BaseController { //删除日计划 @PreAuthorize("@ss.hasPermi('day:plan:del')") @PostMapping("/delDayPlan") - public AjaxResult delMonthlyPlan(DayPlanVo dayPlanVo) { + public AjaxResult delMonthlyPlan(@RequestBody DayPlanVo dayPlanVo) { try { int res = dayPlanService.delDayPlan(dayPlanVo); if (res > 0) { @@ -79,7 +76,7 @@ public class DayPlanController extends BaseController { // 修改日计划 @PreAuthorize("@ss.hasPermi('day:plan:update')") @PostMapping("/updateDayPlan") - public AjaxResult updateMonthlyPlan(DayPlanVo dayPlanVo) { + public AjaxResult updateMonthlyPlan(@RequestBody DayPlanVo dayPlanVo) { try { int res = dayPlanService.updateDayPlan(dayPlanVo); if (res > 0) { 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 index 13c91fc..56662c0 100644 --- a/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelMapper.java +++ b/bonus-business/src/main/java/com/bonus/digital/mapper/PersonnelMapper.java @@ -16,17 +16,17 @@ public interface PersonnelMapper { /** * 新增人员 */ - int addPersonnel(PersonnelVo personnelVo); + Integer addPersonnel(PersonnelVo personnelVo); /** * 删除人员 */ - int delPersonnel(PersonnelVo personnelVo); + Integer delPersonnel(PersonnelVo personnelVo); /** * 修改人员 */ - int updatePersonnel(PersonnelVo personnelVo); + Integer updatePersonnel(PersonnelVo personnelVo); List getInspectionStationSelect(@Param("category") String category); diff --git a/bonus-business/src/main/resources/mapper/DayPlanMapper.xml b/bonus-business/src/main/resources/mapper/DayPlanMapper.xml index bb818b7..27e43b0 100644 --- a/bonus-business/src/main/resources/mapper/DayPlanMapper.xml +++ b/bonus-business/src/main/resources/mapper/DayPlanMapper.xml @@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" create_user, create_time, status, + day_plan_type, #{dayPlan}, @@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{createUser}, #{createTime}, #{status}, + #{dayPlanType}, @@ -95,10 +97,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/bonus-business/src/main/resources/mapper/PersonnalMapper.xml b/bonus-business/src/main/resources/mapper/PersonnalMapper.xml index 652f0d4..70be471 100644 --- a/bonus-business/src/main/resources/mapper/PersonnalMapper.xml +++ b/bonus-business/src/main/resources/mapper/PersonnalMapper.xml @@ -13,7 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update tb_personnel - inspectionStationId=#{inspectionStationId}, + inspection_station_id = #{inspectionStationId}, NAME=#{name}, @@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update_time=#{updateTime}, - where personnel_classification_id = #{personnelClassificationId} + where id = #{id} update tb_personnel set is_active ='0' where id = #{id} @@ -92,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) + and tis.is_active = '1'