重构plan
This commit is contained in:
parent
f43604d86a
commit
d3e4c102e4
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 年度借调计划详细Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "年度借调计划详细接口")
|
||||
@RestController
|
||||
@RequestMapping("/plan_borrow_details")
|
||||
public class PlanBorrowDetailsController extends BaseController
|
||||
{
|
||||
public class PlanBorrowDetailsController extends BaseController {
|
||||
@Autowired
|
||||
private IPlanBorrowDetailsService planBorrowDetailsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class PlanBorrowDetailsController extends BaseController
|
|||
@ApiOperation(value = "查询年度借调计划详细列表")
|
||||
@RequiresPermissions("plan:details:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PlanBorrowDetails planBorrowDetails)
|
||||
{
|
||||
public TableDataInfo list(PlanBorrowDetails planBorrowDetails) {
|
||||
startPage();
|
||||
List<PlanBorrowDetails> list = planBorrowDetailsService.selectPlanBorrowDetailsList(planBorrowDetails);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class PlanBorrowDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:export")
|
||||
@SysLog(title = "年度借调计划详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出年度借调计划详细")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PlanBorrowDetails planBorrowDetails)
|
||||
{
|
||||
public void export(HttpServletResponse response, PlanBorrowDetails planBorrowDetails) {
|
||||
List<PlanBorrowDetails> list = planBorrowDetailsService.selectPlanBorrowDetailsList(planBorrowDetails);
|
||||
ExcelUtil<PlanBorrowDetails> util = new ExcelUtil<PlanBorrowDetails>(PlanBorrowDetails.class);
|
||||
util.exportExcel(response, list, "年度借调计划详细数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class PlanBorrowDetailsController extends BaseController
|
|||
@ApiOperation(value = "获取年度借调计划详细详细信息")
|
||||
@RequiresPermissions("plan:details:query")
|
||||
@GetMapping(value = "/{planId}")
|
||||
public AjaxResult getInfo(@PathVariable("planId") Long planId)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("planId") Long planId) {
|
||||
return success(planBorrowDetailsService.selectPlanBorrowDetailsByPlanId(planId));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class PlanBorrowDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:add")
|
||||
@SysLog(title = "年度借调计划详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增年度借调计划详细")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PlanBorrowDetails planBorrowDetails)
|
||||
{
|
||||
public AjaxResult add(@RequestBody PlanBorrowDetails planBorrowDetails) {
|
||||
try {
|
||||
return toAjax(planBorrowDetailsService.insertPlanBorrowDetails(planBorrowDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class PlanBorrowDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:edit")
|
||||
@SysLog(title = "年度借调计划详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改年度借调计划详细")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PlanBorrowDetails planBorrowDetails)
|
||||
{
|
||||
public AjaxResult edit(@RequestBody PlanBorrowDetails planBorrowDetails) {
|
||||
try {
|
||||
return toAjax(planBorrowDetailsService.updatePlanBorrowDetails(planBorrowDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class PlanBorrowDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:remove")
|
||||
@SysLog(title = "年度借调计划详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除年度借调计划详细")
|
||||
@DeleteMapping("/{planIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] planIds)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] planIds) {
|
||||
return toAjax(planBorrowDetailsService.deletePlanBorrowDetailsByPlanIds(planIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 年度借调Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "年度借调接口")
|
||||
@RestController
|
||||
@RequestMapping("/plan_borrow_info")
|
||||
public class PlanBorrowInfoController extends BaseController
|
||||
{
|
||||
public class PlanBorrowInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IPlanBorrowInfoService planBorrowInfoService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class PlanBorrowInfoController extends BaseController
|
|||
@ApiOperation(value = "查询年度借调列表")
|
||||
@RequiresPermissions("plan:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PlanBorrowInfo planBorrowInfo)
|
||||
{
|
||||
public TableDataInfo list(PlanBorrowInfo planBorrowInfo) {
|
||||
startPage();
|
||||
List<PlanBorrowInfo> list = planBorrowInfoService.selectPlanBorrowInfoList(planBorrowInfo);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class PlanBorrowInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:export")
|
||||
@SysLog(title = "年度借调", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出年度借调")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PlanBorrowInfo planBorrowInfo)
|
||||
{
|
||||
public void export(HttpServletResponse response, PlanBorrowInfo planBorrowInfo) {
|
||||
List<PlanBorrowInfo> list = planBorrowInfoService.selectPlanBorrowInfoList(planBorrowInfo);
|
||||
ExcelUtil<PlanBorrowInfo> util = new ExcelUtil<PlanBorrowInfo>(PlanBorrowInfo.class);
|
||||
util.exportExcel(response, list, "年度借调数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class PlanBorrowInfoController extends BaseController
|
|||
@ApiOperation(value = "获取年度借调详细信息")
|
||||
@RequiresPermissions("plan:info:query")
|
||||
@GetMapping(value = "/{borrowId}")
|
||||
public AjaxResult getInfo(@PathVariable("borrowId") Long borrowId)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("borrowId") Long borrowId) {
|
||||
return success(planBorrowInfoService.selectPlanBorrowInfoByBorrowId(borrowId));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class PlanBorrowInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:add")
|
||||
@SysLog(title = "年度借调", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增年度借调")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PlanBorrowInfo planBorrowInfo)
|
||||
{
|
||||
public AjaxResult add(@RequestBody PlanBorrowInfo planBorrowInfo) {
|
||||
try {
|
||||
return toAjax(planBorrowInfoService.insertPlanBorrowInfo(planBorrowInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class PlanBorrowInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:edit")
|
||||
@SysLog(title = "年度借调", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改年度借调")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PlanBorrowInfo planBorrowInfo)
|
||||
{
|
||||
public AjaxResult edit(@RequestBody PlanBorrowInfo planBorrowInfo) {
|
||||
try {
|
||||
return toAjax(planBorrowInfoService.updatePlanBorrowInfo(planBorrowInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class PlanBorrowInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:remove")
|
||||
@SysLog(title = "年度借调", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除年度借调")
|
||||
@DeleteMapping("/{borrowIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] borrowIds)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] borrowIds) {
|
||||
return toAjax(planBorrowInfoService.deletePlanBorrowInfoByBorrowIds(borrowIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 年度计划详细Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "年度计划详细接口")
|
||||
@RestController
|
||||
@RequestMapping("/plan_need_details")
|
||||
public class PlanNeedDetailsController extends BaseController
|
||||
{
|
||||
public class PlanNeedDetailsController extends BaseController {
|
||||
@Autowired
|
||||
private IPlanNeedDetailsService planNeedDetailsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class PlanNeedDetailsController extends BaseController
|
|||
@ApiOperation(value = "查询年度计划详细列表")
|
||||
@RequiresPermissions("plan:details:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PlanNeedDetails planNeedDetails)
|
||||
{
|
||||
public TableDataInfo list(PlanNeedDetails planNeedDetails) {
|
||||
startPage();
|
||||
List<PlanNeedDetails> list = planNeedDetailsService.selectPlanNeedDetailsList(planNeedDetails);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class PlanNeedDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:export")
|
||||
@SysLog(title = "年度计划详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出年度计划详细")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PlanNeedDetails planNeedDetails)
|
||||
{
|
||||
public void export(HttpServletResponse response, PlanNeedDetails planNeedDetails) {
|
||||
List<PlanNeedDetails> list = planNeedDetailsService.selectPlanNeedDetailsList(planNeedDetails);
|
||||
ExcelUtil<PlanNeedDetails> util = new ExcelUtil<PlanNeedDetails>(PlanNeedDetails.class);
|
||||
util.exportExcel(response, list, "年度计划详细数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class PlanNeedDetailsController extends BaseController
|
|||
@ApiOperation(value = "获取年度计划详细详细信息")
|
||||
@RequiresPermissions("plan:details:query")
|
||||
@GetMapping(value = "/{planId}")
|
||||
public AjaxResult getInfo(@PathVariable("planId") Long planId)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("planId") Long planId) {
|
||||
return success(planNeedDetailsService.selectPlanNeedDetailsByPlanId(planId));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class PlanNeedDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:add")
|
||||
@SysLog(title = "年度计划详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增年度计划详细")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PlanNeedDetails planNeedDetails)
|
||||
{
|
||||
public AjaxResult add(@RequestBody PlanNeedDetails planNeedDetails) {
|
||||
try {
|
||||
return toAjax(planNeedDetailsService.insertPlanNeedDetails(planNeedDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class PlanNeedDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:edit")
|
||||
@SysLog(title = "年度计划详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改年度计划详细")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PlanNeedDetails planNeedDetails)
|
||||
{
|
||||
public AjaxResult edit(@RequestBody PlanNeedDetails planNeedDetails) {
|
||||
try {
|
||||
return toAjax(planNeedDetailsService.updatePlanNeedDetails(planNeedDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class PlanNeedDetailsController extends BaseController
|
|||
@RequiresPermissions("plan:details:remove")
|
||||
@SysLog(title = "年度计划详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除年度计划详细")
|
||||
@DeleteMapping("/{planIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] planIds)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] planIds) {
|
||||
return toAjax(planNeedDetailsService.deletePlanNeedDetailsByPlanIds(planIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 年度计划Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "年度计划接口")
|
||||
@RestController
|
||||
@RequestMapping("/plan_need_info")
|
||||
public class PlanNeedInfoController extends BaseController
|
||||
{
|
||||
public class PlanNeedInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IPlanNeedInfoService planNeedInfoService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class PlanNeedInfoController extends BaseController
|
|||
@ApiOperation(value = "查询年度计划列表")
|
||||
@RequiresPermissions("plan:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PlanNeedInfo planNeedInfo)
|
||||
{
|
||||
public TableDataInfo list(PlanNeedInfo planNeedInfo) {
|
||||
startPage();
|
||||
List<PlanNeedInfo> list = planNeedInfoService.selectPlanNeedInfoList(planNeedInfo);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class PlanNeedInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:export")
|
||||
@SysLog(title = "年度计划", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出年度计划")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PlanNeedInfo planNeedInfo)
|
||||
{
|
||||
public void export(HttpServletResponse response, PlanNeedInfo planNeedInfo) {
|
||||
List<PlanNeedInfo> list = planNeedInfoService.selectPlanNeedInfoList(planNeedInfo);
|
||||
ExcelUtil<PlanNeedInfo> util = new ExcelUtil<PlanNeedInfo>(PlanNeedInfo.class);
|
||||
util.exportExcel(response, list, "年度计划数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class PlanNeedInfoController extends BaseController
|
|||
@ApiOperation(value = "获取年度计划详细信息")
|
||||
@RequiresPermissions("plan:info:query")
|
||||
@GetMapping(value = "/{planId}")
|
||||
public AjaxResult getInfo(@PathVariable("planId") Long planId)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("planId") Long planId) {
|
||||
return success(planNeedInfoService.selectPlanNeedInfoByPlanId(planId));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class PlanNeedInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:add")
|
||||
@SysLog(title = "年度计划", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增年度计划")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PlanNeedInfo planNeedInfo)
|
||||
{
|
||||
public AjaxResult add(@RequestBody PlanNeedInfo planNeedInfo) {
|
||||
try {
|
||||
return toAjax(planNeedInfoService.insertPlanNeedInfo(planNeedInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class PlanNeedInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:edit")
|
||||
@SysLog(title = "年度计划", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改年度计划")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PlanNeedInfo planNeedInfo)
|
||||
{
|
||||
public AjaxResult edit(@RequestBody PlanNeedInfo planNeedInfo) {
|
||||
try {
|
||||
return toAjax(planNeedInfoService.updatePlanNeedInfo(planNeedInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class PlanNeedInfoController extends BaseController
|
|||
@RequiresPermissions("plan:info:remove")
|
||||
@SysLog(title = "年度计划", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除年度计划")
|
||||
@DeleteMapping("/{planIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] planIds)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] planIds) {
|
||||
return toAjax(planNeedInfoService.deletePlanNeedInfoByPlanIds(planIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 年度借调计划详细对象 plan_borrow_details
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class PlanBorrowDetails extends BaseEntity
|
||||
{
|
||||
public class PlanBorrowDetails extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 年度借调对象 plan_borrow_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class PlanBorrowInfo extends BaseEntity
|
||||
{
|
||||
public class PlanBorrowInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 借调计划ID */
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 年度计划详细对象 plan_need_details
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class PlanNeedDetails extends BaseEntity
|
||||
{
|
||||
public class PlanNeedDetails extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 年度计划对象 plan_need_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class PlanNeedInfo extends BaseEntity
|
||||
{
|
||||
public class PlanNeedInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 计划ID */
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanBorrowDetails;
|
|||
* 年度借调计划详细Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface PlanBorrowDetailsMapper
|
||||
{
|
||||
public interface PlanBorrowDetailsMapper {
|
||||
/**
|
||||
* 查询年度借调计划详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanBorrowInfo;
|
|||
* 年度借调Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface PlanBorrowInfoMapper
|
||||
{
|
||||
public interface PlanBorrowInfoMapper {
|
||||
/**
|
||||
* 查询年度借调
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanNeedDetails;
|
|||
* 年度计划详细Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface PlanNeedDetailsMapper
|
||||
{
|
||||
public interface PlanNeedDetailsMapper {
|
||||
/**
|
||||
* 查询年度计划详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanNeedInfo;
|
|||
* 年度计划Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface PlanNeedInfoMapper
|
||||
{
|
||||
public interface PlanNeedInfoMapper {
|
||||
/**
|
||||
* 查询年度计划
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanBorrowDetails;
|
|||
* 年度借调计划详细Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IPlanBorrowDetailsService
|
||||
{
|
||||
public interface IPlanBorrowDetailsService {
|
||||
/**
|
||||
* 查询年度借调计划详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanBorrowInfo;
|
|||
* 年度借调Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IPlanBorrowInfoService
|
||||
{
|
||||
public interface IPlanBorrowInfoService {
|
||||
/**
|
||||
* 查询年度借调
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanNeedDetails;
|
|||
* 年度计划详细Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IPlanNeedDetailsService
|
||||
{
|
||||
public interface IPlanNeedDetailsService {
|
||||
/**
|
||||
* 查询年度计划详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.plan.domain.PlanNeedInfo;
|
|||
* 年度计划Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IPlanNeedInfoService
|
||||
{
|
||||
public interface IPlanNeedInfoService {
|
||||
/**
|
||||
* 查询年度计划
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.plan.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.plan.service.IPlanBorrowDetailsService;
|
|||
* 年度借调计划详细Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService
|
||||
{
|
||||
public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService {
|
||||
@Autowired
|
||||
private PlanBorrowDetailsMapper planBorrowDetailsMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService
|
|||
* @return 年度借调计划详细
|
||||
*/
|
||||
@Override
|
||||
public PlanBorrowDetails selectPlanBorrowDetailsByPlanId(Long planId)
|
||||
{
|
||||
public PlanBorrowDetails selectPlanBorrowDetailsByPlanId(Long planId) {
|
||||
return planBorrowDetailsMapper.selectPlanBorrowDetailsByPlanId(planId);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService
|
|||
* @return 年度借调计划详细
|
||||
*/
|
||||
@Override
|
||||
public List<PlanBorrowDetails> selectPlanBorrowDetailsList(PlanBorrowDetails planBorrowDetails)
|
||||
{
|
||||
public List<PlanBorrowDetails> selectPlanBorrowDetailsList(PlanBorrowDetails planBorrowDetails) {
|
||||
return planBorrowDetailsMapper.selectPlanBorrowDetailsList(planBorrowDetails);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlanBorrowDetails(PlanBorrowDetails planBorrowDetails)
|
||||
{
|
||||
public int insertPlanBorrowDetails(PlanBorrowDetails planBorrowDetails) {
|
||||
planBorrowDetails.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planBorrowDetailsMapper.insertPlanBorrowDetails(planBorrowDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlanBorrowDetails(PlanBorrowDetails planBorrowDetails)
|
||||
{
|
||||
public int updatePlanBorrowDetails(PlanBorrowDetails planBorrowDetails) {
|
||||
planBorrowDetails.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planBorrowDetailsMapper.updatePlanBorrowDetails(planBorrowDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanBorrowDetailsByPlanIds(Long[] planIds)
|
||||
{
|
||||
public int deletePlanBorrowDetailsByPlanIds(Long[] planIds) {
|
||||
return planBorrowDetailsMapper.deletePlanBorrowDetailsByPlanIds(planIds);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class PlanBorrowDetailsServiceImpl implements IPlanBorrowDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanBorrowDetailsByPlanId(Long planId)
|
||||
{
|
||||
public int deletePlanBorrowDetailsByPlanId(Long planId) {
|
||||
return planBorrowDetailsMapper.deletePlanBorrowDetailsByPlanId(planId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.plan.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.plan.service.IPlanBorrowInfoService;
|
|||
* 年度借调Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService
|
||||
{
|
||||
public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService {
|
||||
@Autowired
|
||||
private PlanBorrowInfoMapper planBorrowInfoMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService
|
|||
* @return 年度借调
|
||||
*/
|
||||
@Override
|
||||
public PlanBorrowInfo selectPlanBorrowInfoByBorrowId(Long borrowId)
|
||||
{
|
||||
public PlanBorrowInfo selectPlanBorrowInfoByBorrowId(Long borrowId) {
|
||||
return planBorrowInfoMapper.selectPlanBorrowInfoByBorrowId(borrowId);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService
|
|||
* @return 年度借调
|
||||
*/
|
||||
@Override
|
||||
public List<PlanBorrowInfo> selectPlanBorrowInfoList(PlanBorrowInfo planBorrowInfo)
|
||||
{
|
||||
public List<PlanBorrowInfo> selectPlanBorrowInfoList(PlanBorrowInfo planBorrowInfo) {
|
||||
return planBorrowInfoMapper.selectPlanBorrowInfoList(planBorrowInfo);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlanBorrowInfo(PlanBorrowInfo planBorrowInfo)
|
||||
{
|
||||
public int insertPlanBorrowInfo(PlanBorrowInfo planBorrowInfo) {
|
||||
planBorrowInfo.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planBorrowInfoMapper.insertPlanBorrowInfo(planBorrowInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlanBorrowInfo(PlanBorrowInfo planBorrowInfo)
|
||||
{
|
||||
public int updatePlanBorrowInfo(PlanBorrowInfo planBorrowInfo) {
|
||||
planBorrowInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planBorrowInfoMapper.updatePlanBorrowInfo(planBorrowInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanBorrowInfoByBorrowIds(Long[] borrowIds)
|
||||
{
|
||||
public int deletePlanBorrowInfoByBorrowIds(Long[] borrowIds) {
|
||||
return planBorrowInfoMapper.deletePlanBorrowInfoByBorrowIds(borrowIds);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class PlanBorrowInfoServiceImpl implements IPlanBorrowInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanBorrowInfoByBorrowId(Long borrowId)
|
||||
{
|
||||
public int deletePlanBorrowInfoByBorrowId(Long borrowId) {
|
||||
return planBorrowInfoMapper.deletePlanBorrowInfoByBorrowId(borrowId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.plan.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.plan.service.IPlanNeedDetailsService;
|
|||
* 年度计划详细Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService
|
||||
{
|
||||
public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService {
|
||||
@Autowired
|
||||
private PlanNeedDetailsMapper planNeedDetailsMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService
|
|||
* @return 年度计划详细
|
||||
*/
|
||||
@Override
|
||||
public PlanNeedDetails selectPlanNeedDetailsByPlanId(Long planId)
|
||||
{
|
||||
public PlanNeedDetails selectPlanNeedDetailsByPlanId(Long planId) {
|
||||
return planNeedDetailsMapper.selectPlanNeedDetailsByPlanId(planId);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService
|
|||
* @return 年度计划详细
|
||||
*/
|
||||
@Override
|
||||
public List<PlanNeedDetails> selectPlanNeedDetailsList(PlanNeedDetails planNeedDetails)
|
||||
{
|
||||
public List<PlanNeedDetails> selectPlanNeedDetailsList(PlanNeedDetails planNeedDetails) {
|
||||
return planNeedDetailsMapper.selectPlanNeedDetailsList(planNeedDetails);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlanNeedDetails(PlanNeedDetails planNeedDetails)
|
||||
{
|
||||
public int insertPlanNeedDetails(PlanNeedDetails planNeedDetails) {
|
||||
planNeedDetails.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planNeedDetailsMapper.insertPlanNeedDetails(planNeedDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlanNeedDetails(PlanNeedDetails planNeedDetails)
|
||||
{
|
||||
public int updatePlanNeedDetails(PlanNeedDetails planNeedDetails) {
|
||||
planNeedDetails.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planNeedDetailsMapper.updatePlanNeedDetails(planNeedDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanNeedDetailsByPlanIds(Long[] planIds)
|
||||
{
|
||||
public int deletePlanNeedDetailsByPlanIds(Long[] planIds) {
|
||||
return planNeedDetailsMapper.deletePlanNeedDetailsByPlanIds(planIds);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class PlanNeedDetailsServiceImpl implements IPlanNeedDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanNeedDetailsByPlanId(Long planId)
|
||||
{
|
||||
public int deletePlanNeedDetailsByPlanId(Long planId) {
|
||||
return planNeedDetailsMapper.deletePlanNeedDetailsByPlanId(planId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.plan.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.plan.service.IPlanNeedInfoService;
|
|||
* 年度计划Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService
|
||||
{
|
||||
public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService {
|
||||
@Autowired
|
||||
private PlanNeedInfoMapper planNeedInfoMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService
|
|||
* @return 年度计划
|
||||
*/
|
||||
@Override
|
||||
public PlanNeedInfo selectPlanNeedInfoByPlanId(Long planId)
|
||||
{
|
||||
public PlanNeedInfo selectPlanNeedInfoByPlanId(Long planId) {
|
||||
return planNeedInfoMapper.selectPlanNeedInfoByPlanId(planId);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService
|
|||
* @return 年度计划
|
||||
*/
|
||||
@Override
|
||||
public List<PlanNeedInfo> selectPlanNeedInfoList(PlanNeedInfo planNeedInfo)
|
||||
{
|
||||
public List<PlanNeedInfo> selectPlanNeedInfoList(PlanNeedInfo planNeedInfo) {
|
||||
return planNeedInfoMapper.selectPlanNeedInfoList(planNeedInfo);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlanNeedInfo(PlanNeedInfo planNeedInfo)
|
||||
{
|
||||
public int insertPlanNeedInfo(PlanNeedInfo planNeedInfo) {
|
||||
planNeedInfo.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planNeedInfoMapper.insertPlanNeedInfo(planNeedInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlanNeedInfo(PlanNeedInfo planNeedInfo)
|
||||
{
|
||||
public int updatePlanNeedInfo(PlanNeedInfo planNeedInfo) {
|
||||
planNeedInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return planNeedInfoMapper.updatePlanNeedInfo(planNeedInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanNeedInfoByPlanIds(Long[] planIds)
|
||||
{
|
||||
public int deletePlanNeedInfoByPlanIds(Long[] planIds) {
|
||||
return planNeedInfoMapper.deletePlanNeedInfoByPlanIds(planIds);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class PlanNeedInfoServiceImpl implements IPlanNeedInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlanNeedInfoByPlanId(Long planId)
|
||||
{
|
||||
public int deletePlanNeedInfoByPlanId(Long planId) {
|
||||
return planNeedInfoMapper.deletePlanNeedInfoByPlanId(planId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue