重构purchase

This commit is contained in:
sxu 2024-10-16 20:26:27 +08:00
parent d3e4c102e4
commit f7a5815805
30 changed files with 258 additions and 258 deletions

View File

@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
* 新购验收任务详细Controller * 新购验收任务详细Controller
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Api(tags = "新购验收任务详细接口") @Api(tags = "新购验收任务详细接口")
@RestController @RestController
@RequestMapping("/purchase_check_details") @RequestMapping("/purchase_check_details")
public class PurchaseCheckDetailsController extends BaseController public class PurchaseCheckDetailsController extends BaseController {
{
@Autowired @Autowired
private IPurchaseCheckDetailsService purchaseCheckDetailsService; private IPurchaseCheckDetailsService purchaseCheckDetailsService;
@ -44,8 +43,7 @@ public class PurchaseCheckDetailsController extends BaseController
@ApiOperation(value = "查询新购验收任务详细列表") @ApiOperation(value = "查询新购验收任务详细列表")
@RequiresPermissions("purchase:details:list") @RequiresPermissions("purchase:details:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(PurchaseCheckDetails purchaseCheckDetails) public TableDataInfo list(PurchaseCheckDetails purchaseCheckDetails) {
{
startPage(); startPage();
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails); List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
return getDataTable(list); return getDataTable(list);
@ -59,8 +57,7 @@ public class PurchaseCheckDetailsController extends BaseController
@RequiresPermissions("purchase:details:export") @RequiresPermissions("purchase:details:export")
@SysLog(title = "新购验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收任务详细") @SysLog(title = "新购验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收任务详细")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, PurchaseCheckDetails purchaseCheckDetails) public void export(HttpServletResponse response, PurchaseCheckDetails purchaseCheckDetails) {
{
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails); List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
ExcelUtil<PurchaseCheckDetails> util = new ExcelUtil<PurchaseCheckDetails>(PurchaseCheckDetails.class); ExcelUtil<PurchaseCheckDetails> util = new ExcelUtil<PurchaseCheckDetails>(PurchaseCheckDetails.class);
util.exportExcel(response, list, "新购验收任务详细数据"); util.exportExcel(response, list, "新购验收任务详细数据");
@ -72,8 +69,7 @@ public class PurchaseCheckDetailsController extends BaseController
@ApiOperation(value = "获取新购验收任务详细详细信息") @ApiOperation(value = "获取新购验收任务详细详细信息")
@RequiresPermissions("purchase:details:query") @RequiresPermissions("purchase:details:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(purchaseCheckDetailsService.selectPurchaseCheckDetailsById(id)); return success(purchaseCheckDetailsService.selectPurchaseCheckDetailsById(id));
} }
@ -85,9 +81,12 @@ public class PurchaseCheckDetailsController extends BaseController
@RequiresPermissions("purchase:details:add") @RequiresPermissions("purchase:details:add")
@SysLog(title = "新购验收任务详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收任务详细") @SysLog(title = "新购验收任务详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收任务详细")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody PurchaseCheckDetails purchaseCheckDetails) public AjaxResult add(@RequestBody PurchaseCheckDetails purchaseCheckDetails) {
{ try {
return toAjax(purchaseCheckDetailsService.insertPurchaseCheckDetails(purchaseCheckDetails)); return toAjax(purchaseCheckDetailsService.insertPurchaseCheckDetails(purchaseCheckDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -98,9 +97,12 @@ public class PurchaseCheckDetailsController extends BaseController
@RequiresPermissions("purchase:details:edit") @RequiresPermissions("purchase:details:edit")
@SysLog(title = "新购验收任务详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收任务详细") @SysLog(title = "新购验收任务详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收任务详细")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody PurchaseCheckDetails purchaseCheckDetails) public AjaxResult edit(@RequestBody PurchaseCheckDetails purchaseCheckDetails) {
{ try {
return toAjax(purchaseCheckDetailsService.updatePurchaseCheckDetails(purchaseCheckDetails)); return toAjax(purchaseCheckDetailsService.updatePurchaseCheckDetails(purchaseCheckDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -111,8 +113,7 @@ public class PurchaseCheckDetailsController extends BaseController
@RequiresPermissions("purchase:details:remove") @RequiresPermissions("purchase:details:remove")
@SysLog(title = "新购验收任务详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收任务详细") @SysLog(title = "新购验收任务详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收任务详细")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(purchaseCheckDetailsService.deletePurchaseCheckDetailsByIds(ids)); return toAjax(purchaseCheckDetailsService.deletePurchaseCheckDetailsByIds(ids));
} }
} }

View File

@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
* 新购验收任务Controller * 新购验收任务Controller
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Api(tags = "新购验收任务接口") @Api(tags = "新购验收任务接口")
@RestController @RestController
@RequestMapping("/purchase_check_info") @RequestMapping("/purchase_check_info")
public class PurchaseCheckInfoController extends BaseController public class PurchaseCheckInfoController extends BaseController {
{
@Autowired @Autowired
private IPurchaseCheckInfoService purchaseCheckInfoService; private IPurchaseCheckInfoService purchaseCheckInfoService;
@ -44,8 +43,7 @@ public class PurchaseCheckInfoController extends BaseController
@ApiOperation(value = "查询新购验收任务列表") @ApiOperation(value = "查询新购验收任务列表")
@RequiresPermissions("purchase:info:list") @RequiresPermissions("purchase:info:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(PurchaseCheckInfo purchaseCheckInfo) public TableDataInfo list(PurchaseCheckInfo purchaseCheckInfo) {
{
startPage(); startPage();
List<PurchaseCheckInfo> list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo); List<PurchaseCheckInfo> list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo);
return getDataTable(list); return getDataTable(list);
@ -59,8 +57,7 @@ public class PurchaseCheckInfoController extends BaseController
@RequiresPermissions("purchase:info:export") @RequiresPermissions("purchase:info:export")
@SysLog(title = "新购验收任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收任务") @SysLog(title = "新购验收任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收任务")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo) public void export(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo) {
{
List<PurchaseCheckInfo> list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo); List<PurchaseCheckInfo> list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo);
ExcelUtil<PurchaseCheckInfo> util = new ExcelUtil<PurchaseCheckInfo>(PurchaseCheckInfo.class); ExcelUtil<PurchaseCheckInfo> util = new ExcelUtil<PurchaseCheckInfo>(PurchaseCheckInfo.class);
util.exportExcel(response, list, "新购验收任务数据"); util.exportExcel(response, list, "新购验收任务数据");
@ -72,8 +69,7 @@ public class PurchaseCheckInfoController extends BaseController
@ApiOperation(value = "获取新购验收任务详细信息") @ApiOperation(value = "获取新购验收任务详细信息")
@RequiresPermissions("purchase:info:query") @RequiresPermissions("purchase:info:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(purchaseCheckInfoService.selectPurchaseCheckInfoById(id)); return success(purchaseCheckInfoService.selectPurchaseCheckInfoById(id));
} }
@ -85,9 +81,12 @@ public class PurchaseCheckInfoController extends BaseController
@RequiresPermissions("purchase:info:add") @RequiresPermissions("purchase:info:add")
@SysLog(title = "新购验收任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收任务") @SysLog(title = "新购验收任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收任务")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody PurchaseCheckInfo purchaseCheckInfo) public AjaxResult add(@RequestBody PurchaseCheckInfo purchaseCheckInfo) {
{ try {
return toAjax(purchaseCheckInfoService.insertPurchaseCheckInfo(purchaseCheckInfo)); return toAjax(purchaseCheckInfoService.insertPurchaseCheckInfo(purchaseCheckInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -98,9 +97,12 @@ public class PurchaseCheckInfoController extends BaseController
@RequiresPermissions("purchase:info:edit") @RequiresPermissions("purchase:info:edit")
@SysLog(title = "新购验收任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收任务") @SysLog(title = "新购验收任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收任务")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody PurchaseCheckInfo purchaseCheckInfo) public AjaxResult edit(@RequestBody PurchaseCheckInfo purchaseCheckInfo) {
{ try {
return toAjax(purchaseCheckInfoService.updatePurchaseCheckInfo(purchaseCheckInfo)); return toAjax(purchaseCheckInfoService.updatePurchaseCheckInfo(purchaseCheckInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -111,8 +113,7 @@ public class PurchaseCheckInfoController extends BaseController
@RequiresPermissions("purchase:info:remove") @RequiresPermissions("purchase:info:remove")
@SysLog(title = "新购验收任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收任务") @SysLog(title = "新购验收任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收任务")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(purchaseCheckInfoService.deletePurchaseCheckInfoByIds(ids)); return toAjax(purchaseCheckInfoService.deletePurchaseCheckInfoByIds(ids));
} }
} }

View File

@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
* 新购验收编号管理Controller * 新购验收编号管理Controller
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Api(tags = "新购验收编号管理接口") @Api(tags = "新购验收编号管理接口")
@RestController @RestController
@RequestMapping("/purchase_macode_info") @RequestMapping("/purchase_macode_info")
public class PurchaseMacodeInfoController extends BaseController public class PurchaseMacodeInfoController extends BaseController {
{
@Autowired @Autowired
private IPurchaseMacodeInfoService purchaseMacodeInfoService; private IPurchaseMacodeInfoService purchaseMacodeInfoService;
@ -44,8 +43,7 @@ public class PurchaseMacodeInfoController extends BaseController
@ApiOperation(value = "查询新购验收编号管理列表") @ApiOperation(value = "查询新购验收编号管理列表")
@RequiresPermissions("purchase:info:list") @RequiresPermissions("purchase:info:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(PurchaseMacodeInfo purchaseMacodeInfo) public TableDataInfo list(PurchaseMacodeInfo purchaseMacodeInfo) {
{
startPage(); startPage();
List<PurchaseMacodeInfo> list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo); List<PurchaseMacodeInfo> list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo);
return getDataTable(list); return getDataTable(list);
@ -59,8 +57,7 @@ public class PurchaseMacodeInfoController extends BaseController
@RequiresPermissions("purchase:info:export") @RequiresPermissions("purchase:info:export")
@SysLog(title = "新购验收编号管理", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收编号管理") @SysLog(title = "新购验收编号管理", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收编号管理")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, PurchaseMacodeInfo purchaseMacodeInfo) public void export(HttpServletResponse response, PurchaseMacodeInfo purchaseMacodeInfo) {
{
List<PurchaseMacodeInfo> list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo); List<PurchaseMacodeInfo> list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo);
ExcelUtil<PurchaseMacodeInfo> util = new ExcelUtil<PurchaseMacodeInfo>(PurchaseMacodeInfo.class); ExcelUtil<PurchaseMacodeInfo> util = new ExcelUtil<PurchaseMacodeInfo>(PurchaseMacodeInfo.class);
util.exportExcel(response, list, "新购验收编号管理数据"); util.exportExcel(response, list, "新购验收编号管理数据");
@ -72,8 +69,7 @@ public class PurchaseMacodeInfoController extends BaseController
@ApiOperation(value = "获取新购验收编号管理详细信息") @ApiOperation(value = "获取新购验收编号管理详细信息")
@RequiresPermissions("purchase:info:query") @RequiresPermissions("purchase:info:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(purchaseMacodeInfoService.selectPurchaseMacodeInfoById(id)); return success(purchaseMacodeInfoService.selectPurchaseMacodeInfoById(id));
} }
@ -85,9 +81,12 @@ public class PurchaseMacodeInfoController extends BaseController
@RequiresPermissions("purchase:info:add") @RequiresPermissions("purchase:info:add")
@SysLog(title = "新购验收编号管理", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收编号管理") @SysLog(title = "新购验收编号管理", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收编号管理")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo) public AjaxResult add(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo) {
{ try {
return toAjax(purchaseMacodeInfoService.insertPurchaseMacodeInfo(purchaseMacodeInfo)); return toAjax(purchaseMacodeInfoService.insertPurchaseMacodeInfo(purchaseMacodeInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -98,9 +97,12 @@ public class PurchaseMacodeInfoController extends BaseController
@RequiresPermissions("purchase:info:edit") @RequiresPermissions("purchase:info:edit")
@SysLog(title = "新购验收编号管理", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收编号管理") @SysLog(title = "新购验收编号管理", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收编号管理")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo) public AjaxResult edit(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo) {
{ try {
return toAjax(purchaseMacodeInfoService.updatePurchaseMacodeInfo(purchaseMacodeInfo)); return toAjax(purchaseMacodeInfoService.updatePurchaseMacodeInfo(purchaseMacodeInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -111,8 +113,7 @@ public class PurchaseMacodeInfoController extends BaseController
@RequiresPermissions("purchase:info:remove") @RequiresPermissions("purchase:info:remove")
@SysLog(title = "新购验收编号管理", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收编号管理") @SysLog(title = "新购验收编号管理", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收编号管理")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(purchaseMacodeInfoService.deletePurchaseMacodeInfoByIds(ids)); return toAjax(purchaseMacodeInfoService.deletePurchaseMacodeInfoByIds(ids));
} }
} }

View File

@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
* 新购短信通知人员Controller * 新购短信通知人员Controller
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Api(tags = "新购短信通知人员接口") @Api(tags = "新购短信通知人员接口")
@RestController @RestController
@RequestMapping("/purchase_notice_person") @RequestMapping("/purchase_notice_person")
public class PurchaseNoticePersonController extends BaseController public class PurchaseNoticePersonController extends BaseController {
{
@Autowired @Autowired
private IPurchaseNoticePersonService purchaseNoticePersonService; private IPurchaseNoticePersonService purchaseNoticePersonService;
@ -44,8 +43,7 @@ public class PurchaseNoticePersonController extends BaseController
@ApiOperation(value = "查询新购短信通知人员列表") @ApiOperation(value = "查询新购短信通知人员列表")
@RequiresPermissions("purchase:person:list") @RequiresPermissions("purchase:person:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(PurchaseNoticePerson purchaseNoticePerson) public TableDataInfo list(PurchaseNoticePerson purchaseNoticePerson) {
{
startPage(); startPage();
List<PurchaseNoticePerson> list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson); List<PurchaseNoticePerson> list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson);
return getDataTable(list); return getDataTable(list);
@ -59,8 +57,7 @@ public class PurchaseNoticePersonController extends BaseController
@RequiresPermissions("purchase:person:export") @RequiresPermissions("purchase:person:export")
@SysLog(title = "新购短信通知人员", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购短信通知人员") @SysLog(title = "新购短信通知人员", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购短信通知人员")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, PurchaseNoticePerson purchaseNoticePerson) public void export(HttpServletResponse response, PurchaseNoticePerson purchaseNoticePerson) {
{
List<PurchaseNoticePerson> list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson); List<PurchaseNoticePerson> list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson);
ExcelUtil<PurchaseNoticePerson> util = new ExcelUtil<PurchaseNoticePerson>(PurchaseNoticePerson.class); ExcelUtil<PurchaseNoticePerson> util = new ExcelUtil<PurchaseNoticePerson>(PurchaseNoticePerson.class);
util.exportExcel(response, list, "新购短信通知人员数据"); util.exportExcel(response, list, "新购短信通知人员数据");
@ -72,8 +69,7 @@ public class PurchaseNoticePersonController extends BaseController
@ApiOperation(value = "获取新购短信通知人员详细信息") @ApiOperation(value = "获取新购短信通知人员详细信息")
@RequiresPermissions("purchase:person:query") @RequiresPermissions("purchase:person:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(purchaseNoticePersonService.selectPurchaseNoticePersonById(id)); return success(purchaseNoticePersonService.selectPurchaseNoticePersonById(id));
} }
@ -85,9 +81,12 @@ public class PurchaseNoticePersonController extends BaseController
@RequiresPermissions("purchase:person:add") @RequiresPermissions("purchase:person:add")
@SysLog(title = "新购短信通知人员", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购短信通知人员") @SysLog(title = "新购短信通知人员", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购短信通知人员")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody PurchaseNoticePerson purchaseNoticePerson) public AjaxResult add(@RequestBody PurchaseNoticePerson purchaseNoticePerson) {
{ try {
return toAjax(purchaseNoticePersonService.insertPurchaseNoticePerson(purchaseNoticePerson)); return toAjax(purchaseNoticePersonService.insertPurchaseNoticePerson(purchaseNoticePerson));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -98,9 +97,12 @@ public class PurchaseNoticePersonController extends BaseController
@RequiresPermissions("purchase:person:edit") @RequiresPermissions("purchase:person:edit")
@SysLog(title = "新购短信通知人员", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购短信通知人员") @SysLog(title = "新购短信通知人员", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购短信通知人员")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody PurchaseNoticePerson purchaseNoticePerson) public AjaxResult edit(@RequestBody PurchaseNoticePerson purchaseNoticePerson) {
{ try {
return toAjax(purchaseNoticePersonService.updatePurchaseNoticePerson(purchaseNoticePerson)); return toAjax(purchaseNoticePersonService.updatePurchaseNoticePerson(purchaseNoticePerson));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -111,8 +113,7 @@ public class PurchaseNoticePersonController extends BaseController
@RequiresPermissions("purchase:person:remove") @RequiresPermissions("purchase:person:remove")
@SysLog(title = "新购短信通知人员", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购短信通知人员") @SysLog(title = "新购短信通知人员", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购短信通知人员")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(purchaseNoticePersonService.deletePurchaseNoticePersonByIds(ids)); return toAjax(purchaseNoticePersonService.deletePurchaseNoticePersonByIds(ids));
} }
} }

View File

@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
* 新购配件验收任务详细Controller * 新购配件验收任务详细Controller
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Api(tags = "新购配件验收任务详细接口") @Api(tags = "新购配件验收任务详细接口")
@RestController @RestController
@RequestMapping("/purchase_part_details") @RequestMapping("/purchase_part_details")
public class PurchasePartDetailsController extends BaseController public class PurchasePartDetailsController extends BaseController {
{
@Autowired @Autowired
private IPurchasePartDetailsService purchasePartDetailsService; private IPurchasePartDetailsService purchasePartDetailsService;
@ -44,8 +43,7 @@ public class PurchasePartDetailsController extends BaseController
@ApiOperation(value = "查询新购配件验收任务详细列表") @ApiOperation(value = "查询新购配件验收任务详细列表")
@RequiresPermissions("purchase:details:list") @RequiresPermissions("purchase:details:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(PurchasePartDetails purchasePartDetails) public TableDataInfo list(PurchasePartDetails purchasePartDetails) {
{
startPage(); startPage();
List<PurchasePartDetails> list = purchasePartDetailsService.selectPurchasePartDetailsList(purchasePartDetails); List<PurchasePartDetails> list = purchasePartDetailsService.selectPurchasePartDetailsList(purchasePartDetails);
return getDataTable(list); return getDataTable(list);
@ -59,8 +57,7 @@ public class PurchasePartDetailsController extends BaseController
@RequiresPermissions("purchase:details:export") @RequiresPermissions("purchase:details:export")
@SysLog(title = "新购配件验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购配件验收任务详细") @SysLog(title = "新购配件验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购配件验收任务详细")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, PurchasePartDetails purchasePartDetails) public void export(HttpServletResponse response, PurchasePartDetails purchasePartDetails) {
{
List<PurchasePartDetails> list = purchasePartDetailsService.selectPurchasePartDetailsList(purchasePartDetails); List<PurchasePartDetails> list = purchasePartDetailsService.selectPurchasePartDetailsList(purchasePartDetails);
ExcelUtil<PurchasePartDetails> util = new ExcelUtil<PurchasePartDetails>(PurchasePartDetails.class); ExcelUtil<PurchasePartDetails> util = new ExcelUtil<PurchasePartDetails>(PurchasePartDetails.class);
util.exportExcel(response, list, "新购配件验收任务详细数据"); util.exportExcel(response, list, "新购配件验收任务详细数据");
@ -72,8 +69,7 @@ public class PurchasePartDetailsController extends BaseController
@ApiOperation(value = "获取新购配件验收任务详细详细信息") @ApiOperation(value = "获取新购配件验收任务详细详细信息")
@RequiresPermissions("purchase:details:query") @RequiresPermissions("purchase:details:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(purchasePartDetailsService.selectPurchasePartDetailsById(id)); return success(purchasePartDetailsService.selectPurchasePartDetailsById(id));
} }
@ -85,9 +81,12 @@ public class PurchasePartDetailsController extends BaseController
@RequiresPermissions("purchase:details:add") @RequiresPermissions("purchase:details:add")
@SysLog(title = "新购配件验收任务详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购配件验收任务详细") @SysLog(title = "新购配件验收任务详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购配件验收任务详细")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody PurchasePartDetails purchasePartDetails) public AjaxResult add(@RequestBody PurchasePartDetails purchasePartDetails) {
{ try {
return toAjax(purchasePartDetailsService.insertPurchasePartDetails(purchasePartDetails)); return toAjax(purchasePartDetailsService.insertPurchasePartDetails(purchasePartDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -98,9 +97,12 @@ public class PurchasePartDetailsController extends BaseController
@RequiresPermissions("purchase:details:edit") @RequiresPermissions("purchase:details:edit")
@SysLog(title = "新购配件验收任务详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购配件验收任务详细") @SysLog(title = "新购配件验收任务详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购配件验收任务详细")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody PurchasePartDetails purchasePartDetails) public AjaxResult edit(@RequestBody PurchasePartDetails purchasePartDetails) {
{ try {
return toAjax(purchasePartDetailsService.updatePurchasePartDetails(purchasePartDetails)); return toAjax(purchasePartDetailsService.updatePurchasePartDetails(purchasePartDetails));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -111,8 +113,7 @@ public class PurchasePartDetailsController extends BaseController
@RequiresPermissions("purchase:details:remove") @RequiresPermissions("purchase:details:remove")
@SysLog(title = "新购配件验收任务详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购配件验收任务详细") @SysLog(title = "新购配件验收任务详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购配件验收任务详细")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(purchasePartDetailsService.deletePurchasePartDetailsByIds(ids)); return toAjax(purchasePartDetailsService.deletePurchasePartDetailsByIds(ids));
} }
} }

View File

@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
* 新购配件验收任务Controller * 新购配件验收任务Controller
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Api(tags = "新购配件验收任务接口") @Api(tags = "新购配件验收任务接口")
@RestController @RestController
@RequestMapping("/purchase_part_info") @RequestMapping("/purchase_part_info")
public class PurchasePartInfoController extends BaseController public class PurchasePartInfoController extends BaseController {
{
@Autowired @Autowired
private IPurchasePartInfoService purchasePartInfoService; private IPurchasePartInfoService purchasePartInfoService;
@ -44,8 +43,7 @@ public class PurchasePartInfoController extends BaseController
@ApiOperation(value = "查询新购配件验收任务列表") @ApiOperation(value = "查询新购配件验收任务列表")
@RequiresPermissions("purchase:info:list") @RequiresPermissions("purchase:info:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(PurchasePartInfo purchasePartInfo) public TableDataInfo list(PurchasePartInfo purchasePartInfo) {
{
startPage(); startPage();
List<PurchasePartInfo> list = purchasePartInfoService.selectPurchasePartInfoList(purchasePartInfo); List<PurchasePartInfo> list = purchasePartInfoService.selectPurchasePartInfoList(purchasePartInfo);
return getDataTable(list); return getDataTable(list);
@ -59,8 +57,7 @@ public class PurchasePartInfoController extends BaseController
@RequiresPermissions("purchase:info:export") @RequiresPermissions("purchase:info:export")
@SysLog(title = "新购配件验收任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购配件验收任务") @SysLog(title = "新购配件验收任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购配件验收任务")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, PurchasePartInfo purchasePartInfo) public void export(HttpServletResponse response, PurchasePartInfo purchasePartInfo) {
{
List<PurchasePartInfo> list = purchasePartInfoService.selectPurchasePartInfoList(purchasePartInfo); List<PurchasePartInfo> list = purchasePartInfoService.selectPurchasePartInfoList(purchasePartInfo);
ExcelUtil<PurchasePartInfo> util = new ExcelUtil<PurchasePartInfo>(PurchasePartInfo.class); ExcelUtil<PurchasePartInfo> util = new ExcelUtil<PurchasePartInfo>(PurchasePartInfo.class);
util.exportExcel(response, list, "新购配件验收任务数据"); util.exportExcel(response, list, "新购配件验收任务数据");
@ -72,8 +69,7 @@ public class PurchasePartInfoController extends BaseController
@ApiOperation(value = "获取新购配件验收任务详细信息") @ApiOperation(value = "获取新购配件验收任务详细信息")
@RequiresPermissions("purchase:info:query") @RequiresPermissions("purchase:info:query")
@GetMapping(value = "/{ID}") @GetMapping(value = "/{ID}")
public AjaxResult getInfo(@PathVariable("ID") Long ID) public AjaxResult getInfo(@PathVariable("ID") Long ID) {
{
return success(purchasePartInfoService.selectPurchasePartInfoByID(ID)); return success(purchasePartInfoService.selectPurchasePartInfoByID(ID));
} }
@ -85,9 +81,12 @@ public class PurchasePartInfoController extends BaseController
@RequiresPermissions("purchase:info:add") @RequiresPermissions("purchase:info:add")
@SysLog(title = "新购配件验收任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购配件验收任务") @SysLog(title = "新购配件验收任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购配件验收任务")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody PurchasePartInfo purchasePartInfo) public AjaxResult add(@RequestBody PurchasePartInfo purchasePartInfo) {
{ try {
return toAjax(purchasePartInfoService.insertPurchasePartInfo(purchasePartInfo)); return toAjax(purchasePartInfoService.insertPurchasePartInfo(purchasePartInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -98,9 +97,12 @@ public class PurchasePartInfoController extends BaseController
@RequiresPermissions("purchase:info:edit") @RequiresPermissions("purchase:info:edit")
@SysLog(title = "新购配件验收任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购配件验收任务") @SysLog(title = "新购配件验收任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购配件验收任务")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody PurchasePartInfo purchasePartInfo) public AjaxResult edit(@RequestBody PurchasePartInfo purchasePartInfo) {
{ try {
return toAjax(purchasePartInfoService.updatePurchasePartInfo(purchasePartInfo)); return toAjax(purchasePartInfoService.updatePurchasePartInfo(purchasePartInfo));
} catch (Exception e) {
return error("系统错误, " + e.getMessage());
}
} }
/** /**
@ -111,8 +113,7 @@ public class PurchasePartInfoController extends BaseController
@RequiresPermissions("purchase:info:remove") @RequiresPermissions("purchase:info:remove")
@SysLog(title = "新购配件验收任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购配件验收任务") @SysLog(title = "新购配件验收任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购配件验收任务")
@DeleteMapping("/{IDs}") @DeleteMapping("/{IDs}")
public AjaxResult remove(@PathVariable Long[] IDs) public AjaxResult remove(@PathVariable Long[] IDs) {
{
return toAjax(purchasePartInfoService.deletePurchasePartInfoByIDs(IDs)); return toAjax(purchasePartInfoService.deletePurchasePartInfoByIDs(IDs));
} }
} }

View File

@ -13,14 +13,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 新购验收任务详细对象 purchase_check_details * 新购验收任务详细对象 purchase_check_details
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Data @Data
@ToString @ToString
public class PurchaseCheckDetails extends BaseEntity public class PurchaseCheckDetails extends BaseEntity {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 主键id */ /** 主键id */

View File

@ -12,14 +12,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 新购验收任务对象 purchase_check_info * 新购验收任务对象 purchase_check_info
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Data @Data
@ToString @ToString
public class PurchaseCheckInfo extends BaseEntity public class PurchaseCheckInfo extends BaseEntity {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 主键id */ /** 主键id */

View File

@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 新购验收编号管理对象 purchase_macode_info * 新购验收编号管理对象 purchase_macode_info
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Data @Data
@ToString @ToString
public class PurchaseMacodeInfo extends BaseEntity public class PurchaseMacodeInfo extends BaseEntity {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 主键id */ /** 主键id */

View File

@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 新购短信通知人员对象 purchase_notice_person * 新购短信通知人员对象 purchase_notice_person
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Data @Data
@ToString @ToString
public class PurchaseNoticePerson extends BaseEntity public class PurchaseNoticePerson extends BaseEntity {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 主键id */ /** 主键id */

View File

@ -13,14 +13,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 新购配件验收任务详细对象 purchase_part_details * 新购配件验收任务详细对象 purchase_part_details
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Data @Data
@ToString @ToString
public class PurchasePartDetails extends BaseEntity public class PurchasePartDetails extends BaseEntity {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** ID */ /** ID */

View File

@ -12,14 +12,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
* 新购配件验收任务对象 purchase_part_info * 新购配件验收任务对象 purchase_part_info
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Data @Data
@ToString @ToString
public class PurchasePartInfo extends BaseEntity public class PurchasePartInfo extends BaseEntity {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** ID */ /** ID */

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseCheckDetails;
* 新购验收任务详细Mapper接口 * 新购验收任务详细Mapper接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface PurchaseCheckDetailsMapper public interface PurchaseCheckDetailsMapper {
{
/** /**
* 查询新购验收任务详细 * 查询新购验收任务详细
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseCheckInfo;
* 新购验收任务Mapper接口 * 新购验收任务Mapper接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface PurchaseCheckInfoMapper public interface PurchaseCheckInfoMapper {
{
/** /**
* 查询新购验收任务 * 查询新购验收任务
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseMacodeInfo;
* 新购验收编号管理Mapper接口 * 新购验收编号管理Mapper接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface PurchaseMacodeInfoMapper public interface PurchaseMacodeInfoMapper {
{
/** /**
* 查询新购验收编号管理 * 查询新购验收编号管理
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseNoticePerson;
* 新购短信通知人员Mapper接口 * 新购短信通知人员Mapper接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface PurchaseNoticePersonMapper public interface PurchaseNoticePersonMapper {
{
/** /**
* 查询新购短信通知人员 * 查询新购短信通知人员
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchasePartDetails;
* 新购配件验收任务详细Mapper接口 * 新购配件验收任务详细Mapper接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface PurchasePartDetailsMapper public interface PurchasePartDetailsMapper {
{
/** /**
* 查询新购配件验收任务详细 * 查询新购配件验收任务详细
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchasePartInfo;
* 新购配件验收任务Mapper接口 * 新购配件验收任务Mapper接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface PurchasePartInfoMapper public interface PurchasePartInfoMapper {
{
/** /**
* 查询新购配件验收任务 * 查询新购配件验收任务
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseCheckDetails;
* 新购验收任务详细Service接口 * 新购验收任务详细Service接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface IPurchaseCheckDetailsService public interface IPurchaseCheckDetailsService {
{
/** /**
* 查询新购验收任务详细 * 查询新购验收任务详细
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseCheckInfo;
* 新购验收任务Service接口 * 新购验收任务Service接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface IPurchaseCheckInfoService public interface IPurchaseCheckInfoService {
{
/** /**
* 查询新购验收任务 * 查询新购验收任务
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseMacodeInfo;
* 新购验收编号管理Service接口 * 新购验收编号管理Service接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface IPurchaseMacodeInfoService public interface IPurchaseMacodeInfoService {
{
/** /**
* 查询新购验收编号管理 * 查询新购验收编号管理
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchaseNoticePerson;
* 新购短信通知人员Service接口 * 新购短信通知人员Service接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface IPurchaseNoticePersonService public interface IPurchaseNoticePersonService {
{
/** /**
* 查询新购短信通知人员 * 查询新购短信通知人员
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchasePartDetails;
* 新购配件验收任务详细Service接口 * 新购配件验收任务详细Service接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface IPurchasePartDetailsService public interface IPurchasePartDetailsService {
{
/** /**
* 查询新购配件验收任务详细 * 查询新购配件验收任务详细
* *

View File

@ -7,10 +7,9 @@ import com.bonus.material.purchase.domain.PurchasePartInfo;
* 新购配件验收任务Service接口 * 新购配件验收任务Service接口
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
public interface IPurchasePartInfoService public interface IPurchasePartInfoService {
{
/** /**
* 查询新购配件验收任务 * 查询新购配件验收任务
* *

View File

@ -1,6 +1,7 @@
package com.bonus.material.purchase.service.impl; package com.bonus.material.purchase.service.impl;
import java.util.List; import java.util.List;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils; import com.bonus.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -12,11 +13,10 @@ import com.bonus.material.purchase.service.IPurchaseCheckDetailsService;
* 新购验收任务详细Service业务层处理 * 新购验收任务详细Service业务层处理
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Service @Service
public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsService public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsService {
{
@Autowired @Autowired
private PurchaseCheckDetailsMapper purchaseCheckDetailsMapper; private PurchaseCheckDetailsMapper purchaseCheckDetailsMapper;
@ -27,8 +27,7 @@ public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsSer
* @return 新购验收任务详细 * @return 新购验收任务详细
*/ */
@Override @Override
public PurchaseCheckDetails selectPurchaseCheckDetailsById(Long id) public PurchaseCheckDetails selectPurchaseCheckDetailsById(Long id) {
{
return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsById(id); return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsById(id);
} }
@ -39,8 +38,7 @@ public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsSer
* @return 新购验收任务详细 * @return 新购验收任务详细
*/ */
@Override @Override
public List<PurchaseCheckDetails> selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails) public List<PurchaseCheckDetails> selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails) {
{
return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsList(purchaseCheckDetails); return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsList(purchaseCheckDetails);
} }
@ -51,10 +49,13 @@ public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails) public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails) {
{
purchaseCheckDetails.setCreateTime(DateUtils.getNowDate()); purchaseCheckDetails.setCreateTime(DateUtils.getNowDate());
return purchaseCheckDetailsMapper.insertPurchaseCheckDetails(purchaseCheckDetails); try {
return purchaseCheckDetailsMapper.insertPurchaseCheckDetails(purchaseCheckDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -64,10 +65,13 @@ public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails) public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails) {
{
purchaseCheckDetails.setUpdateTime(DateUtils.getNowDate()); purchaseCheckDetails.setUpdateTime(DateUtils.getNowDate());
return purchaseCheckDetailsMapper.updatePurchaseCheckDetails(purchaseCheckDetails); try {
return purchaseCheckDetailsMapper.updatePurchaseCheckDetails(purchaseCheckDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -77,8 +81,7 @@ public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseCheckDetailsByIds(Long[] ids) public int deletePurchaseCheckDetailsByIds(Long[] ids) {
{
return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsByIds(ids); return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsByIds(ids);
} }
@ -89,8 +92,7 @@ public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseCheckDetailsById(Long id) public int deletePurchaseCheckDetailsById(Long id) {
{
return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsById(id); return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsById(id);
} }
} }

View File

@ -1,6 +1,7 @@
package com.bonus.material.purchase.service.impl; package com.bonus.material.purchase.service.impl;
import java.util.List; import java.util.List;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils; import com.bonus.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -12,11 +13,10 @@ import com.bonus.material.purchase.service.IPurchaseCheckInfoService;
* 新购验收任务Service业务层处理 * 新购验收任务Service业务层处理
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Service @Service
public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService {
{
@Autowired @Autowired
private PurchaseCheckInfoMapper purchaseCheckInfoMapper; private PurchaseCheckInfoMapper purchaseCheckInfoMapper;
@ -27,8 +27,7 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService
* @return 新购验收任务 * @return 新购验收任务
*/ */
@Override @Override
public PurchaseCheckInfo selectPurchaseCheckInfoById(Long id) public PurchaseCheckInfo selectPurchaseCheckInfoById(Long id) {
{
return purchaseCheckInfoMapper.selectPurchaseCheckInfoById(id); return purchaseCheckInfoMapper.selectPurchaseCheckInfoById(id);
} }
@ -39,8 +38,7 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService
* @return 新购验收任务 * @return 新购验收任务
*/ */
@Override @Override
public List<PurchaseCheckInfo> selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo) public List<PurchaseCheckInfo> selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo) {
{
return purchaseCheckInfoMapper.selectPurchaseCheckInfoList(purchaseCheckInfo); return purchaseCheckInfoMapper.selectPurchaseCheckInfoList(purchaseCheckInfo);
} }
@ -51,10 +49,13 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo) public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo) {
{
purchaseCheckInfo.setCreateTime(DateUtils.getNowDate()); purchaseCheckInfo.setCreateTime(DateUtils.getNowDate());
return purchaseCheckInfoMapper.insertPurchaseCheckInfo(purchaseCheckInfo); try {
return purchaseCheckInfoMapper.insertPurchaseCheckInfo(purchaseCheckInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -64,10 +65,13 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo) public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo) {
{
purchaseCheckInfo.setUpdateTime(DateUtils.getNowDate()); purchaseCheckInfo.setUpdateTime(DateUtils.getNowDate());
return purchaseCheckInfoMapper.updatePurchaseCheckInfo(purchaseCheckInfo); try {
return purchaseCheckInfoMapper.updatePurchaseCheckInfo(purchaseCheckInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -77,8 +81,7 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseCheckInfoByIds(Long[] ids) public int deletePurchaseCheckInfoByIds(Long[] ids) {
{
return purchaseCheckInfoMapper.deletePurchaseCheckInfoByIds(ids); return purchaseCheckInfoMapper.deletePurchaseCheckInfoByIds(ids);
} }
@ -89,8 +92,7 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseCheckInfoById(Long id) public int deletePurchaseCheckInfoById(Long id) {
{
return purchaseCheckInfoMapper.deletePurchaseCheckInfoById(id); return purchaseCheckInfoMapper.deletePurchaseCheckInfoById(id);
} }
} }

View File

@ -1,6 +1,7 @@
package com.bonus.material.purchase.service.impl; package com.bonus.material.purchase.service.impl;
import java.util.List; import java.util.List;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils; import com.bonus.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -12,11 +13,10 @@ import com.bonus.material.purchase.service.IPurchaseMacodeInfoService;
* 新购验收编号管理Service业务层处理 * 新购验收编号管理Service业务层处理
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Service @Service
public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService {
{
@Autowired @Autowired
private PurchaseMacodeInfoMapper purchaseMacodeInfoMapper; private PurchaseMacodeInfoMapper purchaseMacodeInfoMapper;
@ -27,8 +27,7 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
* @return 新购验收编号管理 * @return 新购验收编号管理
*/ */
@Override @Override
public PurchaseMacodeInfo selectPurchaseMacodeInfoById(Long id) public PurchaseMacodeInfo selectPurchaseMacodeInfoById(Long id) {
{
return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoById(id); return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoById(id);
} }
@ -39,8 +38,7 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
* @return 新购验收编号管理 * @return 新购验收编号管理
*/ */
@Override @Override
public List<PurchaseMacodeInfo> selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo) public List<PurchaseMacodeInfo> selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo) {
{
return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoList(purchaseMacodeInfo); return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoList(purchaseMacodeInfo);
} }
@ -51,10 +49,13 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo) public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo) {
{
purchaseMacodeInfo.setCreateTime(DateUtils.getNowDate()); purchaseMacodeInfo.setCreateTime(DateUtils.getNowDate());
return purchaseMacodeInfoMapper.insertPurchaseMacodeInfo(purchaseMacodeInfo); try {
return purchaseMacodeInfoMapper.insertPurchaseMacodeInfo(purchaseMacodeInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -64,10 +65,13 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo) public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo) {
{
purchaseMacodeInfo.setUpdateTime(DateUtils.getNowDate()); purchaseMacodeInfo.setUpdateTime(DateUtils.getNowDate());
return purchaseMacodeInfoMapper.updatePurchaseMacodeInfo(purchaseMacodeInfo); try {
return purchaseMacodeInfoMapper.updatePurchaseMacodeInfo(purchaseMacodeInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -77,8 +81,7 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseMacodeInfoByIds(Long[] ids) public int deletePurchaseMacodeInfoByIds(Long[] ids) {
{
return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoByIds(ids); return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoByIds(ids);
} }
@ -89,8 +92,7 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseMacodeInfoById(Long id) public int deletePurchaseMacodeInfoById(Long id) {
{
return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoById(id); return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoById(id);
} }
} }

View File

@ -1,6 +1,7 @@
package com.bonus.material.purchase.service.impl; package com.bonus.material.purchase.service.impl;
import java.util.List; import java.util.List;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils; import com.bonus.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -12,11 +13,10 @@ import com.bonus.material.purchase.service.IPurchaseNoticePersonService;
* 新购短信通知人员Service业务层处理 * 新购短信通知人员Service业务层处理
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Service @Service
public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonService public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonService {
{
@Autowired @Autowired
private PurchaseNoticePersonMapper purchaseNoticePersonMapper; private PurchaseNoticePersonMapper purchaseNoticePersonMapper;
@ -27,8 +27,7 @@ public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonSer
* @return 新购短信通知人员 * @return 新购短信通知人员
*/ */
@Override @Override
public PurchaseNoticePerson selectPurchaseNoticePersonById(Long id) public PurchaseNoticePerson selectPurchaseNoticePersonById(Long id) {
{
return purchaseNoticePersonMapper.selectPurchaseNoticePersonById(id); return purchaseNoticePersonMapper.selectPurchaseNoticePersonById(id);
} }
@ -39,8 +38,7 @@ public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonSer
* @return 新购短信通知人员 * @return 新购短信通知人员
*/ */
@Override @Override
public List<PurchaseNoticePerson> selectPurchaseNoticePersonList(PurchaseNoticePerson purchaseNoticePerson) public List<PurchaseNoticePerson> selectPurchaseNoticePersonList(PurchaseNoticePerson purchaseNoticePerson) {
{
return purchaseNoticePersonMapper.selectPurchaseNoticePersonList(purchaseNoticePerson); return purchaseNoticePersonMapper.selectPurchaseNoticePersonList(purchaseNoticePerson);
} }
@ -51,10 +49,13 @@ public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertPurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson) public int insertPurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson) {
{
purchaseNoticePerson.setCreateTime(DateUtils.getNowDate()); purchaseNoticePerson.setCreateTime(DateUtils.getNowDate());
return purchaseNoticePersonMapper.insertPurchaseNoticePerson(purchaseNoticePerson); try {
return purchaseNoticePersonMapper.insertPurchaseNoticePerson(purchaseNoticePerson);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -64,10 +65,13 @@ public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updatePurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson) public int updatePurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson) {
{
purchaseNoticePerson.setUpdateTime(DateUtils.getNowDate()); purchaseNoticePerson.setUpdateTime(DateUtils.getNowDate());
return purchaseNoticePersonMapper.updatePurchaseNoticePerson(purchaseNoticePerson); try {
return purchaseNoticePersonMapper.updatePurchaseNoticePerson(purchaseNoticePerson);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -77,8 +81,7 @@ public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseNoticePersonByIds(Long[] ids) public int deletePurchaseNoticePersonByIds(Long[] ids) {
{
return purchaseNoticePersonMapper.deletePurchaseNoticePersonByIds(ids); return purchaseNoticePersonMapper.deletePurchaseNoticePersonByIds(ids);
} }
@ -89,8 +92,7 @@ public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonSer
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchaseNoticePersonById(Long id) public int deletePurchaseNoticePersonById(Long id) {
{
return purchaseNoticePersonMapper.deletePurchaseNoticePersonById(id); return purchaseNoticePersonMapper.deletePurchaseNoticePersonById(id);
} }
} }

View File

@ -1,6 +1,7 @@
package com.bonus.material.purchase.service.impl; package com.bonus.material.purchase.service.impl;
import java.util.List; import java.util.List;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils; import com.bonus.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -12,11 +13,10 @@ import com.bonus.material.purchase.service.IPurchasePartDetailsService;
* 新购配件验收任务详细Service业务层处理 * 新购配件验收任务详细Service业务层处理
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Service @Service
public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsService public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsService {
{
@Autowired @Autowired
private PurchasePartDetailsMapper purchasePartDetailsMapper; private PurchasePartDetailsMapper purchasePartDetailsMapper;
@ -27,8 +27,7 @@ public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsServi
* @return 新购配件验收任务详细 * @return 新购配件验收任务详细
*/ */
@Override @Override
public PurchasePartDetails selectPurchasePartDetailsById(Long id) public PurchasePartDetails selectPurchasePartDetailsById(Long id) {
{
return purchasePartDetailsMapper.selectPurchasePartDetailsById(id); return purchasePartDetailsMapper.selectPurchasePartDetailsById(id);
} }
@ -39,8 +38,7 @@ public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsServi
* @return 新购配件验收任务详细 * @return 新购配件验收任务详细
*/ */
@Override @Override
public List<PurchasePartDetails> selectPurchasePartDetailsList(PurchasePartDetails purchasePartDetails) public List<PurchasePartDetails> selectPurchasePartDetailsList(PurchasePartDetails purchasePartDetails) {
{
return purchasePartDetailsMapper.selectPurchasePartDetailsList(purchasePartDetails); return purchasePartDetailsMapper.selectPurchasePartDetailsList(purchasePartDetails);
} }
@ -51,10 +49,13 @@ public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsServi
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertPurchasePartDetails(PurchasePartDetails purchasePartDetails) public int insertPurchasePartDetails(PurchasePartDetails purchasePartDetails) {
{
purchasePartDetails.setCreateTime(DateUtils.getNowDate()); purchasePartDetails.setCreateTime(DateUtils.getNowDate());
return purchasePartDetailsMapper.insertPurchasePartDetails(purchasePartDetails); try {
return purchasePartDetailsMapper.insertPurchasePartDetails(purchasePartDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -64,10 +65,13 @@ public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsServi
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updatePurchasePartDetails(PurchasePartDetails purchasePartDetails) public int updatePurchasePartDetails(PurchasePartDetails purchasePartDetails) {
{
purchasePartDetails.setUpdateTime(DateUtils.getNowDate()); purchasePartDetails.setUpdateTime(DateUtils.getNowDate());
return purchasePartDetailsMapper.updatePurchasePartDetails(purchasePartDetails); try {
return purchasePartDetailsMapper.updatePurchasePartDetails(purchasePartDetails);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -77,8 +81,7 @@ public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsServi
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchasePartDetailsByIds(Long[] ids) public int deletePurchasePartDetailsByIds(Long[] ids) {
{
return purchasePartDetailsMapper.deletePurchasePartDetailsByIds(ids); return purchasePartDetailsMapper.deletePurchasePartDetailsByIds(ids);
} }
@ -89,8 +92,7 @@ public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsServi
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchasePartDetailsById(Long id) public int deletePurchasePartDetailsById(Long id) {
{
return purchasePartDetailsMapper.deletePurchasePartDetailsById(id); return purchasePartDetailsMapper.deletePurchasePartDetailsById(id);
} }
} }

View File

@ -1,6 +1,7 @@
package com.bonus.material.purchase.service.impl; package com.bonus.material.purchase.service.impl;
import java.util.List; import java.util.List;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils; import com.bonus.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -12,11 +13,10 @@ import com.bonus.material.purchase.service.IPurchasePartInfoService;
* 新购配件验收任务Service业务层处理 * 新购配件验收任务Service业务层处理
* *
* @author xsheng * @author xsheng
* @date 2024-09-27 * @date 2024-10-16
*/ */
@Service @Service
public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService {
{
@Autowired @Autowired
private PurchasePartInfoMapper purchasePartInfoMapper; private PurchasePartInfoMapper purchasePartInfoMapper;
@ -27,8 +27,7 @@ public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService
* @return 新购配件验收任务 * @return 新购配件验收任务
*/ */
@Override @Override
public PurchasePartInfo selectPurchasePartInfoByID(Long ID) public PurchasePartInfo selectPurchasePartInfoByID(Long ID) {
{
return purchasePartInfoMapper.selectPurchasePartInfoByID(ID); return purchasePartInfoMapper.selectPurchasePartInfoByID(ID);
} }
@ -39,8 +38,7 @@ public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService
* @return 新购配件验收任务 * @return 新购配件验收任务
*/ */
@Override @Override
public List<PurchasePartInfo> selectPurchasePartInfoList(PurchasePartInfo purchasePartInfo) public List<PurchasePartInfo> selectPurchasePartInfoList(PurchasePartInfo purchasePartInfo) {
{
return purchasePartInfoMapper.selectPurchasePartInfoList(purchasePartInfo); return purchasePartInfoMapper.selectPurchasePartInfoList(purchasePartInfo);
} }
@ -51,10 +49,13 @@ public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertPurchasePartInfo(PurchasePartInfo purchasePartInfo) public int insertPurchasePartInfo(PurchasePartInfo purchasePartInfo) {
{
purchasePartInfo.setCreateTime(DateUtils.getNowDate()); purchasePartInfo.setCreateTime(DateUtils.getNowDate());
return purchasePartInfoMapper.insertPurchasePartInfo(purchasePartInfo); try {
return purchasePartInfoMapper.insertPurchasePartInfo(purchasePartInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -64,10 +65,13 @@ public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updatePurchasePartInfo(PurchasePartInfo purchasePartInfo) public int updatePurchasePartInfo(PurchasePartInfo purchasePartInfo) {
{
purchasePartInfo.setUpdateTime(DateUtils.getNowDate()); purchasePartInfo.setUpdateTime(DateUtils.getNowDate());
return purchasePartInfoMapper.updatePurchasePartInfo(purchasePartInfo); try {
return purchasePartInfoMapper.updatePurchasePartInfo(purchasePartInfo);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
}
} }
/** /**
@ -77,8 +81,7 @@ public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchasePartInfoByIDs(Long[] IDs) public int deletePurchasePartInfoByIDs(Long[] IDs) {
{
return purchasePartInfoMapper.deletePurchasePartInfoByIDs(IDs); return purchasePartInfoMapper.deletePurchasePartInfoByIDs(IDs);
} }
@ -89,8 +92,7 @@ public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deletePurchasePartInfoByID(Long ID) public int deletePurchasePartInfoByID(Long ID) {
{
return purchasePartInfoMapper.deletePurchasePartInfoByID(ID); return purchasePartInfoMapper.deletePurchasePartInfoByID(ID);
} }
} }