diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseCheckDetailsController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseCheckDetailsController.java new file mode 100644 index 00000000..224de7d8 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseCheckDetailsController.java @@ -0,0 +1,118 @@ +package com.bonus.material.purchase.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import com.bonus.common.log.enums.OperaType; +import com.bonus.material.common.annotation.PreventRepeatSubmit; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.bonus.common.log.annotation.SysLog; +import com.bonus.common.security.annotation.RequiresPermissions; +import com.bonus.material.purchase.domain.PurchaseCheckDetails; +import com.bonus.material.purchase.service.IPurchaseCheckDetailsService; +import com.bonus.common.core.web.controller.BaseController; +import com.bonus.common.core.web.domain.AjaxResult; +import com.bonus.common.core.utils.poi.ExcelUtil; +import com.bonus.common.core.web.page.TableDataInfo; + +/** + * 新购验收任务详细Controller + * + * @author xsheng + * @date 2024-09-27 + */ +@Api(tags = "新购验收任务详细接口") +@RestController +@RequestMapping("/purchase_check_details") +public class PurchaseCheckDetailsController extends BaseController +{ + @Autowired + private IPurchaseCheckDetailsService purchaseCheckDetailsService; + + /** + * 查询新购验收任务详细列表 + */ + @ApiOperation(value = "查询新购验收任务详细列表") + @RequiresPermissions("purchase:details:list") + @GetMapping("/list") + public TableDataInfo list(PurchaseCheckDetails purchaseCheckDetails) + { + startPage(); + List list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails); + return getDataTable(list); + } + + /** + * 导出新购验收任务详细列表 + */ + @ApiOperation(value = "导出新购验收任务详细列表") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:export") + @SysLog(title = "新购验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收任务详细") + @PostMapping("/export") + public void export(HttpServletResponse response, PurchaseCheckDetails purchaseCheckDetails) + { + List list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails); + ExcelUtil util = new ExcelUtil(PurchaseCheckDetails.class); + util.exportExcel(response, list, "新购验收任务详细数据"); + } + + /** + * 获取新购验收任务详细详细信息 + */ + @ApiOperation(value = "获取新购验收任务详细详细信息") + @RequiresPermissions("purchase:details:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(purchaseCheckDetailsService.selectPurchaseCheckDetailsById(id)); + } + + /** + * 新增新购验收任务详细 + */ + @ApiOperation(value = "新增新购验收任务详细") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:add") + @SysLog(title = "新购验收任务详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收任务详细") + @PostMapping + public AjaxResult add(@RequestBody PurchaseCheckDetails purchaseCheckDetails) + { + return toAjax(purchaseCheckDetailsService.insertPurchaseCheckDetails(purchaseCheckDetails)); + } + + /** + * 修改新购验收任务详细 + */ + @ApiOperation(value = "修改新购验收任务详细") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:edit") + @SysLog(title = "新购验收任务详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收任务详细") + @PutMapping + public AjaxResult edit(@RequestBody PurchaseCheckDetails purchaseCheckDetails) + { + return toAjax(purchaseCheckDetailsService.updatePurchaseCheckDetails(purchaseCheckDetails)); + } + + /** + * 删除新购验收任务详细 + */ + @ApiOperation(value = "删除新购验收任务详细") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:remove") + @SysLog(title = "新购验收任务详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收任务详细") + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(purchaseCheckDetailsService.deletePurchaseCheckDetailsByIds(ids)); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseCheckInfoController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseCheckInfoController.java new file mode 100644 index 00000000..ccff5ca6 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseCheckInfoController.java @@ -0,0 +1,118 @@ +package com.bonus.material.purchase.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import com.bonus.common.log.enums.OperaType; +import com.bonus.material.common.annotation.PreventRepeatSubmit; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.bonus.common.log.annotation.SysLog; +import com.bonus.common.security.annotation.RequiresPermissions; +import com.bonus.material.purchase.domain.PurchaseCheckInfo; +import com.bonus.material.purchase.service.IPurchaseCheckInfoService; +import com.bonus.common.core.web.controller.BaseController; +import com.bonus.common.core.web.domain.AjaxResult; +import com.bonus.common.core.utils.poi.ExcelUtil; +import com.bonus.common.core.web.page.TableDataInfo; + +/** + * 新购验收任务Controller + * + * @author xsheng + * @date 2024-09-27 + */ +@Api(tags = "新购验收任务接口") +@RestController +@RequestMapping("/purchase_check_info") +public class PurchaseCheckInfoController extends BaseController +{ + @Autowired + private IPurchaseCheckInfoService purchaseCheckInfoService; + + /** + * 查询新购验收任务列表 + */ + @ApiOperation(value = "查询新购验收任务列表") + @RequiresPermissions("purchase:info:list") + @GetMapping("/list") + public TableDataInfo list(PurchaseCheckInfo purchaseCheckInfo) + { + startPage(); + List list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo); + return getDataTable(list); + } + + /** + * 导出新购验收任务列表 + */ + @ApiOperation(value = "导出新购验收任务列表") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:export") + @SysLog(title = "新购验收任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收任务") + @PostMapping("/export") + public void export(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo) + { + List list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo); + ExcelUtil util = new ExcelUtil(PurchaseCheckInfo.class); + util.exportExcel(response, list, "新购验收任务数据"); + } + + /** + * 获取新购验收任务详细信息 + */ + @ApiOperation(value = "获取新购验收任务详细信息") + @RequiresPermissions("purchase:info:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(purchaseCheckInfoService.selectPurchaseCheckInfoById(id)); + } + + /** + * 新增新购验收任务 + */ + @ApiOperation(value = "新增新购验收任务") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:add") + @SysLog(title = "新购验收任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收任务") + @PostMapping + public AjaxResult add(@RequestBody PurchaseCheckInfo purchaseCheckInfo) + { + return toAjax(purchaseCheckInfoService.insertPurchaseCheckInfo(purchaseCheckInfo)); + } + + /** + * 修改新购验收任务 + */ + @ApiOperation(value = "修改新购验收任务") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:edit") + @SysLog(title = "新购验收任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收任务") + @PutMapping + public AjaxResult edit(@RequestBody PurchaseCheckInfo purchaseCheckInfo) + { + return toAjax(purchaseCheckInfoService.updatePurchaseCheckInfo(purchaseCheckInfo)); + } + + /** + * 删除新购验收任务 + */ + @ApiOperation(value = "删除新购验收任务") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:remove") + @SysLog(title = "新购验收任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收任务") + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(purchaseCheckInfoService.deletePurchaseCheckInfoByIds(ids)); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseMacodeInfoController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseMacodeInfoController.java new file mode 100644 index 00000000..1f5f452e --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseMacodeInfoController.java @@ -0,0 +1,118 @@ +package com.bonus.material.purchase.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import com.bonus.common.log.enums.OperaType; +import com.bonus.material.common.annotation.PreventRepeatSubmit; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.bonus.common.log.annotation.SysLog; +import com.bonus.common.security.annotation.RequiresPermissions; +import com.bonus.material.purchase.domain.PurchaseMacodeInfo; +import com.bonus.material.purchase.service.IPurchaseMacodeInfoService; +import com.bonus.common.core.web.controller.BaseController; +import com.bonus.common.core.web.domain.AjaxResult; +import com.bonus.common.core.utils.poi.ExcelUtil; +import com.bonus.common.core.web.page.TableDataInfo; + +/** + * 新购验收编号管理Controller + * + * @author xsheng + * @date 2024-09-27 + */ +@Api(tags = "新购验收编号管理接口") +@RestController +@RequestMapping("/purchase_macode_info") +public class PurchaseMacodeInfoController extends BaseController +{ + @Autowired + private IPurchaseMacodeInfoService purchaseMacodeInfoService; + + /** + * 查询新购验收编号管理列表 + */ + @ApiOperation(value = "查询新购验收编号管理列表") + @RequiresPermissions("purchase:info:list") + @GetMapping("/list") + public TableDataInfo list(PurchaseMacodeInfo purchaseMacodeInfo) + { + startPage(); + List list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo); + return getDataTable(list); + } + + /** + * 导出新购验收编号管理列表 + */ + @ApiOperation(value = "导出新购验收编号管理列表") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:export") + @SysLog(title = "新购验收编号管理", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购验收编号管理") + @PostMapping("/export") + public void export(HttpServletResponse response, PurchaseMacodeInfo purchaseMacodeInfo) + { + List list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo); + ExcelUtil util = new ExcelUtil(PurchaseMacodeInfo.class); + util.exportExcel(response, list, "新购验收编号管理数据"); + } + + /** + * 获取新购验收编号管理详细信息 + */ + @ApiOperation(value = "获取新购验收编号管理详细信息") + @RequiresPermissions("purchase:info:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(purchaseMacodeInfoService.selectPurchaseMacodeInfoById(id)); + } + + /** + * 新增新购验收编号管理 + */ + @ApiOperation(value = "新增新购验收编号管理") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:add") + @SysLog(title = "新购验收编号管理", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购验收编号管理") + @PostMapping + public AjaxResult add(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo) + { + return toAjax(purchaseMacodeInfoService.insertPurchaseMacodeInfo(purchaseMacodeInfo)); + } + + /** + * 修改新购验收编号管理 + */ + @ApiOperation(value = "修改新购验收编号管理") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:edit") + @SysLog(title = "新购验收编号管理", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购验收编号管理") + @PutMapping + public AjaxResult edit(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo) + { + return toAjax(purchaseMacodeInfoService.updatePurchaseMacodeInfo(purchaseMacodeInfo)); + } + + /** + * 删除新购验收编号管理 + */ + @ApiOperation(value = "删除新购验收编号管理") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:remove") + @SysLog(title = "新购验收编号管理", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购验收编号管理") + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(purchaseMacodeInfoService.deletePurchaseMacodeInfoByIds(ids)); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseNoticePersonController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseNoticePersonController.java new file mode 100644 index 00000000..50726dff --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchaseNoticePersonController.java @@ -0,0 +1,118 @@ +package com.bonus.material.purchase.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import com.bonus.common.log.enums.OperaType; +import com.bonus.material.common.annotation.PreventRepeatSubmit; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.bonus.common.log.annotation.SysLog; +import com.bonus.common.security.annotation.RequiresPermissions; +import com.bonus.material.purchase.domain.PurchaseNoticePerson; +import com.bonus.material.purchase.service.IPurchaseNoticePersonService; +import com.bonus.common.core.web.controller.BaseController; +import com.bonus.common.core.web.domain.AjaxResult; +import com.bonus.common.core.utils.poi.ExcelUtil; +import com.bonus.common.core.web.page.TableDataInfo; + +/** + * 新购短信通知人员Controller + * + * @author xsheng + * @date 2024-09-27 + */ +@Api(tags = "新购短信通知人员接口") +@RestController +@RequestMapping("/purchase_notice_person") +public class PurchaseNoticePersonController extends BaseController +{ + @Autowired + private IPurchaseNoticePersonService purchaseNoticePersonService; + + /** + * 查询新购短信通知人员列表 + */ + @ApiOperation(value = "查询新购短信通知人员列表") + @RequiresPermissions("purchase:person:list") + @GetMapping("/list") + public TableDataInfo list(PurchaseNoticePerson purchaseNoticePerson) + { + startPage(); + List list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson); + return getDataTable(list); + } + + /** + * 导出新购短信通知人员列表 + */ + @ApiOperation(value = "导出新购短信通知人员列表") + @PreventRepeatSubmit + @RequiresPermissions("purchase:person:export") + @SysLog(title = "新购短信通知人员", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购短信通知人员") + @PostMapping("/export") + public void export(HttpServletResponse response, PurchaseNoticePerson purchaseNoticePerson) + { + List list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson); + ExcelUtil util = new ExcelUtil(PurchaseNoticePerson.class); + util.exportExcel(response, list, "新购短信通知人员数据"); + } + + /** + * 获取新购短信通知人员详细信息 + */ + @ApiOperation(value = "获取新购短信通知人员详细信息") + @RequiresPermissions("purchase:person:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(purchaseNoticePersonService.selectPurchaseNoticePersonById(id)); + } + + /** + * 新增新购短信通知人员 + */ + @ApiOperation(value = "新增新购短信通知人员") + @PreventRepeatSubmit + @RequiresPermissions("purchase:person:add") + @SysLog(title = "新购短信通知人员", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购短信通知人员") + @PostMapping + public AjaxResult add(@RequestBody PurchaseNoticePerson purchaseNoticePerson) + { + return toAjax(purchaseNoticePersonService.insertPurchaseNoticePerson(purchaseNoticePerson)); + } + + /** + * 修改新购短信通知人员 + */ + @ApiOperation(value = "修改新购短信通知人员") + @PreventRepeatSubmit + @RequiresPermissions("purchase:person:edit") + @SysLog(title = "新购短信通知人员", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购短信通知人员") + @PutMapping + public AjaxResult edit(@RequestBody PurchaseNoticePerson purchaseNoticePerson) + { + return toAjax(purchaseNoticePersonService.updatePurchaseNoticePerson(purchaseNoticePerson)); + } + + /** + * 删除新购短信通知人员 + */ + @ApiOperation(value = "删除新购短信通知人员") + @PreventRepeatSubmit + @RequiresPermissions("purchase:person:remove") + @SysLog(title = "新购短信通知人员", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购短信通知人员") + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(purchaseNoticePersonService.deletePurchaseNoticePersonByIds(ids)); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchasePartDetailsController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchasePartDetailsController.java new file mode 100644 index 00000000..cd5ed294 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchasePartDetailsController.java @@ -0,0 +1,118 @@ +package com.bonus.material.purchase.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import com.bonus.common.log.enums.OperaType; +import com.bonus.material.common.annotation.PreventRepeatSubmit; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.bonus.common.log.annotation.SysLog; +import com.bonus.common.security.annotation.RequiresPermissions; +import com.bonus.material.purchase.domain.PurchasePartDetails; +import com.bonus.material.purchase.service.IPurchasePartDetailsService; +import com.bonus.common.core.web.controller.BaseController; +import com.bonus.common.core.web.domain.AjaxResult; +import com.bonus.common.core.utils.poi.ExcelUtil; +import com.bonus.common.core.web.page.TableDataInfo; + +/** + * 新购配件验收任务详细Controller + * + * @author xsheng + * @date 2024-09-27 + */ +@Api(tags = "新购配件验收任务详细接口") +@RestController +@RequestMapping("/purchase_part_details") +public class PurchasePartDetailsController extends BaseController +{ + @Autowired + private IPurchasePartDetailsService purchasePartDetailsService; + + /** + * 查询新购配件验收任务详细列表 + */ + @ApiOperation(value = "查询新购配件验收任务详细列表") + @RequiresPermissions("purchase:details:list") + @GetMapping("/list") + public TableDataInfo list(PurchasePartDetails purchasePartDetails) + { + startPage(); + List list = purchasePartDetailsService.selectPurchasePartDetailsList(purchasePartDetails); + return getDataTable(list); + } + + /** + * 导出新购配件验收任务详细列表 + */ + @ApiOperation(value = "导出新购配件验收任务详细列表") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:export") + @SysLog(title = "新购配件验收任务详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购配件验收任务详细") + @PostMapping("/export") + public void export(HttpServletResponse response, PurchasePartDetails purchasePartDetails) + { + List list = purchasePartDetailsService.selectPurchasePartDetailsList(purchasePartDetails); + ExcelUtil util = new ExcelUtil(PurchasePartDetails.class); + util.exportExcel(response, list, "新购配件验收任务详细数据"); + } + + /** + * 获取新购配件验收任务详细详细信息 + */ + @ApiOperation(value = "获取新购配件验收任务详细详细信息") + @RequiresPermissions("purchase:details:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(purchasePartDetailsService.selectPurchasePartDetailsById(id)); + } + + /** + * 新增新购配件验收任务详细 + */ + @ApiOperation(value = "新增新购配件验收任务详细") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:add") + @SysLog(title = "新购配件验收任务详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购配件验收任务详细") + @PostMapping + public AjaxResult add(@RequestBody PurchasePartDetails purchasePartDetails) + { + return toAjax(purchasePartDetailsService.insertPurchasePartDetails(purchasePartDetails)); + } + + /** + * 修改新购配件验收任务详细 + */ + @ApiOperation(value = "修改新购配件验收任务详细") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:edit") + @SysLog(title = "新购配件验收任务详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购配件验收任务详细") + @PutMapping + public AjaxResult edit(@RequestBody PurchasePartDetails purchasePartDetails) + { + return toAjax(purchasePartDetailsService.updatePurchasePartDetails(purchasePartDetails)); + } + + /** + * 删除新购配件验收任务详细 + */ + @ApiOperation(value = "删除新购配件验收任务详细") + @PreventRepeatSubmit + @RequiresPermissions("purchase:details:remove") + @SysLog(title = "新购配件验收任务详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购配件验收任务详细") + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(purchasePartDetailsService.deletePurchasePartDetailsByIds(ids)); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchasePartInfoController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchasePartInfoController.java new file mode 100644 index 00000000..6265b666 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/controller/PurchasePartInfoController.java @@ -0,0 +1,118 @@ +package com.bonus.material.purchase.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import com.bonus.common.log.enums.OperaType; +import com.bonus.material.common.annotation.PreventRepeatSubmit; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.bonus.common.log.annotation.SysLog; +import com.bonus.common.security.annotation.RequiresPermissions; +import com.bonus.material.purchase.domain.PurchasePartInfo; +import com.bonus.material.purchase.service.IPurchasePartInfoService; +import com.bonus.common.core.web.controller.BaseController; +import com.bonus.common.core.web.domain.AjaxResult; +import com.bonus.common.core.utils.poi.ExcelUtil; +import com.bonus.common.core.web.page.TableDataInfo; + +/** + * 新购配件验收任务Controller + * + * @author xsheng + * @date 2024-09-27 + */ +@Api(tags = "新购配件验收任务接口") +@RestController +@RequestMapping("/purchase_part_info") +public class PurchasePartInfoController extends BaseController +{ + @Autowired + private IPurchasePartInfoService purchasePartInfoService; + + /** + * 查询新购配件验收任务列表 + */ + @ApiOperation(value = "查询新购配件验收任务列表") + @RequiresPermissions("purchase:info:list") + @GetMapping("/list") + public TableDataInfo list(PurchasePartInfo purchasePartInfo) + { + startPage(); + List list = purchasePartInfoService.selectPurchasePartInfoList(purchasePartInfo); + return getDataTable(list); + } + + /** + * 导出新购配件验收任务列表 + */ + @ApiOperation(value = "导出新购配件验收任务列表") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:export") + @SysLog(title = "新购配件验收任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出新购配件验收任务") + @PostMapping("/export") + public void export(HttpServletResponse response, PurchasePartInfo purchasePartInfo) + { + List list = purchasePartInfoService.selectPurchasePartInfoList(purchasePartInfo); + ExcelUtil util = new ExcelUtil(PurchasePartInfo.class); + util.exportExcel(response, list, "新购配件验收任务数据"); + } + + /** + * 获取新购配件验收任务详细信息 + */ + @ApiOperation(value = "获取新购配件验收任务详细信息") + @RequiresPermissions("purchase:info:query") + @GetMapping(value = "/{ID}") + public AjaxResult getInfo(@PathVariable("ID") Long ID) + { + return success(purchasePartInfoService.selectPurchasePartInfoByID(ID)); + } + + /** + * 新增新购配件验收任务 + */ + @ApiOperation(value = "新增新购配件验收任务") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:add") + @SysLog(title = "新购配件验收任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增新购配件验收任务") + @PostMapping + public AjaxResult add(@RequestBody PurchasePartInfo purchasePartInfo) + { + return toAjax(purchasePartInfoService.insertPurchasePartInfo(purchasePartInfo)); + } + + /** + * 修改新购配件验收任务 + */ + @ApiOperation(value = "修改新购配件验收任务") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:edit") + @SysLog(title = "新购配件验收任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改新购配件验收任务") + @PutMapping + public AjaxResult edit(@RequestBody PurchasePartInfo purchasePartInfo) + { + return toAjax(purchasePartInfoService.updatePurchasePartInfo(purchasePartInfo)); + } + + /** + * 删除新购配件验收任务 + */ + @ApiOperation(value = "删除新购配件验收任务") + @PreventRepeatSubmit + @RequiresPermissions("purchase:info:remove") + @SysLog(title = "新购配件验收任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除新购配件验收任务") + @DeleteMapping("/{IDs}") + public AjaxResult remove(@PathVariable Long[] IDs) + { + return toAjax(purchasePartInfoService.deletePurchasePartInfoByIDs(IDs)); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckDetails.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckDetails.java new file mode 100644 index 00000000..8c20347d --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckDetails.java @@ -0,0 +1,122 @@ +package com.bonus.material.purchase.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.bonus.common.core.annotation.Excel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.ToString; +import com.bonus.common.core.web.domain.BaseEntity; + +/** + * 新购验收任务详细对象 purchase_check_details + * + * @author xsheng + * @date 2024-09-27 + */ + + +@Data +@ToString +public class PurchaseCheckDetails extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键id */ + private Long id; + + /** 任务ID */ + @Excel(name = "任务ID") + @ApiModelProperty(value = "任务ID") + private Long taskId; + + /** 规格id */ + @Excel(name = "规格id") + @ApiModelProperty(value = "规格id") + private Long typeId; + + /** 采购单价 */ + @Excel(name = "采购单价") + @ApiModelProperty(value = "采购单价") + private BigDecimal purchasePrice; + + /** 采购数量 */ + @Excel(name = "采购数量") + @ApiModelProperty(value = "采购数量") + private Long purchaseNum; + + /** 验收数量 */ + @Excel(name = "验收数量") + @ApiModelProperty(value = "验收数量") + private Long checkNum; + + /** 绑定数量 */ + @Excel(name = "绑定数量") + @ApiModelProperty(value = "绑定数量") + private Long bindNum; + + /** 验收结论 */ + @Excel(name = "验收结论") + @ApiModelProperty(value = "验收结论") + private String checkResult; + + /** 供应商id */ + @Excel(name = "供应商id") + @ApiModelProperty(value = "供应商id") + private Long supplierId; + + /** 0-未验收,1-已验收,2-待通知,3-验收不通过,4-已入库,5-入库驳回,6-综合服务中心审核通过,7-综合服务中心不通过 */ + @Excel(name = "0-未验收,1-已验收,2-待通知,3-验收不通过,4-已入库,5-入库驳回,6-综合服务中心审核通过,7-综合服务中心不通过") + @ApiModelProperty(value = "0-未验收,1-已验收,2-待通知,3-验收不通过,4-已入库,5-入库驳回,6-综合服务中心审核通过,7-综合服务中心不通过") + private Long status; + + /** 出厂日期 */ + @ApiModelProperty(value = "出厂日期") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "出厂日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date productionTime; + + /** 验收图片 */ + @Excel(name = "验收图片") + @ApiModelProperty(value = "验收图片") + private String checkUrlName; + + /** 验收图片名称 */ + @Excel(name = "验收图片名称") + @ApiModelProperty(value = "验收图片名称") + private String checkUrl; + + /** 入库数量 */ + @Excel(name = "入库数量") + @ApiModelProperty(value = "入库数量") + private Long inputNum; + + /** 是否入库 */ + @Excel(name = "是否入库") + @ApiModelProperty(value = "是否入库") + private String inputStatus; + + /** 入库时间 */ + @ApiModelProperty(value = "入库时间") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date inputTime; + + /** 验收附件名称 */ + @Excel(name = "验收附件名称") + @ApiModelProperty(value = "验收附件名称") + private String fileName; + + /** 验收附件 */ + @Excel(name = "验收附件") + @ApiModelProperty(value = "验收附件") + private String fileUrl; + + /** 数据所属组织 */ + @Excel(name = "数据所属组织") + @ApiModelProperty(value = "数据所属组织") + private Long companyId; + + +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckInfo.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckInfo.java new file mode 100644 index 00000000..6ae3df35 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckInfo.java @@ -0,0 +1,56 @@ +package com.bonus.material.purchase.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.bonus.common.core.annotation.Excel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.ToString; +import com.bonus.common.core.web.domain.BaseEntity; + +/** + * 新购验收任务对象 purchase_check_info + * + * @author xsheng + * @date 2024-09-27 + */ + + +@Data +@ToString +public class PurchaseCheckInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键id */ + private Long id; + + /** 任务ID */ + @Excel(name = "任务ID") + @ApiModelProperty(value = "任务ID") + private Long taskId; + + /** 采购日期 */ + @ApiModelProperty(value = "采购日期") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date purchaseTime; + + /** 到货日期 */ + @ApiModelProperty(value = "到货日期") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "到货日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date arrivalTime; + + /** 采购员 */ + @Excel(name = "采购员") + @ApiModelProperty(value = "采购员") + private Long purchaser; + + /** 数据所属组织 */ + @Excel(name = "数据所属组织") + @ApiModelProperty(value = "数据所属组织") + private Long companyId; + + +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseMacodeInfo.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseMacodeInfo.java new file mode 100644 index 00000000..658a61e9 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseMacodeInfo.java @@ -0,0 +1,66 @@ +package com.bonus.material.purchase.domain; + +import com.bonus.common.core.annotation.Excel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.ToString; +import com.bonus.common.core.web.domain.BaseEntity; + +/** + * 新购验收编号管理对象 purchase_macode_info + * + * @author xsheng + * @date 2024-09-27 + */ + + +@Data +@ToString +public class PurchaseMacodeInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键id */ + private Long id; + + /** 任务ID */ + @Excel(name = "任务ID") + @ApiModelProperty(value = "任务ID") + private Long taskId; + + /** 类型ID */ + @Excel(name = "类型ID") + @ApiModelProperty(value = "类型ID") + private Long typeId; + + /** 机具编号 */ + @Excel(name = "机具编号") + @ApiModelProperty(value = "机具编号") + private String maCode; + + /** 二维码 */ + @Excel(name = "二维码") + @ApiModelProperty(value = "二维码") + private String qrCode; + + /** 是否是固定资产编号(0,是 1,否) */ + @Excel(name = "是否是固定资产编号(0,是 1,否)") + @ApiModelProperty(value = "是否是固定资产编号(0,是 1,否)") + private String fixCode; + + /** 编号类型 */ + @Excel(name = "编号类型") + @ApiModelProperty(value = "编号类型") + private String codeType; + + /** 状态(0,待入库 1,已入库) */ + @Excel(name = "状态", readConverterExp = "0=,待入库,1=,已入库") + private String status; + + /** 数据所属组织 */ + @Excel(name = "数据所属组织") + @ApiModelProperty(value = "数据所属组织") + private Long companyId; + + +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseNoticePerson.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseNoticePerson.java new file mode 100644 index 00000000..c851e7e0 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseNoticePerson.java @@ -0,0 +1,42 @@ +package com.bonus.material.purchase.domain; + +import com.bonus.common.core.annotation.Excel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.ToString; +import com.bonus.common.core.web.domain.BaseEntity; + +/** + * 新购短信通知人员对象 purchase_notice_person + * + * @author xsheng + * @date 2024-09-27 + */ + + +@Data +@ToString +public class PurchaseNoticePerson extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键id */ + private Long id; + + /** 用户id */ + @Excel(name = "用户id") + @ApiModelProperty(value = "用户id") + private Long userId; + + /** 用户名 */ + @Excel(name = "用户名") + @ApiModelProperty(value = "用户名") + private String userName; + + /** 联系电话 */ + @Excel(name = "联系电话") + @ApiModelProperty(value = "联系电话") + private String telphone; + + +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchasePartDetails.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchasePartDetails.java new file mode 100644 index 00000000..13834421 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchasePartDetails.java @@ -0,0 +1,102 @@ +package com.bonus.material.purchase.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.bonus.common.core.annotation.Excel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.ToString; +import com.bonus.common.core.web.domain.BaseEntity; + +/** + * 新购配件验收任务详细对象 purchase_part_details + * + * @author xsheng + * @date 2024-09-27 + */ + + +@Data +@ToString +public class PurchasePartDetails extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 任务ID */ + @Excel(name = "任务ID") + @ApiModelProperty(value = "任务ID") + private Long taskId; + + /** 配件id */ + @Excel(name = "配件id") + @ApiModelProperty(value = "配件id") + private Long partId; + + /** 采购单价 */ + @Excel(name = "采购单价") + @ApiModelProperty(value = "采购单价") + private BigDecimal purchasePrice; + + /** 采购数量 */ + @Excel(name = "采购数量") + @ApiModelProperty(value = "采购数量") + private Long purchaseNum; + + /** 供应商id */ + @Excel(name = "供应商id") + @ApiModelProperty(value = "供应商id") + private Long supplierId; + + /** 出厂日期 */ + @ApiModelProperty(value = "出厂日期") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "出厂日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date productionTime; + + /** 验收数量 */ + @Excel(name = "验收数量") + @ApiModelProperty(value = "验收数量") + private Long checkNum; + + /** 验收结论 */ + @Excel(name = "验收结论") + @ApiModelProperty(value = "验收结论") + private String checkResult; + + /** 入库数量 */ + @Excel(name = "入库数量") + @ApiModelProperty(value = "入库数量") + private Long inputNum; + + /** 入库时间 */ + @ApiModelProperty(value = "入库时间") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date inputTime; + + /** 附件 */ + @Excel(name = "附件") + @ApiModelProperty(value = "附件") + private String fileName; + + /** 附件路径 */ + @Excel(name = "附件路径") + @ApiModelProperty(value = "附件路径") + private String fileUrl; + + /** 数据所属组织 */ + @Excel(name = "数据所属组织") + @ApiModelProperty(value = "数据所属组织") + private Long companyId; + + /** 0待验收,1已验收 , 2,验收不通过 3,已入库 4,审核不通过 */ + @Excel(name = "0待验收,1已验收 , 2,验收不通过 3,已入库 4,审核不通过") + @ApiModelProperty(value = "0待验收,1已验收 , 2,验收不通过 3,已入库 4,审核不通过") + private Long status; + + +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchasePartInfo.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchasePartInfo.java new file mode 100644 index 00000000..9539b402 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchasePartInfo.java @@ -0,0 +1,56 @@ +package com.bonus.material.purchase.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.bonus.common.core.annotation.Excel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.ToString; +import com.bonus.common.core.web.domain.BaseEntity; + +/** + * 新购配件验收任务对象 purchase_part_info + * + * @author xsheng + * @date 2024-09-27 + */ + + +@Data +@ToString +public class PurchasePartInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long ID; + + /** 任务ID */ + @Excel(name = "任务ID") + @ApiModelProperty(value = "任务ID") + private Long taskId; + + /** 采购日期 */ + @ApiModelProperty(value = "采购日期") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date purchaseTime; + + /** 到货日期 */ + @ApiModelProperty(value = "到货日期") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "到货日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date arrivalTime; + + /** 采购员 */ + @Excel(name = "采购员") + @ApiModelProperty(value = "采购员") + private Long purchaser; + + /** 数据所属组织 */ + @Excel(name = "数据所属组织") + @ApiModelProperty(value = "数据所属组织") + private Long companyId; + + +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseCheckDetailsMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseCheckDetailsMapper.java new file mode 100644 index 00000000..1f232236 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseCheckDetailsMapper.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.mapper; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseCheckDetails; + +/** + * 新购验收任务详细Mapper接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface PurchaseCheckDetailsMapper +{ + /** + * 查询新购验收任务详细 + * + * @param id 新购验收任务详细主键 + * @return 新购验收任务详细 + */ + public PurchaseCheckDetails selectPurchaseCheckDetailsById(Long id); + + /** + * 查询新购验收任务详细列表 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 新购验收任务详细集合 + */ + public List selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails); + + /** + * 新增新购验收任务详细 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 结果 + */ + public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails); + + /** + * 修改新购验收任务详细 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 结果 + */ + public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails); + + /** + * 删除新购验收任务详细 + * + * @param id 新购验收任务详细主键 + * @return 结果 + */ + public int deletePurchaseCheckDetailsById(Long id); + + /** + * 批量删除新购验收任务详细 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePurchaseCheckDetailsByIds(Long[] ids); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseCheckInfoMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseCheckInfoMapper.java new file mode 100644 index 00000000..ae7440d3 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseCheckInfoMapper.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.mapper; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseCheckInfo; + +/** + * 新购验收任务Mapper接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface PurchaseCheckInfoMapper +{ + /** + * 查询新购验收任务 + * + * @param id 新购验收任务主键 + * @return 新购验收任务 + */ + public PurchaseCheckInfo selectPurchaseCheckInfoById(Long id); + + /** + * 查询新购验收任务列表 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 新购验收任务集合 + */ + public List selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo); + + /** + * 新增新购验收任务 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 结果 + */ + public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo); + + /** + * 修改新购验收任务 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 结果 + */ + public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo); + + /** + * 删除新购验收任务 + * + * @param id 新购验收任务主键 + * @return 结果 + */ + public int deletePurchaseCheckInfoById(Long id); + + /** + * 批量删除新购验收任务 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePurchaseCheckInfoByIds(Long[] ids); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseMacodeInfoMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseMacodeInfoMapper.java new file mode 100644 index 00000000..a2814a94 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseMacodeInfoMapper.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.mapper; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseMacodeInfo; + +/** + * 新购验收编号管理Mapper接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface PurchaseMacodeInfoMapper +{ + /** + * 查询新购验收编号管理 + * + * @param id 新购验收编号管理主键 + * @return 新购验收编号管理 + */ + public PurchaseMacodeInfo selectPurchaseMacodeInfoById(Long id); + + /** + * 查询新购验收编号管理列表 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 新购验收编号管理集合 + */ + public List selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo); + + /** + * 新增新购验收编号管理 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 结果 + */ + public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo); + + /** + * 修改新购验收编号管理 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 结果 + */ + public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo); + + /** + * 删除新购验收编号管理 + * + * @param id 新购验收编号管理主键 + * @return 结果 + */ + public int deletePurchaseMacodeInfoById(Long id); + + /** + * 批量删除新购验收编号管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePurchaseMacodeInfoByIds(Long[] ids); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseNoticePersonMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseNoticePersonMapper.java new file mode 100644 index 00000000..4e564089 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchaseNoticePersonMapper.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.mapper; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseNoticePerson; + +/** + * 新购短信通知人员Mapper接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface PurchaseNoticePersonMapper +{ + /** + * 查询新购短信通知人员 + * + * @param id 新购短信通知人员主键 + * @return 新购短信通知人员 + */ + public PurchaseNoticePerson selectPurchaseNoticePersonById(Long id); + + /** + * 查询新购短信通知人员列表 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 新购短信通知人员集合 + */ + public List selectPurchaseNoticePersonList(PurchaseNoticePerson purchaseNoticePerson); + + /** + * 新增新购短信通知人员 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 结果 + */ + public int insertPurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson); + + /** + * 修改新购短信通知人员 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 结果 + */ + public int updatePurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson); + + /** + * 删除新购短信通知人员 + * + * @param id 新购短信通知人员主键 + * @return 结果 + */ + public int deletePurchaseNoticePersonById(Long id); + + /** + * 批量删除新购短信通知人员 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePurchaseNoticePersonByIds(Long[] ids); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchasePartDetailsMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchasePartDetailsMapper.java new file mode 100644 index 00000000..6cd284cc --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchasePartDetailsMapper.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.mapper; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchasePartDetails; + +/** + * 新购配件验收任务详细Mapper接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface PurchasePartDetailsMapper +{ + /** + * 查询新购配件验收任务详细 + * + * @param id 新购配件验收任务详细主键 + * @return 新购配件验收任务详细 + */ + public PurchasePartDetails selectPurchasePartDetailsById(Long id); + + /** + * 查询新购配件验收任务详细列表 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 新购配件验收任务详细集合 + */ + public List selectPurchasePartDetailsList(PurchasePartDetails purchasePartDetails); + + /** + * 新增新购配件验收任务详细 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 结果 + */ + public int insertPurchasePartDetails(PurchasePartDetails purchasePartDetails); + + /** + * 修改新购配件验收任务详细 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 结果 + */ + public int updatePurchasePartDetails(PurchasePartDetails purchasePartDetails); + + /** + * 删除新购配件验收任务详细 + * + * @param id 新购配件验收任务详细主键 + * @return 结果 + */ + public int deletePurchasePartDetailsById(Long id); + + /** + * 批量删除新购配件验收任务详细 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePurchasePartDetailsByIds(Long[] ids); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchasePartInfoMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchasePartInfoMapper.java new file mode 100644 index 00000000..819a2e5d --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/mapper/PurchasePartInfoMapper.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.mapper; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchasePartInfo; + +/** + * 新购配件验收任务Mapper接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface PurchasePartInfoMapper +{ + /** + * 查询新购配件验收任务 + * + * @param ID 新购配件验收任务主键 + * @return 新购配件验收任务 + */ + public PurchasePartInfo selectPurchasePartInfoByID(Long ID); + + /** + * 查询新购配件验收任务列表 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 新购配件验收任务集合 + */ + public List selectPurchasePartInfoList(PurchasePartInfo purchasePartInfo); + + /** + * 新增新购配件验收任务 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 结果 + */ + public int insertPurchasePartInfo(PurchasePartInfo purchasePartInfo); + + /** + * 修改新购配件验收任务 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 结果 + */ + public int updatePurchasePartInfo(PurchasePartInfo purchasePartInfo); + + /** + * 删除新购配件验收任务 + * + * @param ID 新购配件验收任务主键 + * @return 结果 + */ + public int deletePurchasePartInfoByID(Long ID); + + /** + * 批量删除新购配件验收任务 + * + * @param IDs 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePurchasePartInfoByIDs(Long[] IDs); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseCheckDetailsService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseCheckDetailsService.java new file mode 100644 index 00000000..eb7a291b --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseCheckDetailsService.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.service; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseCheckDetails; + +/** + * 新购验收任务详细Service接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface IPurchaseCheckDetailsService +{ + /** + * 查询新购验收任务详细 + * + * @param id 新购验收任务详细主键 + * @return 新购验收任务详细 + */ + public PurchaseCheckDetails selectPurchaseCheckDetailsById(Long id); + + /** + * 查询新购验收任务详细列表 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 新购验收任务详细集合 + */ + public List selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails); + + /** + * 新增新购验收任务详细 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 结果 + */ + public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails); + + /** + * 修改新购验收任务详细 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 结果 + */ + public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails); + + /** + * 批量删除新购验收任务详细 + * + * @param ids 需要删除的新购验收任务详细主键集合 + * @return 结果 + */ + public int deletePurchaseCheckDetailsByIds(Long[] ids); + + /** + * 删除新购验收任务详细信息 + * + * @param id 新购验收任务详细主键 + * @return 结果 + */ + public int deletePurchaseCheckDetailsById(Long id); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseCheckInfoService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseCheckInfoService.java new file mode 100644 index 00000000..0be7d32c --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseCheckInfoService.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.service; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseCheckInfo; + +/** + * 新购验收任务Service接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface IPurchaseCheckInfoService +{ + /** + * 查询新购验收任务 + * + * @param id 新购验收任务主键 + * @return 新购验收任务 + */ + public PurchaseCheckInfo selectPurchaseCheckInfoById(Long id); + + /** + * 查询新购验收任务列表 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 新购验收任务集合 + */ + public List selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo); + + /** + * 新增新购验收任务 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 结果 + */ + public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo); + + /** + * 修改新购验收任务 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 结果 + */ + public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo); + + /** + * 批量删除新购验收任务 + * + * @param ids 需要删除的新购验收任务主键集合 + * @return 结果 + */ + public int deletePurchaseCheckInfoByIds(Long[] ids); + + /** + * 删除新购验收任务信息 + * + * @param id 新购验收任务主键 + * @return 结果 + */ + public int deletePurchaseCheckInfoById(Long id); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseMacodeInfoService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseMacodeInfoService.java new file mode 100644 index 00000000..5e21c527 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseMacodeInfoService.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.service; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseMacodeInfo; + +/** + * 新购验收编号管理Service接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface IPurchaseMacodeInfoService +{ + /** + * 查询新购验收编号管理 + * + * @param id 新购验收编号管理主键 + * @return 新购验收编号管理 + */ + public PurchaseMacodeInfo selectPurchaseMacodeInfoById(Long id); + + /** + * 查询新购验收编号管理列表 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 新购验收编号管理集合 + */ + public List selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo); + + /** + * 新增新购验收编号管理 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 结果 + */ + public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo); + + /** + * 修改新购验收编号管理 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 结果 + */ + public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo); + + /** + * 批量删除新购验收编号管理 + * + * @param ids 需要删除的新购验收编号管理主键集合 + * @return 结果 + */ + public int deletePurchaseMacodeInfoByIds(Long[] ids); + + /** + * 删除新购验收编号管理信息 + * + * @param id 新购验收编号管理主键 + * @return 结果 + */ + public int deletePurchaseMacodeInfoById(Long id); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseNoticePersonService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseNoticePersonService.java new file mode 100644 index 00000000..e1f56752 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchaseNoticePersonService.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.service; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchaseNoticePerson; + +/** + * 新购短信通知人员Service接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface IPurchaseNoticePersonService +{ + /** + * 查询新购短信通知人员 + * + * @param id 新购短信通知人员主键 + * @return 新购短信通知人员 + */ + public PurchaseNoticePerson selectPurchaseNoticePersonById(Long id); + + /** + * 查询新购短信通知人员列表 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 新购短信通知人员集合 + */ + public List selectPurchaseNoticePersonList(PurchaseNoticePerson purchaseNoticePerson); + + /** + * 新增新购短信通知人员 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 结果 + */ + public int insertPurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson); + + /** + * 修改新购短信通知人员 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 结果 + */ + public int updatePurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson); + + /** + * 批量删除新购短信通知人员 + * + * @param ids 需要删除的新购短信通知人员主键集合 + * @return 结果 + */ + public int deletePurchaseNoticePersonByIds(Long[] ids); + + /** + * 删除新购短信通知人员信息 + * + * @param id 新购短信通知人员主键 + * @return 结果 + */ + public int deletePurchaseNoticePersonById(Long id); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchasePartDetailsService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchasePartDetailsService.java new file mode 100644 index 00000000..2f80fe71 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchasePartDetailsService.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.service; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchasePartDetails; + +/** + * 新购配件验收任务详细Service接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface IPurchasePartDetailsService +{ + /** + * 查询新购配件验收任务详细 + * + * @param id 新购配件验收任务详细主键 + * @return 新购配件验收任务详细 + */ + public PurchasePartDetails selectPurchasePartDetailsById(Long id); + + /** + * 查询新购配件验收任务详细列表 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 新购配件验收任务详细集合 + */ + public List selectPurchasePartDetailsList(PurchasePartDetails purchasePartDetails); + + /** + * 新增新购配件验收任务详细 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 结果 + */ + public int insertPurchasePartDetails(PurchasePartDetails purchasePartDetails); + + /** + * 修改新购配件验收任务详细 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 结果 + */ + public int updatePurchasePartDetails(PurchasePartDetails purchasePartDetails); + + /** + * 批量删除新购配件验收任务详细 + * + * @param ids 需要删除的新购配件验收任务详细主键集合 + * @return 结果 + */ + public int deletePurchasePartDetailsByIds(Long[] ids); + + /** + * 删除新购配件验收任务详细信息 + * + * @param id 新购配件验收任务详细主键 + * @return 结果 + */ + public int deletePurchasePartDetailsById(Long id); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchasePartInfoService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchasePartInfoService.java new file mode 100644 index 00000000..48e6c137 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/IPurchasePartInfoService.java @@ -0,0 +1,61 @@ +package com.bonus.material.purchase.service; + +import java.util.List; +import com.bonus.material.purchase.domain.PurchasePartInfo; + +/** + * 新购配件验收任务Service接口 + * + * @author xsheng + * @date 2024-09-27 + */ +public interface IPurchasePartInfoService +{ + /** + * 查询新购配件验收任务 + * + * @param ID 新购配件验收任务主键 + * @return 新购配件验收任务 + */ + public PurchasePartInfo selectPurchasePartInfoByID(Long ID); + + /** + * 查询新购配件验收任务列表 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 新购配件验收任务集合 + */ + public List selectPurchasePartInfoList(PurchasePartInfo purchasePartInfo); + + /** + * 新增新购配件验收任务 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 结果 + */ + public int insertPurchasePartInfo(PurchasePartInfo purchasePartInfo); + + /** + * 修改新购配件验收任务 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 结果 + */ + public int updatePurchasePartInfo(PurchasePartInfo purchasePartInfo); + + /** + * 批量删除新购配件验收任务 + * + * @param IDs 需要删除的新购配件验收任务主键集合 + * @return 结果 + */ + public int deletePurchasePartInfoByIDs(Long[] IDs); + + /** + * 删除新购配件验收任务信息 + * + * @param ID 新购配件验收任务主键 + * @return 结果 + */ + public int deletePurchasePartInfoByID(Long ID); +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseCheckDetailsServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseCheckDetailsServiceImpl.java new file mode 100644 index 00000000..a6f5c07f --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseCheckDetailsServiceImpl.java @@ -0,0 +1,96 @@ +package com.bonus.material.purchase.service.impl; + +import java.util.List; +import com.bonus.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.bonus.material.purchase.mapper.PurchaseCheckDetailsMapper; +import com.bonus.material.purchase.domain.PurchaseCheckDetails; +import com.bonus.material.purchase.service.IPurchaseCheckDetailsService; + +/** + * 新购验收任务详细Service业务层处理 + * + * @author xsheng + * @date 2024-09-27 + */ +@Service +public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsService +{ + @Autowired + private PurchaseCheckDetailsMapper purchaseCheckDetailsMapper; + + /** + * 查询新购验收任务详细 + * + * @param id 新购验收任务详细主键 + * @return 新购验收任务详细 + */ + @Override + public PurchaseCheckDetails selectPurchaseCheckDetailsById(Long id) + { + return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsById(id); + } + + /** + * 查询新购验收任务详细列表 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 新购验收任务详细 + */ + @Override + public List selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails) + { + return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsList(purchaseCheckDetails); + } + + /** + * 新增新购验收任务详细 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 结果 + */ + @Override + public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails) + { + purchaseCheckDetails.setCreateTime(DateUtils.getNowDate()); + return purchaseCheckDetailsMapper.insertPurchaseCheckDetails(purchaseCheckDetails); + } + + /** + * 修改新购验收任务详细 + * + * @param purchaseCheckDetails 新购验收任务详细 + * @return 结果 + */ + @Override + public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails) + { + purchaseCheckDetails.setUpdateTime(DateUtils.getNowDate()); + return purchaseCheckDetailsMapper.updatePurchaseCheckDetails(purchaseCheckDetails); + } + + /** + * 批量删除新购验收任务详细 + * + * @param ids 需要删除的新购验收任务详细主键 + * @return 结果 + */ + @Override + public int deletePurchaseCheckDetailsByIds(Long[] ids) + { + return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsByIds(ids); + } + + /** + * 删除新购验收任务详细信息 + * + * @param id 新购验收任务详细主键 + * @return 结果 + */ + @Override + public int deletePurchaseCheckDetailsById(Long id) + { + return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsById(id); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseCheckInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseCheckInfoServiceImpl.java new file mode 100644 index 00000000..4264b98f --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseCheckInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.bonus.material.purchase.service.impl; + +import java.util.List; +import com.bonus.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.bonus.material.purchase.mapper.PurchaseCheckInfoMapper; +import com.bonus.material.purchase.domain.PurchaseCheckInfo; +import com.bonus.material.purchase.service.IPurchaseCheckInfoService; + +/** + * 新购验收任务Service业务层处理 + * + * @author xsheng + * @date 2024-09-27 + */ +@Service +public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService +{ + @Autowired + private PurchaseCheckInfoMapper purchaseCheckInfoMapper; + + /** + * 查询新购验收任务 + * + * @param id 新购验收任务主键 + * @return 新购验收任务 + */ + @Override + public PurchaseCheckInfo selectPurchaseCheckInfoById(Long id) + { + return purchaseCheckInfoMapper.selectPurchaseCheckInfoById(id); + } + + /** + * 查询新购验收任务列表 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 新购验收任务 + */ + @Override + public List selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo) + { + return purchaseCheckInfoMapper.selectPurchaseCheckInfoList(purchaseCheckInfo); + } + + /** + * 新增新购验收任务 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 结果 + */ + @Override + public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo) + { + purchaseCheckInfo.setCreateTime(DateUtils.getNowDate()); + return purchaseCheckInfoMapper.insertPurchaseCheckInfo(purchaseCheckInfo); + } + + /** + * 修改新购验收任务 + * + * @param purchaseCheckInfo 新购验收任务 + * @return 结果 + */ + @Override + public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo) + { + purchaseCheckInfo.setUpdateTime(DateUtils.getNowDate()); + return purchaseCheckInfoMapper.updatePurchaseCheckInfo(purchaseCheckInfo); + } + + /** + * 批量删除新购验收任务 + * + * @param ids 需要删除的新购验收任务主键 + * @return 结果 + */ + @Override + public int deletePurchaseCheckInfoByIds(Long[] ids) + { + return purchaseCheckInfoMapper.deletePurchaseCheckInfoByIds(ids); + } + + /** + * 删除新购验收任务信息 + * + * @param id 新购验收任务主键 + * @return 结果 + */ + @Override + public int deletePurchaseCheckInfoById(Long id) + { + return purchaseCheckInfoMapper.deletePurchaseCheckInfoById(id); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseMacodeInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseMacodeInfoServiceImpl.java new file mode 100644 index 00000000..0145b225 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseMacodeInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.bonus.material.purchase.service.impl; + +import java.util.List; +import com.bonus.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.bonus.material.purchase.mapper.PurchaseMacodeInfoMapper; +import com.bonus.material.purchase.domain.PurchaseMacodeInfo; +import com.bonus.material.purchase.service.IPurchaseMacodeInfoService; + +/** + * 新购验收编号管理Service业务层处理 + * + * @author xsheng + * @date 2024-09-27 + */ +@Service +public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService +{ + @Autowired + private PurchaseMacodeInfoMapper purchaseMacodeInfoMapper; + + /** + * 查询新购验收编号管理 + * + * @param id 新购验收编号管理主键 + * @return 新购验收编号管理 + */ + @Override + public PurchaseMacodeInfo selectPurchaseMacodeInfoById(Long id) + { + return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoById(id); + } + + /** + * 查询新购验收编号管理列表 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 新购验收编号管理 + */ + @Override + public List selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo) + { + return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoList(purchaseMacodeInfo); + } + + /** + * 新增新购验收编号管理 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 结果 + */ + @Override + public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo) + { + purchaseMacodeInfo.setCreateTime(DateUtils.getNowDate()); + return purchaseMacodeInfoMapper.insertPurchaseMacodeInfo(purchaseMacodeInfo); + } + + /** + * 修改新购验收编号管理 + * + * @param purchaseMacodeInfo 新购验收编号管理 + * @return 结果 + */ + @Override + public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo) + { + purchaseMacodeInfo.setUpdateTime(DateUtils.getNowDate()); + return purchaseMacodeInfoMapper.updatePurchaseMacodeInfo(purchaseMacodeInfo); + } + + /** + * 批量删除新购验收编号管理 + * + * @param ids 需要删除的新购验收编号管理主键 + * @return 结果 + */ + @Override + public int deletePurchaseMacodeInfoByIds(Long[] ids) + { + return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoByIds(ids); + } + + /** + * 删除新购验收编号管理信息 + * + * @param id 新购验收编号管理主键 + * @return 结果 + */ + @Override + public int deletePurchaseMacodeInfoById(Long id) + { + return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoById(id); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseNoticePersonServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseNoticePersonServiceImpl.java new file mode 100644 index 00000000..1691a827 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchaseNoticePersonServiceImpl.java @@ -0,0 +1,96 @@ +package com.bonus.material.purchase.service.impl; + +import java.util.List; +import com.bonus.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.bonus.material.purchase.mapper.PurchaseNoticePersonMapper; +import com.bonus.material.purchase.domain.PurchaseNoticePerson; +import com.bonus.material.purchase.service.IPurchaseNoticePersonService; + +/** + * 新购短信通知人员Service业务层处理 + * + * @author xsheng + * @date 2024-09-27 + */ +@Service +public class PurchaseNoticePersonServiceImpl implements IPurchaseNoticePersonService +{ + @Autowired + private PurchaseNoticePersonMapper purchaseNoticePersonMapper; + + /** + * 查询新购短信通知人员 + * + * @param id 新购短信通知人员主键 + * @return 新购短信通知人员 + */ + @Override + public PurchaseNoticePerson selectPurchaseNoticePersonById(Long id) + { + return purchaseNoticePersonMapper.selectPurchaseNoticePersonById(id); + } + + /** + * 查询新购短信通知人员列表 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 新购短信通知人员 + */ + @Override + public List selectPurchaseNoticePersonList(PurchaseNoticePerson purchaseNoticePerson) + { + return purchaseNoticePersonMapper.selectPurchaseNoticePersonList(purchaseNoticePerson); + } + + /** + * 新增新购短信通知人员 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 结果 + */ + @Override + public int insertPurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson) + { + purchaseNoticePerson.setCreateTime(DateUtils.getNowDate()); + return purchaseNoticePersonMapper.insertPurchaseNoticePerson(purchaseNoticePerson); + } + + /** + * 修改新购短信通知人员 + * + * @param purchaseNoticePerson 新购短信通知人员 + * @return 结果 + */ + @Override + public int updatePurchaseNoticePerson(PurchaseNoticePerson purchaseNoticePerson) + { + purchaseNoticePerson.setUpdateTime(DateUtils.getNowDate()); + return purchaseNoticePersonMapper.updatePurchaseNoticePerson(purchaseNoticePerson); + } + + /** + * 批量删除新购短信通知人员 + * + * @param ids 需要删除的新购短信通知人员主键 + * @return 结果 + */ + @Override + public int deletePurchaseNoticePersonByIds(Long[] ids) + { + return purchaseNoticePersonMapper.deletePurchaseNoticePersonByIds(ids); + } + + /** + * 删除新购短信通知人员信息 + * + * @param id 新购短信通知人员主键 + * @return 结果 + */ + @Override + public int deletePurchaseNoticePersonById(Long id) + { + return purchaseNoticePersonMapper.deletePurchaseNoticePersonById(id); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchasePartDetailsServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchasePartDetailsServiceImpl.java new file mode 100644 index 00000000..2b3cfd42 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchasePartDetailsServiceImpl.java @@ -0,0 +1,96 @@ +package com.bonus.material.purchase.service.impl; + +import java.util.List; +import com.bonus.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.bonus.material.purchase.mapper.PurchasePartDetailsMapper; +import com.bonus.material.purchase.domain.PurchasePartDetails; +import com.bonus.material.purchase.service.IPurchasePartDetailsService; + +/** + * 新购配件验收任务详细Service业务层处理 + * + * @author xsheng + * @date 2024-09-27 + */ +@Service +public class PurchasePartDetailsServiceImpl implements IPurchasePartDetailsService +{ + @Autowired + private PurchasePartDetailsMapper purchasePartDetailsMapper; + + /** + * 查询新购配件验收任务详细 + * + * @param id 新购配件验收任务详细主键 + * @return 新购配件验收任务详细 + */ + @Override + public PurchasePartDetails selectPurchasePartDetailsById(Long id) + { + return purchasePartDetailsMapper.selectPurchasePartDetailsById(id); + } + + /** + * 查询新购配件验收任务详细列表 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 新购配件验收任务详细 + */ + @Override + public List selectPurchasePartDetailsList(PurchasePartDetails purchasePartDetails) + { + return purchasePartDetailsMapper.selectPurchasePartDetailsList(purchasePartDetails); + } + + /** + * 新增新购配件验收任务详细 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 结果 + */ + @Override + public int insertPurchasePartDetails(PurchasePartDetails purchasePartDetails) + { + purchasePartDetails.setCreateTime(DateUtils.getNowDate()); + return purchasePartDetailsMapper.insertPurchasePartDetails(purchasePartDetails); + } + + /** + * 修改新购配件验收任务详细 + * + * @param purchasePartDetails 新购配件验收任务详细 + * @return 结果 + */ + @Override + public int updatePurchasePartDetails(PurchasePartDetails purchasePartDetails) + { + purchasePartDetails.setUpdateTime(DateUtils.getNowDate()); + return purchasePartDetailsMapper.updatePurchasePartDetails(purchasePartDetails); + } + + /** + * 批量删除新购配件验收任务详细 + * + * @param ids 需要删除的新购配件验收任务详细主键 + * @return 结果 + */ + @Override + public int deletePurchasePartDetailsByIds(Long[] ids) + { + return purchasePartDetailsMapper.deletePurchasePartDetailsByIds(ids); + } + + /** + * 删除新购配件验收任务详细信息 + * + * @param id 新购配件验收任务详细主键 + * @return 结果 + */ + @Override + public int deletePurchasePartDetailsById(Long id) + { + return purchasePartDetailsMapper.deletePurchasePartDetailsById(id); + } +} diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchasePartInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchasePartInfoServiceImpl.java new file mode 100644 index 00000000..a26d8199 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/service/impl/PurchasePartInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.bonus.material.purchase.service.impl; + +import java.util.List; +import com.bonus.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.bonus.material.purchase.mapper.PurchasePartInfoMapper; +import com.bonus.material.purchase.domain.PurchasePartInfo; +import com.bonus.material.purchase.service.IPurchasePartInfoService; + +/** + * 新购配件验收任务Service业务层处理 + * + * @author xsheng + * @date 2024-09-27 + */ +@Service +public class PurchasePartInfoServiceImpl implements IPurchasePartInfoService +{ + @Autowired + private PurchasePartInfoMapper purchasePartInfoMapper; + + /** + * 查询新购配件验收任务 + * + * @param ID 新购配件验收任务主键 + * @return 新购配件验收任务 + */ + @Override + public PurchasePartInfo selectPurchasePartInfoByID(Long ID) + { + return purchasePartInfoMapper.selectPurchasePartInfoByID(ID); + } + + /** + * 查询新购配件验收任务列表 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 新购配件验收任务 + */ + @Override + public List selectPurchasePartInfoList(PurchasePartInfo purchasePartInfo) + { + return purchasePartInfoMapper.selectPurchasePartInfoList(purchasePartInfo); + } + + /** + * 新增新购配件验收任务 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 结果 + */ + @Override + public int insertPurchasePartInfo(PurchasePartInfo purchasePartInfo) + { + purchasePartInfo.setCreateTime(DateUtils.getNowDate()); + return purchasePartInfoMapper.insertPurchasePartInfo(purchasePartInfo); + } + + /** + * 修改新购配件验收任务 + * + * @param purchasePartInfo 新购配件验收任务 + * @return 结果 + */ + @Override + public int updatePurchasePartInfo(PurchasePartInfo purchasePartInfo) + { + purchasePartInfo.setUpdateTime(DateUtils.getNowDate()); + return purchasePartInfoMapper.updatePurchasePartInfo(purchasePartInfo); + } + + /** + * 批量删除新购配件验收任务 + * + * @param IDs 需要删除的新购配件验收任务主键 + * @return 结果 + */ + @Override + public int deletePurchasePartInfoByIDs(Long[] IDs) + { + return purchasePartInfoMapper.deletePurchasePartInfoByIDs(IDs); + } + + /** + * 删除新购配件验收任务信息 + * + * @param ID 新购配件验收任务主键 + * @return 结果 + */ + @Override + public int deletePurchasePartInfoByID(Long ID) + { + return purchasePartInfoMapper.deletePurchasePartInfoByID(ID); + } +} diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseCheckDetailsMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseCheckDetailsMapper.xml new file mode 100644 index 00000000..cfb3c508 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseCheckDetailsMapper.xml @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, task_id, type_id, purchase_price, purchase_num, check_num, bind_num, check_result, supplier_id, status, create_by, production_time, create_time, update_by, update_time, remark, check_url_name, check_url, input_num, input_status, input_time, file_name, file_url, company_id from purchase_check_details + + + + + + + + insert into purchase_check_details + + task_id, + type_id, + purchase_price, + purchase_num, + check_num, + bind_num, + check_result, + supplier_id, + status, + create_by, + production_time, + create_time, + update_by, + update_time, + remark, + check_url_name, + check_url, + input_num, + input_status, + input_time, + file_name, + file_url, + company_id, + + + #{taskId}, + #{typeId}, + #{purchasePrice}, + #{purchaseNum}, + #{checkNum}, + #{bindNum}, + #{checkResult}, + #{supplierId}, + #{status}, + #{createBy}, + #{productionTime}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{checkUrlName}, + #{checkUrl}, + #{inputNum}, + #{inputStatus}, + #{inputTime}, + #{fileName}, + #{fileUrl}, + #{companyId}, + + + + + update purchase_check_details + + task_id = #{taskId}, + type_id = #{typeId}, + purchase_price = #{purchasePrice}, + purchase_num = #{purchaseNum}, + check_num = #{checkNum}, + bind_num = #{bindNum}, + check_result = #{checkResult}, + supplier_id = #{supplierId}, + status = #{status}, + create_by = #{createBy}, + production_time = #{productionTime}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + check_url_name = #{checkUrlName}, + check_url = #{checkUrl}, + input_num = #{inputNum}, + input_status = #{inputStatus}, + input_time = #{inputTime}, + file_name = #{fileName}, + file_url = #{fileUrl}, + company_id = #{companyId}, + + where id = #{id} + + + + delete from purchase_check_details where id = #{id} + + + + delete from purchase_check_details where id in + + #{id} + + + \ No newline at end of file diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseCheckInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseCheckInfoMapper.xml new file mode 100644 index 00000000..e11c9b51 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseCheckInfoMapper.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + select id, task_id, purchase_time, arrival_time, purchaser, create_by, create_time, update_by, update_time, remark, company_id from purchase_check_info + + + + + + + + insert into purchase_check_info + + task_id, + purchase_time, + arrival_time, + purchaser, + create_by, + create_time, + update_by, + update_time, + remark, + company_id, + + + #{taskId}, + #{purchaseTime}, + #{arrivalTime}, + #{purchaser}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{companyId}, + + + + + update purchase_check_info + + task_id = #{taskId}, + purchase_time = #{purchaseTime}, + arrival_time = #{arrivalTime}, + purchaser = #{purchaser}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + company_id = #{companyId}, + + where id = #{id} + + + + delete from purchase_check_info where id = #{id} + + + + delete from purchase_check_info where id in + + #{id} + + + \ No newline at end of file diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseMacodeInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseMacodeInfoMapper.xml new file mode 100644 index 00000000..b60cd870 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseMacodeInfoMapper.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + select id, task_id, type_id, ma_code, qr_code, fix_code, code_type, status, create_by, create_time, update_by, update_time, remark, company_id from purchase_macode_info + + + + + + + + insert into purchase_macode_info + + task_id, + type_id, + ma_code, + qr_code, + fix_code, + code_type, + status, + create_by, + create_time, + update_by, + update_time, + remark, + company_id, + + + #{taskId}, + #{typeId}, + #{maCode}, + #{qrCode}, + #{fixCode}, + #{codeType}, + #{status}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{companyId}, + + + + + update purchase_macode_info + + task_id = #{taskId}, + type_id = #{typeId}, + ma_code = #{maCode}, + qr_code = #{qrCode}, + fix_code = #{fixCode}, + code_type = #{codeType}, + status = #{status}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + company_id = #{companyId}, + + where id = #{id} + + + + delete from purchase_macode_info where id = #{id} + + + + delete from purchase_macode_info where id in + + #{id} + + + \ No newline at end of file diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseNoticePersonMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseNoticePersonMapper.xml new file mode 100644 index 00000000..b4fdcb41 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchaseNoticePersonMapper.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + select id, user_id, user_name, telphone, create_time, update_time from purchase_notice_person + + + + + + + + insert into purchase_notice_person + + user_id, + user_name, + telphone, + create_time, + update_time, + + + #{userId}, + #{userName}, + #{telphone}, + #{createTime}, + #{updateTime}, + + + + + update purchase_notice_person + + user_id = #{userId}, + user_name = #{userName}, + telphone = #{telphone}, + create_time = #{createTime}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from purchase_notice_person where id = #{id} + + + + delete from purchase_notice_person where id in + + #{id} + + + \ No newline at end of file diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchasePartDetailsMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchasePartDetailsMapper.xml new file mode 100644 index 00000000..77188139 --- /dev/null +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchasePartDetailsMapper.xml @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, task_id, part_id, purchase_price, purchase_num, supplier_id, create_by, production_time, check_num, check_result, input_num, input_time, file_name, file_url, create_time, update_by, update_time, remark, company_id, status from purchase_part_details + + + + + + + + insert into purchase_part_details + + task_id, + part_id, + purchase_price, + purchase_num, + supplier_id, + create_by, + production_time, + check_num, + check_result, + input_num, + input_time, + file_name, + file_url, + create_time, + update_by, + update_time, + remark, + company_id, + status, + + + #{taskId}, + #{partId}, + #{purchasePrice}, + #{purchaseNum}, + #{supplierId}, + #{createBy}, + #{productionTime}, + #{checkNum}, + #{checkResult}, + #{inputNum}, + #{inputTime}, + #{fileName}, + #{fileUrl}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{companyId}, + #{status}, + + + + + update purchase_part_details + + task_id = #{taskId}, + part_id = #{partId}, + purchase_price = #{purchasePrice}, + purchase_num = #{purchaseNum}, + supplier_id = #{supplierId}, + create_by = #{createBy}, + production_time = #{productionTime}, + check_num = #{checkNum}, + check_result = #{checkResult}, + input_num = #{inputNum}, + input_time = #{inputTime}, + file_name = #{fileName}, + file_url = #{fileUrl}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + company_id = #{companyId}, + status = #{status}, + + where id = #{id} + + + + delete from purchase_part_details where id = #{id} + + + + delete from purchase_part_details where id in + + #{id} + + + \ No newline at end of file diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchasePartInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchasePartInfoMapper.xml new file mode 100644 index 00000000..81495b6e --- /dev/null +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/purchase/PurchasePartInfoMapper.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + select ID, task_id, purchase_time, arrival_time, purchaser, create_by, create_time, update_by, update_time, remark, company_id from purchase_part_info + + + + + + + + insert into purchase_part_info + + task_id, + purchase_time, + arrival_time, + purchaser, + create_by, + create_time, + update_by, + update_time, + remark, + company_id, + + + #{taskId}, + #{purchaseTime}, + #{arrivalTime}, + #{purchaser}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{companyId}, + + + + + update purchase_part_info + + task_id = #{taskId}, + purchase_time = #{purchaseTime}, + arrival_time = #{arrivalTime}, + purchaser = #{purchaser}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + company_id = #{companyId}, + + where ID = #{ID} + + + + delete from purchase_part_info where ID = #{ID} + + + + delete from purchase_part_info where ID in + + #{ID} + + + \ No newline at end of file