重构lease

This commit is contained in:
sxu 2024-10-16 20:12:12 +08:00
parent 6623d7e57f
commit d27b42b85c
35 changed files with 301 additions and 301 deletions

View File

@ -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("/lease_agreement_record")
public class LeaseAgreementRecordController extends BaseController
{
public class LeaseAgreementRecordController extends BaseController {
@Autowired
private ILeaseAgreementRecordService leaseAgreementRecordService;
@ -44,8 +43,7 @@ public class LeaseAgreementRecordController extends BaseController
@ApiOperation(value = "查询项目领退列表")
@RequiresPermissions("lease:record:list")
@GetMapping("/list")
public TableDataInfo list(LeaseAgreementRecord leaseAgreementRecord)
{
public TableDataInfo list(LeaseAgreementRecord leaseAgreementRecord) {
startPage();
List<LeaseAgreementRecord> list = leaseAgreementRecordService.selectLeaseAgreementRecordList(leaseAgreementRecord);
return getDataTable(list);
@ -59,8 +57,7 @@ public class LeaseAgreementRecordController extends BaseController
@RequiresPermissions("lease:record:export")
@SysLog(title = "项目领退", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出项目领退")
@PostMapping("/export")
public void export(HttpServletResponse response, LeaseAgreementRecord leaseAgreementRecord)
{
public void export(HttpServletResponse response, LeaseAgreementRecord leaseAgreementRecord) {
List<LeaseAgreementRecord> list = leaseAgreementRecordService.selectLeaseAgreementRecordList(leaseAgreementRecord);
ExcelUtil<LeaseAgreementRecord> util = new ExcelUtil<LeaseAgreementRecord>(LeaseAgreementRecord.class);
util.exportExcel(response, list, "项目领退数据");
@ -72,8 +69,7 @@ public class LeaseAgreementRecordController extends BaseController
@ApiOperation(value = "获取项目领退详细信息")
@RequiresPermissions("lease:record:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(leaseAgreementRecordService.selectLeaseAgreementRecordById(id));
}
@ -85,9 +81,12 @@ public class LeaseAgreementRecordController extends BaseController
@RequiresPermissions("lease:record:add")
@SysLog(title = "项目领退", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增项目领退")
@PostMapping
public AjaxResult add(@RequestBody LeaseAgreementRecord leaseAgreementRecord)
{
return toAjax(leaseAgreementRecordService.insertLeaseAgreementRecord(leaseAgreementRecord));
public AjaxResult add(@RequestBody LeaseAgreementRecord leaseAgreementRecord) {
try {
return toAjax(leaseAgreementRecordService.insertLeaseAgreementRecord(leaseAgreementRecord));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -98,9 +97,12 @@ public class LeaseAgreementRecordController extends BaseController
@RequiresPermissions("lease:record:edit")
@SysLog(title = "项目领退", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改项目领退")
@PutMapping
public AjaxResult edit(@RequestBody LeaseAgreementRecord leaseAgreementRecord)
{
return toAjax(leaseAgreementRecordService.updateLeaseAgreementRecord(leaseAgreementRecord));
public AjaxResult edit(@RequestBody LeaseAgreementRecord leaseAgreementRecord) {
try {
return toAjax(leaseAgreementRecordService.updateLeaseAgreementRecord(leaseAgreementRecord));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -111,8 +113,7 @@ public class LeaseAgreementRecordController extends BaseController
@RequiresPermissions("lease:record:remove")
@SysLog(title = "项目领退", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除项目领退")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(leaseAgreementRecordService.deleteLeaseAgreementRecordByIds(ids));
}
}

View File

@ -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("/lease_apply_details")
public class LeaseApplyDetailsController extends BaseController
{
public class LeaseApplyDetailsController extends BaseController {
@Autowired
private ILeaseApplyDetailsService leaseApplyDetailsService;
@ -44,8 +43,7 @@ public class LeaseApplyDetailsController extends BaseController
@ApiOperation(value = "查询领料任务详细列表")
@RequiresPermissions("lease:details:list")
@GetMapping("/list")
public TableDataInfo list(LeaseApplyDetails leaseApplyDetails)
{
public TableDataInfo list(LeaseApplyDetails leaseApplyDetails) {
startPage();
List<LeaseApplyDetails> list = leaseApplyDetailsService.selectLeaseApplyDetailsList(leaseApplyDetails);
return getDataTable(list);
@ -59,8 +57,7 @@ public class LeaseApplyDetailsController extends BaseController
@RequiresPermissions("lease:details:export")
@SysLog(title = "领料任务详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出领料任务详细")
@PostMapping("/export")
public void export(HttpServletResponse response, LeaseApplyDetails leaseApplyDetails)
{
public void export(HttpServletResponse response, LeaseApplyDetails leaseApplyDetails) {
List<LeaseApplyDetails> list = leaseApplyDetailsService.selectLeaseApplyDetailsList(leaseApplyDetails);
ExcelUtil<LeaseApplyDetails> util = new ExcelUtil<LeaseApplyDetails>(LeaseApplyDetails.class);
util.exportExcel(response, list, "领料任务详细数据");
@ -72,8 +69,7 @@ public class LeaseApplyDetailsController extends BaseController
@ApiOperation(value = "获取领料任务详细详细信息")
@RequiresPermissions("lease:details:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(leaseApplyDetailsService.selectLeaseApplyDetailsById(id));
}
@ -85,9 +81,12 @@ public class LeaseApplyDetailsController extends BaseController
@RequiresPermissions("lease:details:add")
@SysLog(title = "领料任务详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增领料任务详细")
@PostMapping
public AjaxResult add(@RequestBody LeaseApplyDetails leaseApplyDetails)
{
return toAjax(leaseApplyDetailsService.insertLeaseApplyDetails(leaseApplyDetails));
public AjaxResult add(@RequestBody LeaseApplyDetails leaseApplyDetails) {
try {
return toAjax(leaseApplyDetailsService.insertLeaseApplyDetails(leaseApplyDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -98,9 +97,12 @@ public class LeaseApplyDetailsController extends BaseController
@RequiresPermissions("lease:details:edit")
@SysLog(title = "领料任务详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改领料任务详细")
@PutMapping
public AjaxResult edit(@RequestBody LeaseApplyDetails leaseApplyDetails)
{
return toAjax(leaseApplyDetailsService.updateLeaseApplyDetails(leaseApplyDetails));
public AjaxResult edit(@RequestBody LeaseApplyDetails leaseApplyDetails) {
try {
return toAjax(leaseApplyDetailsService.updateLeaseApplyDetails(leaseApplyDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -111,8 +113,7 @@ public class LeaseApplyDetailsController extends BaseController
@RequiresPermissions("lease:details:remove")
@SysLog(title = "领料任务详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除领料任务详细")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(leaseApplyDetailsService.deleteLeaseApplyDetailsByIds(ids));
}
}

View File

@ -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("/lease_apply_info")
public class LeaseApplyInfoController extends BaseController
{
public class LeaseApplyInfoController extends BaseController {
@Autowired
private ILeaseApplyInfoService leaseApplyInfoService;
@ -44,8 +43,7 @@ public class LeaseApplyInfoController extends BaseController
@ApiOperation(value = "查询领料任务列表")
@RequiresPermissions("lease:info:list")
@GetMapping("/list")
public TableDataInfo list(LeaseApplyInfo leaseApplyInfo)
{
public TableDataInfo list(LeaseApplyInfo leaseApplyInfo) {
startPage();
List<LeaseApplyInfo> list = leaseApplyInfoService.selectLeaseApplyInfoList(leaseApplyInfo);
return getDataTable(list);
@ -59,8 +57,7 @@ public class LeaseApplyInfoController extends BaseController
@RequiresPermissions("lease:info:export")
@SysLog(title = "领料任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出领料任务")
@PostMapping("/export")
public void export(HttpServletResponse response, LeaseApplyInfo leaseApplyInfo)
{
public void export(HttpServletResponse response, LeaseApplyInfo leaseApplyInfo) {
List<LeaseApplyInfo> list = leaseApplyInfoService.selectLeaseApplyInfoList(leaseApplyInfo);
ExcelUtil<LeaseApplyInfo> util = new ExcelUtil<LeaseApplyInfo>(LeaseApplyInfo.class);
util.exportExcel(response, list, "领料任务数据");
@ -72,8 +69,7 @@ public class LeaseApplyInfoController extends BaseController
@ApiOperation(value = "获取领料任务详细信息")
@RequiresPermissions("lease:info:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(leaseApplyInfoService.selectLeaseApplyInfoById(id));
}
@ -85,9 +81,12 @@ public class LeaseApplyInfoController extends BaseController
@RequiresPermissions("lease:info:add")
@SysLog(title = "领料任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增领料任务")
@PostMapping
public AjaxResult add(@RequestBody LeaseApplyInfo leaseApplyInfo)
{
return toAjax(leaseApplyInfoService.insertLeaseApplyInfo(leaseApplyInfo));
public AjaxResult add(@RequestBody LeaseApplyInfo leaseApplyInfo) {
try {
return toAjax(leaseApplyInfoService.insertLeaseApplyInfo(leaseApplyInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -98,9 +97,12 @@ public class LeaseApplyInfoController extends BaseController
@RequiresPermissions("lease:info:edit")
@SysLog(title = "领料任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改领料任务")
@PutMapping
public AjaxResult edit(@RequestBody LeaseApplyInfo leaseApplyInfo)
{
return toAjax(leaseApplyInfoService.updateLeaseApplyInfo(leaseApplyInfo));
public AjaxResult edit(@RequestBody LeaseApplyInfo leaseApplyInfo) {
try {
return toAjax(leaseApplyInfoService.updateLeaseApplyInfo(leaseApplyInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -111,8 +113,7 @@ public class LeaseApplyInfoController extends BaseController
@RequiresPermissions("lease:info:remove")
@SysLog(title = "领料任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除领料任务")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(leaseApplyInfoService.deleteLeaseApplyInfoByIds(ids));
}
}

View File

@ -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("/lease_out_details")
public class LeaseOutDetailsController extends BaseController
{
public class LeaseOutDetailsController extends BaseController {
@Autowired
private ILeaseOutDetailsService leaseOutDetailsService;
@ -44,8 +43,7 @@ public class LeaseOutDetailsController extends BaseController
@ApiOperation(value = "查询领料出库详细列表")
@RequiresPermissions("lease:details:list")
@GetMapping("/list")
public TableDataInfo list(LeaseOutDetails leaseOutDetails)
{
public TableDataInfo list(LeaseOutDetails leaseOutDetails) {
startPage();
List<LeaseOutDetails> list = leaseOutDetailsService.selectLeaseOutDetailsList(leaseOutDetails);
return getDataTable(list);
@ -59,8 +57,7 @@ public class LeaseOutDetailsController extends BaseController
@RequiresPermissions("lease:details:export")
@SysLog(title = "领料出库详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出领料出库详细")
@PostMapping("/export")
public void export(HttpServletResponse response, LeaseOutDetails leaseOutDetails)
{
public void export(HttpServletResponse response, LeaseOutDetails leaseOutDetails) {
List<LeaseOutDetails> list = leaseOutDetailsService.selectLeaseOutDetailsList(leaseOutDetails);
ExcelUtil<LeaseOutDetails> util = new ExcelUtil<LeaseOutDetails>(LeaseOutDetails.class);
util.exportExcel(response, list, "领料出库详细数据");
@ -72,8 +69,7 @@ public class LeaseOutDetailsController extends BaseController
@ApiOperation(value = "获取领料出库详细详细信息")
@RequiresPermissions("lease:details:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(leaseOutDetailsService.selectLeaseOutDetailsById(id));
}
@ -85,9 +81,12 @@ public class LeaseOutDetailsController extends BaseController
@RequiresPermissions("lease:details:add")
@SysLog(title = "领料出库详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增领料出库详细")
@PostMapping
public AjaxResult add(@RequestBody LeaseOutDetails leaseOutDetails)
{
return toAjax(leaseOutDetailsService.insertLeaseOutDetails(leaseOutDetails));
public AjaxResult add(@RequestBody LeaseOutDetails leaseOutDetails) {
try {
return toAjax(leaseOutDetailsService.insertLeaseOutDetails(leaseOutDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -98,9 +97,12 @@ public class LeaseOutDetailsController extends BaseController
@RequiresPermissions("lease:details:edit")
@SysLog(title = "领料出库详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改领料出库详细")
@PutMapping
public AjaxResult edit(@RequestBody LeaseOutDetails leaseOutDetails)
{
return toAjax(leaseOutDetailsService.updateLeaseOutDetails(leaseOutDetails));
public AjaxResult edit(@RequestBody LeaseOutDetails leaseOutDetails) {
try {
return toAjax(leaseOutDetailsService.updateLeaseOutDetails(leaseOutDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -111,8 +113,7 @@ public class LeaseOutDetailsController extends BaseController
@RequiresPermissions("lease:details:remove")
@SysLog(title = "领料出库详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除领料出库详细")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(leaseOutDetailsService.deleteLeaseOutDetailsByIds(ids));
}
}

View File

@ -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("/lease_scene_regist")
public class LeaseSceneRegistController extends BaseController
{
public class LeaseSceneRegistController extends BaseController {
@Autowired
private ILeaseSceneRegistService leaseSceneRegistService;
@ -44,8 +43,7 @@ public class LeaseSceneRegistController extends BaseController
@ApiOperation(value = "查询项目部出入记录列表")
@RequiresPermissions("lease:regist:list")
@GetMapping("/list")
public TableDataInfo list(LeaseSceneRegist leaseSceneRegist)
{
public TableDataInfo list(LeaseSceneRegist leaseSceneRegist) {
startPage();
List<LeaseSceneRegist> list = leaseSceneRegistService.selectLeaseSceneRegistList(leaseSceneRegist);
return getDataTable(list);
@ -59,8 +57,7 @@ public class LeaseSceneRegistController extends BaseController
@RequiresPermissions("lease:regist:export")
@SysLog(title = "项目部出入记录", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出项目部出入记录")
@PostMapping("/export")
public void export(HttpServletResponse response, LeaseSceneRegist leaseSceneRegist)
{
public void export(HttpServletResponse response, LeaseSceneRegist leaseSceneRegist) {
List<LeaseSceneRegist> list = leaseSceneRegistService.selectLeaseSceneRegistList(leaseSceneRegist);
ExcelUtil<LeaseSceneRegist> util = new ExcelUtil<LeaseSceneRegist>(LeaseSceneRegist.class);
util.exportExcel(response, list, "项目部出入记录数据");
@ -72,8 +69,7 @@ public class LeaseSceneRegistController extends BaseController
@ApiOperation(value = "获取项目部出入记录详细信息")
@RequiresPermissions("lease:regist:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(leaseSceneRegistService.selectLeaseSceneRegistById(id));
}
@ -85,9 +81,12 @@ public class LeaseSceneRegistController extends BaseController
@RequiresPermissions("lease:regist:add")
@SysLog(title = "项目部出入记录", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增项目部出入记录")
@PostMapping
public AjaxResult add(@RequestBody LeaseSceneRegist leaseSceneRegist)
{
return toAjax(leaseSceneRegistService.insertLeaseSceneRegist(leaseSceneRegist));
public AjaxResult add(@RequestBody LeaseSceneRegist leaseSceneRegist) {
try {
return toAjax(leaseSceneRegistService.insertLeaseSceneRegist(leaseSceneRegist));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -98,9 +97,12 @@ public class LeaseSceneRegistController extends BaseController
@RequiresPermissions("lease:regist:edit")
@SysLog(title = "项目部出入记录", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改项目部出入记录")
@PutMapping
public AjaxResult edit(@RequestBody LeaseSceneRegist leaseSceneRegist)
{
return toAjax(leaseSceneRegistService.updateLeaseSceneRegist(leaseSceneRegist));
public AjaxResult edit(@RequestBody LeaseSceneRegist leaseSceneRegist) {
try {
return toAjax(leaseSceneRegistService.updateLeaseSceneRegist(leaseSceneRegist));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -111,8 +113,7 @@ public class LeaseSceneRegistController extends BaseController
@RequiresPermissions("lease:regist:remove")
@SysLog(title = "项目部出入记录", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除项目部出入记录")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(leaseSceneRegistService.deleteLeaseSceneRegistByIds(ids));
}
}

View File

@ -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("/lease_team_info")
public class LeaseTeamInfoController extends BaseController
{
public class LeaseTeamInfoController extends BaseController {
@Autowired
private ILeaseTeamInfoService leaseTeamInfoService;
@ -44,8 +43,7 @@ public class LeaseTeamInfoController extends BaseController
@ApiOperation(value = "查询项目部班组管理列表")
@RequiresPermissions("lease:info:list")
@GetMapping("/list")
public TableDataInfo list(LeaseTeamInfo leaseTeamInfo)
{
public TableDataInfo list(LeaseTeamInfo leaseTeamInfo) {
startPage();
List<LeaseTeamInfo> list = leaseTeamInfoService.selectLeaseTeamInfoList(leaseTeamInfo);
return getDataTable(list);
@ -59,8 +57,7 @@ public class LeaseTeamInfoController extends BaseController
@RequiresPermissions("lease:info:export")
@SysLog(title = "项目部班组管理", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出项目部班组管理")
@PostMapping("/export")
public void export(HttpServletResponse response, LeaseTeamInfo leaseTeamInfo)
{
public void export(HttpServletResponse response, LeaseTeamInfo leaseTeamInfo) {
List<LeaseTeamInfo> list = leaseTeamInfoService.selectLeaseTeamInfoList(leaseTeamInfo);
ExcelUtil<LeaseTeamInfo> util = new ExcelUtil<LeaseTeamInfo>(LeaseTeamInfo.class);
util.exportExcel(response, list, "项目部班组管理数据");
@ -72,8 +69,7 @@ public class LeaseTeamInfoController extends BaseController
@ApiOperation(value = "获取项目部班组管理详细信息")
@RequiresPermissions("lease:info:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(leaseTeamInfoService.selectLeaseTeamInfoById(id));
}
@ -85,9 +81,12 @@ public class LeaseTeamInfoController extends BaseController
@RequiresPermissions("lease:info:add")
@SysLog(title = "项目部班组管理", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增项目部班组管理")
@PostMapping
public AjaxResult add(@RequestBody LeaseTeamInfo leaseTeamInfo)
{
return toAjax(leaseTeamInfoService.insertLeaseTeamInfo(leaseTeamInfo));
public AjaxResult add(@RequestBody LeaseTeamInfo leaseTeamInfo) {
try {
return toAjax(leaseTeamInfoService.insertLeaseTeamInfo(leaseTeamInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -98,9 +97,12 @@ public class LeaseTeamInfoController extends BaseController
@RequiresPermissions("lease:info:edit")
@SysLog(title = "项目部班组管理", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改项目部班组管理")
@PutMapping
public AjaxResult edit(@RequestBody LeaseTeamInfo leaseTeamInfo)
{
return toAjax(leaseTeamInfoService.updateLeaseTeamInfo(leaseTeamInfo));
public AjaxResult edit(@RequestBody LeaseTeamInfo leaseTeamInfo) {
try {
return toAjax(leaseTeamInfoService.updateLeaseTeamInfo(leaseTeamInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -111,8 +113,7 @@ public class LeaseTeamInfoController extends BaseController
@RequiresPermissions("lease:info:remove")
@SysLog(title = "项目部班组管理", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除项目部班组管理")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(leaseTeamInfoService.deleteLeaseTeamInfoByIds(ids));
}
}

View File

@ -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("/lease_user_book")
public class LeaseUserBookController extends BaseController
{
public class LeaseUserBookController extends BaseController {
@Autowired
private ILeaseUserBookService leaseUserBookService;
@ -44,8 +43,7 @@ public class LeaseUserBookController extends BaseController
@ApiOperation(value = "查询预约车列表")
@RequiresPermissions("lease:book:list")
@GetMapping("/list")
public TableDataInfo list(LeaseUserBook leaseUserBook)
{
public TableDataInfo list(LeaseUserBook leaseUserBook) {
startPage();
List<LeaseUserBook> list = leaseUserBookService.selectLeaseUserBookList(leaseUserBook);
return getDataTable(list);
@ -59,8 +57,7 @@ public class LeaseUserBookController extends BaseController
@RequiresPermissions("lease:book:export")
@SysLog(title = "预约车", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出预约车")
@PostMapping("/export")
public void export(HttpServletResponse response, LeaseUserBook leaseUserBook)
{
public void export(HttpServletResponse response, LeaseUserBook leaseUserBook) {
List<LeaseUserBook> list = leaseUserBookService.selectLeaseUserBookList(leaseUserBook);
ExcelUtil<LeaseUserBook> util = new ExcelUtil<LeaseUserBook>(LeaseUserBook.class);
util.exportExcel(response, list, "预约车数据");
@ -72,8 +69,7 @@ public class LeaseUserBookController extends BaseController
@ApiOperation(value = "获取预约车详细信息")
@RequiresPermissions("lease:book:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(leaseUserBookService.selectLeaseUserBookById(id));
}
@ -85,9 +81,12 @@ public class LeaseUserBookController extends BaseController
@RequiresPermissions("lease:book:add")
@SysLog(title = "预约车", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增预约车")
@PostMapping
public AjaxResult add(@RequestBody LeaseUserBook leaseUserBook)
{
return toAjax(leaseUserBookService.insertLeaseUserBook(leaseUserBook));
public AjaxResult add(@RequestBody LeaseUserBook leaseUserBook) {
try {
return toAjax(leaseUserBookService.insertLeaseUserBook(leaseUserBook));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -98,9 +97,12 @@ public class LeaseUserBookController extends BaseController
@RequiresPermissions("lease:book:edit")
@SysLog(title = "预约车", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改预约车")
@PutMapping
public AjaxResult edit(@RequestBody LeaseUserBook leaseUserBook)
{
return toAjax(leaseUserBookService.updateLeaseUserBook(leaseUserBook));
public AjaxResult edit(@RequestBody LeaseUserBook leaseUserBook) {
try {
return toAjax(leaseUserBookService.updateLeaseUserBook(leaseUserBook));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
}
/**
@ -111,8 +113,7 @@ public class LeaseUserBookController extends BaseController
@RequiresPermissions("lease:book:remove")
@SysLog(title = "预约车", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除预约车")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(leaseUserBookService.deleteLeaseUserBookByIds(ids));
}
}

View File

@ -12,14 +12,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 项目领退对象 lease_agreement_record
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Data
@ToString
public class LeaseAgreementRecord extends BaseEntity
{
public class LeaseAgreementRecord extends BaseEntity {
private static final long serialVersionUID = 1L;
/** ID */

View File

@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 领料任务详细对象 lease_apply_details
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Data
@ToString
public class LeaseApplyDetails extends BaseEntity
{
public class LeaseApplyDetails extends BaseEntity {
private static final long serialVersionUID = 1L;
/** ID */

View File

@ -12,14 +12,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 领料任务对象 lease_apply_info
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Data
@ToString
public class LeaseApplyInfo extends BaseEntity
{
public class LeaseApplyInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** ID */

View File

@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 领料出库详细对象 lease_out_details
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Data
@ToString
public class LeaseOutDetails extends BaseEntity
{
public class LeaseOutDetails extends BaseEntity {
private static final long serialVersionUID = 1L;
/** ID */

View File

@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 项目部出入记录对象 lease_scene_regist
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Data
@ToString
public class LeaseSceneRegist extends BaseEntity
{
public class LeaseSceneRegist extends BaseEntity {
private static final long serialVersionUID = 1L;
/** ID */

View File

@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 项目部班组管理对象 lease_team_info
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Data
@ToString
public class LeaseTeamInfo extends BaseEntity
{
public class LeaseTeamInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 任务ID */

View File

@ -12,14 +12,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 预约车对象 lease_user_book
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Data
@ToString
public class LeaseUserBook extends BaseEntity
{
public class LeaseUserBook extends BaseEntity {
private static final long serialVersionUID = 1L;
/** ID */

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseAgreementRecord;
* 项目领退Mapper接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface LeaseAgreementRecordMapper
{
public interface LeaseAgreementRecordMapper {
/**
* 查询项目领退
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseApplyDetails;
* 领料任务详细Mapper接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface LeaseApplyDetailsMapper
{
public interface LeaseApplyDetailsMapper {
/**
* 查询领料任务详细
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseApplyInfo;
* 领料任务Mapper接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface LeaseApplyInfoMapper
{
public interface LeaseApplyInfoMapper {
/**
* 查询领料任务
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseOutDetails;
* 领料出库详细Mapper接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface LeaseOutDetailsMapper
{
public interface LeaseOutDetailsMapper {
/**
* 查询领料出库详细
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseSceneRegist;
* 项目部出入记录Mapper接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface LeaseSceneRegistMapper
{
public interface LeaseSceneRegistMapper {
/**
* 查询项目部出入记录
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseTeamInfo;
* 项目部班组管理Mapper接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface LeaseTeamInfoMapper
{
public interface LeaseTeamInfoMapper {
/**
* 查询项目部班组管理
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseUserBook;
* 预约车Mapper接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface LeaseUserBookMapper
{
public interface LeaseUserBookMapper {
/**
* 查询预约车
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseAgreementRecord;
* 项目领退Service接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface ILeaseAgreementRecordService
{
public interface ILeaseAgreementRecordService {
/**
* 查询项目领退
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseApplyDetails;
* 领料任务详细Service接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface ILeaseApplyDetailsService
{
public interface ILeaseApplyDetailsService {
/**
* 查询领料任务详细
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseApplyInfo;
* 领料任务Service接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface ILeaseApplyInfoService
{
public interface ILeaseApplyInfoService {
/**
* 查询领料任务
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseOutDetails;
* 领料出库详细Service接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface ILeaseOutDetailsService
{
public interface ILeaseOutDetailsService {
/**
* 查询领料出库详细
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseSceneRegist;
* 项目部出入记录Service接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface ILeaseSceneRegistService
{
public interface ILeaseSceneRegistService {
/**
* 查询项目部出入记录
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseTeamInfo;
* 项目部班组管理Service接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface ILeaseTeamInfoService
{
public interface ILeaseTeamInfoService {
/**
* 查询项目部班组管理
*

View File

@ -7,10 +7,9 @@ import com.bonus.material.lease.domain.LeaseUserBook;
* 预约车Service接口
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
public interface ILeaseUserBookService
{
public interface ILeaseUserBookService {
/**
* 查询预约车
*

View File

@ -1,6 +1,7 @@
package com.bonus.material.lease.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.lease.service.ILeaseAgreementRecordService;
* 项目领退Service业务层处理
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Service
public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordService
{
public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordService {
@Autowired
private LeaseAgreementRecordMapper leaseAgreementRecordMapper;
@ -27,8 +27,7 @@ public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordSer
* @return 项目领退
*/
@Override
public LeaseAgreementRecord selectLeaseAgreementRecordById(Long id)
{
public LeaseAgreementRecord selectLeaseAgreementRecordById(Long id) {
return leaseAgreementRecordMapper.selectLeaseAgreementRecordById(id);
}
@ -39,8 +38,7 @@ public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordSer
* @return 项目领退
*/
@Override
public List<LeaseAgreementRecord> selectLeaseAgreementRecordList(LeaseAgreementRecord leaseAgreementRecord)
{
public List<LeaseAgreementRecord> selectLeaseAgreementRecordList(LeaseAgreementRecord leaseAgreementRecord) {
return leaseAgreementRecordMapper.selectLeaseAgreementRecordList(leaseAgreementRecord);
}
@ -51,10 +49,13 @@ public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordSer
* @return 结果
*/
@Override
public int insertLeaseAgreementRecord(LeaseAgreementRecord leaseAgreementRecord)
{
public int insertLeaseAgreementRecord(LeaseAgreementRecord leaseAgreementRecord) {
leaseAgreementRecord.setCreateTime(DateUtils.getNowDate());
return leaseAgreementRecordMapper.insertLeaseAgreementRecord(leaseAgreementRecord);
try {
return leaseAgreementRecordMapper.insertLeaseAgreementRecord(leaseAgreementRecord);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -64,10 +65,13 @@ public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordSer
* @return 结果
*/
@Override
public int updateLeaseAgreementRecord(LeaseAgreementRecord leaseAgreementRecord)
{
public int updateLeaseAgreementRecord(LeaseAgreementRecord leaseAgreementRecord) {
leaseAgreementRecord.setUpdateTime(DateUtils.getNowDate());
return leaseAgreementRecordMapper.updateLeaseAgreementRecord(leaseAgreementRecord);
try {
return leaseAgreementRecordMapper.updateLeaseAgreementRecord(leaseAgreementRecord);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -77,8 +81,7 @@ public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordSer
* @return 结果
*/
@Override
public int deleteLeaseAgreementRecordByIds(Long[] ids)
{
public int deleteLeaseAgreementRecordByIds(Long[] ids) {
return leaseAgreementRecordMapper.deleteLeaseAgreementRecordByIds(ids);
}
@ -89,8 +92,7 @@ public class LeaseAgreementRecordServiceImpl implements ILeaseAgreementRecordSer
* @return 结果
*/
@Override
public int deleteLeaseAgreementRecordById(Long id)
{
public int deleteLeaseAgreementRecordById(Long id) {
return leaseAgreementRecordMapper.deleteLeaseAgreementRecordById(id);
}
}

View File

@ -1,6 +1,7 @@
package com.bonus.material.lease.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.lease.service.ILeaseApplyDetailsService;
* 领料任务详细Service业务层处理
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Service
public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService
{
public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService {
@Autowired
private LeaseApplyDetailsMapper leaseApplyDetailsMapper;
@ -27,8 +27,7 @@ public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService
* @return 领料任务详细
*/
@Override
public LeaseApplyDetails selectLeaseApplyDetailsById(Long id)
{
public LeaseApplyDetails selectLeaseApplyDetailsById(Long id) {
return leaseApplyDetailsMapper.selectLeaseApplyDetailsById(id);
}
@ -39,8 +38,7 @@ public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService
* @return 领料任务详细
*/
@Override
public List<LeaseApplyDetails> selectLeaseApplyDetailsList(LeaseApplyDetails leaseApplyDetails)
{
public List<LeaseApplyDetails> selectLeaseApplyDetailsList(LeaseApplyDetails leaseApplyDetails) {
return leaseApplyDetailsMapper.selectLeaseApplyDetailsList(leaseApplyDetails);
}
@ -51,10 +49,13 @@ public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService
* @return 结果
*/
@Override
public int insertLeaseApplyDetails(LeaseApplyDetails leaseApplyDetails)
{
public int insertLeaseApplyDetails(LeaseApplyDetails leaseApplyDetails) {
leaseApplyDetails.setCreateTime(DateUtils.getNowDate());
return leaseApplyDetailsMapper.insertLeaseApplyDetails(leaseApplyDetails);
try {
return leaseApplyDetailsMapper.insertLeaseApplyDetails(leaseApplyDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -64,10 +65,13 @@ public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService
* @return 结果
*/
@Override
public int updateLeaseApplyDetails(LeaseApplyDetails leaseApplyDetails)
{
public int updateLeaseApplyDetails(LeaseApplyDetails leaseApplyDetails) {
leaseApplyDetails.setUpdateTime(DateUtils.getNowDate());
return leaseApplyDetailsMapper.updateLeaseApplyDetails(leaseApplyDetails);
try {
return leaseApplyDetailsMapper.updateLeaseApplyDetails(leaseApplyDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -77,8 +81,7 @@ public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService
* @return 结果
*/
@Override
public int deleteLeaseApplyDetailsByIds(Long[] ids)
{
public int deleteLeaseApplyDetailsByIds(Long[] ids) {
return leaseApplyDetailsMapper.deleteLeaseApplyDetailsByIds(ids);
}
@ -89,8 +92,7 @@ public class LeaseApplyDetailsServiceImpl implements ILeaseApplyDetailsService
* @return 结果
*/
@Override
public int deleteLeaseApplyDetailsById(Long id)
{
public int deleteLeaseApplyDetailsById(Long id) {
return leaseApplyDetailsMapper.deleteLeaseApplyDetailsById(id);
}
}

View File

@ -1,6 +1,7 @@
package com.bonus.material.lease.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.lease.service.ILeaseApplyInfoService;
* 领料任务Service业务层处理
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Service
public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService
{
public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
@Autowired
private LeaseApplyInfoMapper leaseApplyInfoMapper;
@ -27,8 +27,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService
* @return 领料任务
*/
@Override
public LeaseApplyInfo selectLeaseApplyInfoById(Long id)
{
public LeaseApplyInfo selectLeaseApplyInfoById(Long id) {
return leaseApplyInfoMapper.selectLeaseApplyInfoById(id);
}
@ -39,8 +38,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService
* @return 领料任务
*/
@Override
public List<LeaseApplyInfo> selectLeaseApplyInfoList(LeaseApplyInfo leaseApplyInfo)
{
public List<LeaseApplyInfo> selectLeaseApplyInfoList(LeaseApplyInfo leaseApplyInfo) {
return leaseApplyInfoMapper.selectLeaseApplyInfoList(leaseApplyInfo);
}
@ -51,10 +49,13 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService
* @return 结果
*/
@Override
public int insertLeaseApplyInfo(LeaseApplyInfo leaseApplyInfo)
{
public int insertLeaseApplyInfo(LeaseApplyInfo leaseApplyInfo) {
leaseApplyInfo.setCreateTime(DateUtils.getNowDate());
return leaseApplyInfoMapper.insertLeaseApplyInfo(leaseApplyInfo);
try {
return leaseApplyInfoMapper.insertLeaseApplyInfo(leaseApplyInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -64,10 +65,13 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService
* @return 结果
*/
@Override
public int updateLeaseApplyInfo(LeaseApplyInfo leaseApplyInfo)
{
public int updateLeaseApplyInfo(LeaseApplyInfo leaseApplyInfo) {
leaseApplyInfo.setUpdateTime(DateUtils.getNowDate());
return leaseApplyInfoMapper.updateLeaseApplyInfo(leaseApplyInfo);
try {
return leaseApplyInfoMapper.updateLeaseApplyInfo(leaseApplyInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -77,8 +81,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService
* @return 结果
*/
@Override
public int deleteLeaseApplyInfoByIds(Long[] ids)
{
public int deleteLeaseApplyInfoByIds(Long[] ids) {
return leaseApplyInfoMapper.deleteLeaseApplyInfoByIds(ids);
}
@ -89,8 +92,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService
* @return 结果
*/
@Override
public int deleteLeaseApplyInfoById(Long id)
{
public int deleteLeaseApplyInfoById(Long id) {
return leaseApplyInfoMapper.deleteLeaseApplyInfoById(id);
}
}

View File

@ -1,6 +1,7 @@
package com.bonus.material.lease.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.lease.service.ILeaseOutDetailsService;
* 领料出库详细Service业务层处理
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Service
public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService
{
public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService {
@Autowired
private LeaseOutDetailsMapper leaseOutDetailsMapper;
@ -27,8 +27,7 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService
* @return 领料出库详细
*/
@Override
public LeaseOutDetails selectLeaseOutDetailsById(Long id)
{
public LeaseOutDetails selectLeaseOutDetailsById(Long id) {
return leaseOutDetailsMapper.selectLeaseOutDetailsById(id);
}
@ -39,8 +38,7 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService
* @return 领料出库详细
*/
@Override
public List<LeaseOutDetails> selectLeaseOutDetailsList(LeaseOutDetails leaseOutDetails)
{
public List<LeaseOutDetails> selectLeaseOutDetailsList(LeaseOutDetails leaseOutDetails) {
return leaseOutDetailsMapper.selectLeaseOutDetailsList(leaseOutDetails);
}
@ -51,10 +49,13 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService
* @return 结果
*/
@Override
public int insertLeaseOutDetails(LeaseOutDetails leaseOutDetails)
{
public int insertLeaseOutDetails(LeaseOutDetails leaseOutDetails) {
leaseOutDetails.setCreateTime(DateUtils.getNowDate());
return leaseOutDetailsMapper.insertLeaseOutDetails(leaseOutDetails);
try {
return leaseOutDetailsMapper.insertLeaseOutDetails(leaseOutDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -64,10 +65,13 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService
* @return 结果
*/
@Override
public int updateLeaseOutDetails(LeaseOutDetails leaseOutDetails)
{
public int updateLeaseOutDetails(LeaseOutDetails leaseOutDetails) {
leaseOutDetails.setUpdateTime(DateUtils.getNowDate());
return leaseOutDetailsMapper.updateLeaseOutDetails(leaseOutDetails);
try {
return leaseOutDetailsMapper.updateLeaseOutDetails(leaseOutDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -77,8 +81,7 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService
* @return 结果
*/
@Override
public int deleteLeaseOutDetailsByIds(Long[] ids)
{
public int deleteLeaseOutDetailsByIds(Long[] ids) {
return leaseOutDetailsMapper.deleteLeaseOutDetailsByIds(ids);
}
@ -89,8 +92,7 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService
* @return 结果
*/
@Override
public int deleteLeaseOutDetailsById(Long id)
{
public int deleteLeaseOutDetailsById(Long id) {
return leaseOutDetailsMapper.deleteLeaseOutDetailsById(id);
}
}

View File

@ -1,6 +1,7 @@
package com.bonus.material.lease.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.lease.service.ILeaseSceneRegistService;
* 项目部出入记录Service业务层处理
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Service
public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService
{
public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService {
@Autowired
private LeaseSceneRegistMapper leaseSceneRegistMapper;
@ -27,8 +27,7 @@ public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService
* @return 项目部出入记录
*/
@Override
public LeaseSceneRegist selectLeaseSceneRegistById(Long id)
{
public LeaseSceneRegist selectLeaseSceneRegistById(Long id) {
return leaseSceneRegistMapper.selectLeaseSceneRegistById(id);
}
@ -39,8 +38,7 @@ public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService
* @return 项目部出入记录
*/
@Override
public List<LeaseSceneRegist> selectLeaseSceneRegistList(LeaseSceneRegist leaseSceneRegist)
{
public List<LeaseSceneRegist> selectLeaseSceneRegistList(LeaseSceneRegist leaseSceneRegist) {
return leaseSceneRegistMapper.selectLeaseSceneRegistList(leaseSceneRegist);
}
@ -51,10 +49,13 @@ public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService
* @return 结果
*/
@Override
public int insertLeaseSceneRegist(LeaseSceneRegist leaseSceneRegist)
{
public int insertLeaseSceneRegist(LeaseSceneRegist leaseSceneRegist) {
leaseSceneRegist.setCreateTime(DateUtils.getNowDate());
return leaseSceneRegistMapper.insertLeaseSceneRegist(leaseSceneRegist);
try {
return leaseSceneRegistMapper.insertLeaseSceneRegist(leaseSceneRegist);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -64,10 +65,13 @@ public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService
* @return 结果
*/
@Override
public int updateLeaseSceneRegist(LeaseSceneRegist leaseSceneRegist)
{
public int updateLeaseSceneRegist(LeaseSceneRegist leaseSceneRegist) {
leaseSceneRegist.setUpdateTime(DateUtils.getNowDate());
return leaseSceneRegistMapper.updateLeaseSceneRegist(leaseSceneRegist);
try {
return leaseSceneRegistMapper.updateLeaseSceneRegist(leaseSceneRegist);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -77,8 +81,7 @@ public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService
* @return 结果
*/
@Override
public int deleteLeaseSceneRegistByIds(Long[] ids)
{
public int deleteLeaseSceneRegistByIds(Long[] ids) {
return leaseSceneRegistMapper.deleteLeaseSceneRegistByIds(ids);
}
@ -89,8 +92,7 @@ public class LeaseSceneRegistServiceImpl implements ILeaseSceneRegistService
* @return 结果
*/
@Override
public int deleteLeaseSceneRegistById(Long id)
{
public int deleteLeaseSceneRegistById(Long id) {
return leaseSceneRegistMapper.deleteLeaseSceneRegistById(id);
}
}

View File

@ -1,6 +1,7 @@
package com.bonus.material.lease.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.lease.service.ILeaseTeamInfoService;
* 项目部班组管理Service业务层处理
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Service
public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService
{
public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService {
@Autowired
private LeaseTeamInfoMapper leaseTeamInfoMapper;
@ -27,8 +27,7 @@ public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService
* @return 项目部班组管理
*/
@Override
public LeaseTeamInfo selectLeaseTeamInfoById(Long id)
{
public LeaseTeamInfo selectLeaseTeamInfoById(Long id) {
return leaseTeamInfoMapper.selectLeaseTeamInfoById(id);
}
@ -39,8 +38,7 @@ public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService
* @return 项目部班组管理
*/
@Override
public List<LeaseTeamInfo> selectLeaseTeamInfoList(LeaseTeamInfo leaseTeamInfo)
{
public List<LeaseTeamInfo> selectLeaseTeamInfoList(LeaseTeamInfo leaseTeamInfo) {
return leaseTeamInfoMapper.selectLeaseTeamInfoList(leaseTeamInfo);
}
@ -51,10 +49,13 @@ public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService
* @return 结果
*/
@Override
public int insertLeaseTeamInfo(LeaseTeamInfo leaseTeamInfo)
{
public int insertLeaseTeamInfo(LeaseTeamInfo leaseTeamInfo) {
leaseTeamInfo.setCreateTime(DateUtils.getNowDate());
return leaseTeamInfoMapper.insertLeaseTeamInfo(leaseTeamInfo);
try {
return leaseTeamInfoMapper.insertLeaseTeamInfo(leaseTeamInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -64,10 +65,13 @@ public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService
* @return 结果
*/
@Override
public int updateLeaseTeamInfo(LeaseTeamInfo leaseTeamInfo)
{
public int updateLeaseTeamInfo(LeaseTeamInfo leaseTeamInfo) {
leaseTeamInfo.setUpdateTime(DateUtils.getNowDate());
return leaseTeamInfoMapper.updateLeaseTeamInfo(leaseTeamInfo);
try {
return leaseTeamInfoMapper.updateLeaseTeamInfo(leaseTeamInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -77,8 +81,7 @@ public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService
* @return 结果
*/
@Override
public int deleteLeaseTeamInfoByIds(Long[] ids)
{
public int deleteLeaseTeamInfoByIds(Long[] ids) {
return leaseTeamInfoMapper.deleteLeaseTeamInfoByIds(ids);
}
@ -89,8 +92,7 @@ public class LeaseTeamInfoServiceImpl implements ILeaseTeamInfoService
* @return 结果
*/
@Override
public int deleteLeaseTeamInfoById(Long id)
{
public int deleteLeaseTeamInfoById(Long id) {
return leaseTeamInfoMapper.deleteLeaseTeamInfoById(id);
}
}

View File

@ -1,6 +1,7 @@
package com.bonus.material.lease.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.lease.service.ILeaseUserBookService;
* 预约车Service业务层处理
*
* @author xsheng
* @date 2024-09-27
* @date 2024-10-16
*/
@Service
public class LeaseUserBookServiceImpl implements ILeaseUserBookService
{
public class LeaseUserBookServiceImpl implements ILeaseUserBookService {
@Autowired
private LeaseUserBookMapper leaseUserBookMapper;
@ -27,8 +27,7 @@ public class LeaseUserBookServiceImpl implements ILeaseUserBookService
* @return 预约车
*/
@Override
public LeaseUserBook selectLeaseUserBookById(Long id)
{
public LeaseUserBook selectLeaseUserBookById(Long id) {
return leaseUserBookMapper.selectLeaseUserBookById(id);
}
@ -39,8 +38,7 @@ public class LeaseUserBookServiceImpl implements ILeaseUserBookService
* @return 预约车
*/
@Override
public List<LeaseUserBook> selectLeaseUserBookList(LeaseUserBook leaseUserBook)
{
public List<LeaseUserBook> selectLeaseUserBookList(LeaseUserBook leaseUserBook) {
return leaseUserBookMapper.selectLeaseUserBookList(leaseUserBook);
}
@ -51,10 +49,13 @@ public class LeaseUserBookServiceImpl implements ILeaseUserBookService
* @return 结果
*/
@Override
public int insertLeaseUserBook(LeaseUserBook leaseUserBook)
{
public int insertLeaseUserBook(LeaseUserBook leaseUserBook) {
leaseUserBook.setCreateTime(DateUtils.getNowDate());
return leaseUserBookMapper.insertLeaseUserBook(leaseUserBook);
try {
return leaseUserBookMapper.insertLeaseUserBook(leaseUserBook);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -64,10 +65,13 @@ public class LeaseUserBookServiceImpl implements ILeaseUserBookService
* @return 结果
*/
@Override
public int updateLeaseUserBook(LeaseUserBook leaseUserBook)
{
public int updateLeaseUserBook(LeaseUserBook leaseUserBook) {
leaseUserBook.setUpdateTime(DateUtils.getNowDate());
return leaseUserBookMapper.updateLeaseUserBook(leaseUserBook);
try {
return leaseUserBookMapper.updateLeaseUserBook(leaseUserBook);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
}
/**
@ -77,8 +81,7 @@ public class LeaseUserBookServiceImpl implements ILeaseUserBookService
* @return 结果
*/
@Override
public int deleteLeaseUserBookByIds(Long[] ids)
{
public int deleteLeaseUserBookByIds(Long[] ids) {
return leaseUserBookMapper.deleteLeaseUserBookByIds(ids);
}
@ -89,8 +92,7 @@ public class LeaseUserBookServiceImpl implements ILeaseUserBookService
* @return 结果
*/
@Override
public int deleteLeaseUserBookById(Long id)
{
public int deleteLeaseUserBookById(Long id) {
return leaseUserBookMapper.deleteLeaseUserBookById(id);
}
}