重构repair
This commit is contained in:
parent
29f45b675e
commit
487aa7bf90
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 维修详细Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "维修详细接口")
|
||||
@RestController
|
||||
@RequestMapping("/repair_apply_details")
|
||||
public class RepairApplyDetailsController extends BaseController
|
||||
{
|
||||
public class RepairApplyDetailsController extends BaseController {
|
||||
@Autowired
|
||||
private IRepairApplyDetailsService repairApplyDetailsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class RepairApplyDetailsController extends BaseController
|
|||
@ApiOperation(value = "查询维修详细列表")
|
||||
@RequiresPermissions("repair:details:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RepairApplyDetails repairApplyDetails)
|
||||
{
|
||||
public TableDataInfo list(RepairApplyDetails repairApplyDetails) {
|
||||
startPage();
|
||||
List<RepairApplyDetails> list = repairApplyDetailsService.selectRepairApplyDetailsList(repairApplyDetails);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class RepairApplyDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:export")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出维修详细")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairApplyDetails repairApplyDetails)
|
||||
{
|
||||
public void export(HttpServletResponse response, RepairApplyDetails repairApplyDetails) {
|
||||
List<RepairApplyDetails> list = repairApplyDetailsService.selectRepairApplyDetailsList(repairApplyDetails);
|
||||
ExcelUtil<RepairApplyDetails> util = new ExcelUtil<RepairApplyDetails>(RepairApplyDetails.class);
|
||||
util.exportExcel(response, list, "维修详细数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class RepairApplyDetailsController extends BaseController
|
|||
@ApiOperation(value = "获取维修详细详细信息")
|
||||
@RequiresPermissions("repair:details:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(repairApplyDetailsService.selectRepairApplyDetailsById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class RepairApplyDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:add")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增维修详细")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody RepairApplyDetails repairApplyDetails)
|
||||
{
|
||||
return toAjax(repairApplyDetailsService.insertRepairApplyDetails(repairApplyDetails));
|
||||
public AjaxResult add(@RequestBody RepairApplyDetails repairApplyDetails) {
|
||||
try {
|
||||
return toAjax(repairApplyDetailsService.insertRepairApplyDetails(repairApplyDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class RepairApplyDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:edit")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改维修详细")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody RepairApplyDetails repairApplyDetails)
|
||||
{
|
||||
return toAjax(repairApplyDetailsService.updateRepairApplyDetails(repairApplyDetails));
|
||||
public AjaxResult edit(@RequestBody RepairApplyDetails repairApplyDetails) {
|
||||
try {
|
||||
return toAjax(repairApplyDetailsService.updateRepairApplyDetails(repairApplyDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class RepairApplyDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:remove")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除维修详细")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(repairApplyDetailsService.deleteRepairApplyDetailsByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 维修记录Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "维修记录接口")
|
||||
@RestController
|
||||
@RequestMapping("/repair_apply_record")
|
||||
public class RepairApplyRecordController extends BaseController
|
||||
{
|
||||
public class RepairApplyRecordController extends BaseController {
|
||||
@Autowired
|
||||
private IRepairApplyRecordService repairApplyRecordService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class RepairApplyRecordController extends BaseController
|
|||
@ApiOperation(value = "查询维修记录列表")
|
||||
@RequiresPermissions("repair:record:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RepairApplyRecord repairApplyRecord)
|
||||
{
|
||||
public TableDataInfo list(RepairApplyRecord repairApplyRecord) {
|
||||
startPage();
|
||||
List<RepairApplyRecord> list = repairApplyRecordService.selectRepairApplyRecordList(repairApplyRecord);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class RepairApplyRecordController extends BaseController
|
|||
@RequiresPermissions("repair:record:export")
|
||||
@SysLog(title = "维修记录", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出维修记录")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairApplyRecord repairApplyRecord)
|
||||
{
|
||||
public void export(HttpServletResponse response, RepairApplyRecord repairApplyRecord) {
|
||||
List<RepairApplyRecord> list = repairApplyRecordService.selectRepairApplyRecordList(repairApplyRecord);
|
||||
ExcelUtil<RepairApplyRecord> util = new ExcelUtil<RepairApplyRecord>(RepairApplyRecord.class);
|
||||
util.exportExcel(response, list, "维修记录数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class RepairApplyRecordController extends BaseController
|
|||
@ApiOperation(value = "获取维修记录详细信息")
|
||||
@RequiresPermissions("repair:record:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(repairApplyRecordService.selectRepairApplyRecordById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class RepairApplyRecordController extends BaseController
|
|||
@RequiresPermissions("repair:record:add")
|
||||
@SysLog(title = "维修记录", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增维修记录")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody RepairApplyRecord repairApplyRecord)
|
||||
{
|
||||
return toAjax(repairApplyRecordService.insertRepairApplyRecord(repairApplyRecord));
|
||||
public AjaxResult add(@RequestBody RepairApplyRecord repairApplyRecord) {
|
||||
try {
|
||||
return toAjax(repairApplyRecordService.insertRepairApplyRecord(repairApplyRecord));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class RepairApplyRecordController extends BaseController
|
|||
@RequiresPermissions("repair:record:edit")
|
||||
@SysLog(title = "维修记录", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改维修记录")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody RepairApplyRecord repairApplyRecord)
|
||||
{
|
||||
return toAjax(repairApplyRecordService.updateRepairApplyRecord(repairApplyRecord));
|
||||
public AjaxResult edit(@RequestBody RepairApplyRecord repairApplyRecord) {
|
||||
try {
|
||||
return toAjax(repairApplyRecordService.updateRepairApplyRecord(repairApplyRecord));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class RepairApplyRecordController extends BaseController
|
|||
@RequiresPermissions("repair:record:remove")
|
||||
@SysLog(title = "维修记录", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除维修记录")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(repairApplyRecordService.deleteRepairApplyRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 修试审核详细Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "修试审核详细接口")
|
||||
@RestController
|
||||
@RequestMapping("/repair_audit_details")
|
||||
public class RepairAuditDetailsController extends BaseController
|
||||
{
|
||||
public class RepairAuditDetailsController extends BaseController {
|
||||
@Autowired
|
||||
private IRepairAuditDetailsService repairAuditDetailsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class RepairAuditDetailsController extends BaseController
|
|||
@ApiOperation(value = "查询修试审核详细列表")
|
||||
@RequiresPermissions("repair:details:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RepairAuditDetails repairAuditDetails)
|
||||
{
|
||||
public TableDataInfo list(RepairAuditDetails repairAuditDetails) {
|
||||
startPage();
|
||||
List<RepairAuditDetails> list = repairAuditDetailsService.selectRepairAuditDetailsList(repairAuditDetails);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class RepairAuditDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:export")
|
||||
@SysLog(title = "修试审核详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出修试审核详细")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairAuditDetails repairAuditDetails)
|
||||
{
|
||||
public void export(HttpServletResponse response, RepairAuditDetails repairAuditDetails) {
|
||||
List<RepairAuditDetails> list = repairAuditDetailsService.selectRepairAuditDetailsList(repairAuditDetails);
|
||||
ExcelUtil<RepairAuditDetails> util = new ExcelUtil<RepairAuditDetails>(RepairAuditDetails.class);
|
||||
util.exportExcel(response, list, "修试审核详细数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class RepairAuditDetailsController extends BaseController
|
|||
@ApiOperation(value = "获取修试审核详细详细信息")
|
||||
@RequiresPermissions("repair:details:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(repairAuditDetailsService.selectRepairAuditDetailsById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class RepairAuditDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:add")
|
||||
@SysLog(title = "修试审核详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增修试审核详细")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody RepairAuditDetails repairAuditDetails)
|
||||
{
|
||||
return toAjax(repairAuditDetailsService.insertRepairAuditDetails(repairAuditDetails));
|
||||
public AjaxResult add(@RequestBody RepairAuditDetails repairAuditDetails) {
|
||||
try {
|
||||
return toAjax(repairAuditDetailsService.insertRepairAuditDetails(repairAuditDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class RepairAuditDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:edit")
|
||||
@SysLog(title = "修试审核详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改修试审核详细")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody RepairAuditDetails repairAuditDetails)
|
||||
{
|
||||
return toAjax(repairAuditDetailsService.updateRepairAuditDetails(repairAuditDetails));
|
||||
public AjaxResult edit(@RequestBody RepairAuditDetails repairAuditDetails) {
|
||||
try {
|
||||
return toAjax(repairAuditDetailsService.updateRepairAuditDetails(repairAuditDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class RepairAuditDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:remove")
|
||||
@SysLog(title = "修试审核详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除修试审核详细")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(repairAuditDetailsService.deleteRepairAuditDetailsByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 维修详细Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "维修详细接口")
|
||||
@RestController
|
||||
@RequestMapping("/repair_cost")
|
||||
public class RepairCostController extends BaseController
|
||||
{
|
||||
public class RepairCostController extends BaseController {
|
||||
@Autowired
|
||||
private IRepairCostService repairCostService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class RepairCostController extends BaseController
|
|||
@ApiOperation(value = "查询维修详细列表")
|
||||
@RequiresPermissions("repair:cost:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RepairCost repairCost)
|
||||
{
|
||||
public TableDataInfo list(RepairCost repairCost) {
|
||||
startPage();
|
||||
List<RepairCost> list = repairCostService.selectRepairCostList(repairCost);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class RepairCostController extends BaseController
|
|||
@RequiresPermissions("repair:cost:export")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出维修详细")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairCost repairCost)
|
||||
{
|
||||
public void export(HttpServletResponse response, RepairCost repairCost) {
|
||||
List<RepairCost> list = repairCostService.selectRepairCostList(repairCost);
|
||||
ExcelUtil<RepairCost> util = new ExcelUtil<RepairCost>(RepairCost.class);
|
||||
util.exportExcel(response, list, "维修详细数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class RepairCostController extends BaseController
|
|||
@ApiOperation(value = "获取维修详细详细信息")
|
||||
@RequiresPermissions("repair:cost:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(repairCostService.selectRepairCostById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class RepairCostController extends BaseController
|
|||
@RequiresPermissions("repair:cost:add")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增维修详细")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody RepairCost repairCost)
|
||||
{
|
||||
return toAjax(repairCostService.insertRepairCost(repairCost));
|
||||
public AjaxResult add(@RequestBody RepairCost repairCost) {
|
||||
try {
|
||||
return toAjax(repairCostService.insertRepairCost(repairCost));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class RepairCostController extends BaseController
|
|||
@RequiresPermissions("repair:cost:edit")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改维修详细")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody RepairCost repairCost)
|
||||
{
|
||||
return toAjax(repairCostService.updateRepairCost(repairCost));
|
||||
public AjaxResult edit(@RequestBody RepairCost repairCost) {
|
||||
try {
|
||||
return toAjax(repairCostService.updateRepairCost(repairCost));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class RepairCostController extends BaseController
|
|||
@RequiresPermissions("repair:cost:remove")
|
||||
@SysLog(title = "维修详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除维修详细")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(repairCostService.deleteRepairCostByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 修试后入库Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "修试后入库接口")
|
||||
@RestController
|
||||
@RequestMapping("/repair_input_details")
|
||||
public class RepairInputDetailsController extends BaseController
|
||||
{
|
||||
public class RepairInputDetailsController extends BaseController {
|
||||
@Autowired
|
||||
private IRepairInputDetailsService repairInputDetailsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class RepairInputDetailsController extends BaseController
|
|||
@ApiOperation(value = "查询修试后入库列表")
|
||||
@RequiresPermissions("repair:details:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RepairInputDetails repairInputDetails)
|
||||
{
|
||||
public TableDataInfo list(RepairInputDetails repairInputDetails) {
|
||||
startPage();
|
||||
List<RepairInputDetails> list = repairInputDetailsService.selectRepairInputDetailsList(repairInputDetails);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class RepairInputDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:export")
|
||||
@SysLog(title = "修试后入库", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出修试后入库")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairInputDetails repairInputDetails)
|
||||
{
|
||||
public void export(HttpServletResponse response, RepairInputDetails repairInputDetails) {
|
||||
List<RepairInputDetails> list = repairInputDetailsService.selectRepairInputDetailsList(repairInputDetails);
|
||||
ExcelUtil<RepairInputDetails> util = new ExcelUtil<RepairInputDetails>(RepairInputDetails.class);
|
||||
util.exportExcel(response, list, "修试后入库数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class RepairInputDetailsController extends BaseController
|
|||
@ApiOperation(value = "获取修试后入库详细信息")
|
||||
@RequiresPermissions("repair:details:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(repairInputDetailsService.selectRepairInputDetailsById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class RepairInputDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:add")
|
||||
@SysLog(title = "修试后入库", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增修试后入库")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody RepairInputDetails repairInputDetails)
|
||||
{
|
||||
return toAjax(repairInputDetailsService.insertRepairInputDetails(repairInputDetails));
|
||||
public AjaxResult add(@RequestBody RepairInputDetails repairInputDetails) {
|
||||
try {
|
||||
return toAjax(repairInputDetailsService.insertRepairInputDetails(repairInputDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class RepairInputDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:edit")
|
||||
@SysLog(title = "修试后入库", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改修试后入库")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody RepairInputDetails repairInputDetails)
|
||||
{
|
||||
return toAjax(repairInputDetailsService.updateRepairInputDetails(repairInputDetails));
|
||||
public AjaxResult edit(@RequestBody RepairInputDetails repairInputDetails) {
|
||||
try {
|
||||
return toAjax(repairInputDetailsService.updateRepairInputDetails(repairInputDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class RepairInputDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:remove")
|
||||
@SysLog(title = "修试后入库", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除修试后入库")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(repairInputDetailsService.deleteRepairInputDetailsByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 维修配件详细Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "维修配件详细接口")
|
||||
@RestController
|
||||
@RequestMapping("/repair_part_details")
|
||||
public class RepairPartDetailsController extends BaseController
|
||||
{
|
||||
public class RepairPartDetailsController extends BaseController {
|
||||
@Autowired
|
||||
private IRepairPartDetailsService repairPartDetailsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class RepairPartDetailsController extends BaseController
|
|||
@ApiOperation(value = "查询维修配件详细列表")
|
||||
@RequiresPermissions("repair:details:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RepairPartDetails repairPartDetails)
|
||||
{
|
||||
public TableDataInfo list(RepairPartDetails repairPartDetails) {
|
||||
startPage();
|
||||
List<RepairPartDetails> list = repairPartDetailsService.selectRepairPartDetailsList(repairPartDetails);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class RepairPartDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:export")
|
||||
@SysLog(title = "维修配件详细", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出维修配件详细")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairPartDetails repairPartDetails)
|
||||
{
|
||||
public void export(HttpServletResponse response, RepairPartDetails repairPartDetails) {
|
||||
List<RepairPartDetails> list = repairPartDetailsService.selectRepairPartDetailsList(repairPartDetails);
|
||||
ExcelUtil<RepairPartDetails> util = new ExcelUtil<RepairPartDetails>(RepairPartDetails.class);
|
||||
util.exportExcel(response, list, "维修配件详细数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class RepairPartDetailsController extends BaseController
|
|||
@ApiOperation(value = "获取维修配件详细详细信息")
|
||||
@RequiresPermissions("repair:details:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(repairPartDetailsService.selectRepairPartDetailsById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class RepairPartDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:add")
|
||||
@SysLog(title = "维修配件详细", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增维修配件详细")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody RepairPartDetails repairPartDetails)
|
||||
{
|
||||
return toAjax(repairPartDetailsService.insertRepairPartDetails(repairPartDetails));
|
||||
public AjaxResult add(@RequestBody RepairPartDetails repairPartDetails) {
|
||||
try {
|
||||
return toAjax(repairPartDetailsService.insertRepairPartDetails(repairPartDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class RepairPartDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:edit")
|
||||
@SysLog(title = "维修配件详细", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改维修配件详细")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody RepairPartDetails repairPartDetails)
|
||||
{
|
||||
return toAjax(repairPartDetailsService.updateRepairPartDetails(repairPartDetails));
|
||||
public AjaxResult edit(@RequestBody RepairPartDetails repairPartDetails) {
|
||||
try {
|
||||
return toAjax(repairPartDetailsService.updateRepairPartDetails(repairPartDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class RepairPartDetailsController extends BaseController
|
|||
@RequiresPermissions("repair:details:remove")
|
||||
@SysLog(title = "维修配件详细", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除维修配件详细")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(repairPartDetailsService.deleteRepairPartDetailsByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 维修详细对象 repair_apply_details
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class RepairApplyDetails extends BaseEntity
|
||||
{
|
||||
public class RepairApplyDetails extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 维修记录对象 repair_apply_record
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class RepairApplyRecord extends BaseEntity
|
||||
{
|
||||
public class RepairApplyRecord extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
|
|
|
|||
|
|
@ -12,14 +12,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 修试审核详细对象 repair_audit_details
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class RepairAuditDetails extends BaseEntity
|
||||
{
|
||||
public class RepairAuditDetails extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 维修详细对象 repair_cost
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class RepairCost extends BaseEntity
|
||||
{
|
||||
public class RepairCost extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 修试后入库对象 repair_input_details
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class RepairInputDetails extends BaseEntity
|
||||
{
|
||||
public class RepairInputDetails extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 维修配件详细对象 repair_part_details
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class RepairPartDetails extends BaseEntity
|
||||
{
|
||||
public class RepairPartDetails extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairApplyDetails;
|
|||
* 维修详细Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface RepairApplyDetailsMapper
|
||||
{
|
||||
public interface RepairApplyDetailsMapper {
|
||||
/**
|
||||
* 查询维修详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairApplyRecord;
|
|||
* 维修记录Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface RepairApplyRecordMapper
|
||||
{
|
||||
public interface RepairApplyRecordMapper {
|
||||
/**
|
||||
* 查询维修记录
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairAuditDetails;
|
|||
* 修试审核详细Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface RepairAuditDetailsMapper
|
||||
{
|
||||
public interface RepairAuditDetailsMapper {
|
||||
/**
|
||||
* 查询修试审核详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairCost;
|
|||
* 维修详细Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface RepairCostMapper
|
||||
{
|
||||
public interface RepairCostMapper {
|
||||
/**
|
||||
* 查询维修详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairInputDetails;
|
|||
* 修试后入库Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface RepairInputDetailsMapper
|
||||
{
|
||||
public interface RepairInputDetailsMapper {
|
||||
/**
|
||||
* 查询修试后入库
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairPartDetails;
|
|||
* 维修配件详细Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface RepairPartDetailsMapper
|
||||
{
|
||||
public interface RepairPartDetailsMapper {
|
||||
/**
|
||||
* 查询维修配件详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairApplyDetails;
|
|||
* 维修详细Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IRepairApplyDetailsService
|
||||
{
|
||||
public interface IRepairApplyDetailsService {
|
||||
/**
|
||||
* 查询维修详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairApplyRecord;
|
|||
* 维修记录Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IRepairApplyRecordService
|
||||
{
|
||||
public interface IRepairApplyRecordService {
|
||||
/**
|
||||
* 查询维修记录
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairAuditDetails;
|
|||
* 修试审核详细Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IRepairAuditDetailsService
|
||||
{
|
||||
public interface IRepairAuditDetailsService {
|
||||
/**
|
||||
* 查询修试审核详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairCost;
|
|||
* 维修详细Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IRepairCostService
|
||||
{
|
||||
public interface IRepairCostService {
|
||||
/**
|
||||
* 查询维修详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairInputDetails;
|
|||
* 修试后入库Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IRepairInputDetailsService
|
||||
{
|
||||
public interface IRepairInputDetailsService {
|
||||
/**
|
||||
* 查询修试后入库
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.repair.domain.RepairPartDetails;
|
|||
* 维修配件详细Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface IRepairPartDetailsService
|
||||
{
|
||||
public interface IRepairPartDetailsService {
|
||||
/**
|
||||
* 查询维修配件详细
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.repair.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.repair.service.IRepairApplyDetailsService;
|
|||
* 维修详细Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService
|
||||
{
|
||||
public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService {
|
||||
@Autowired
|
||||
private RepairApplyDetailsMapper repairApplyDetailsMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService
|
|||
* @return 维修详细
|
||||
*/
|
||||
@Override
|
||||
public RepairApplyDetails selectRepairApplyDetailsById(Long id)
|
||||
{
|
||||
public RepairApplyDetails selectRepairApplyDetailsById(Long id) {
|
||||
return repairApplyDetailsMapper.selectRepairApplyDetailsById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService
|
|||
* @return 维修详细
|
||||
*/
|
||||
@Override
|
||||
public List<RepairApplyDetails> selectRepairApplyDetailsList(RepairApplyDetails repairApplyDetails)
|
||||
{
|
||||
public List<RepairApplyDetails> selectRepairApplyDetailsList(RepairApplyDetails repairApplyDetails) {
|
||||
return repairApplyDetailsMapper.selectRepairApplyDetailsList(repairApplyDetails);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairApplyDetails(RepairApplyDetails repairApplyDetails)
|
||||
{
|
||||
public int insertRepairApplyDetails(RepairApplyDetails repairApplyDetails) {
|
||||
repairApplyDetails.setCreateTime(DateUtils.getNowDate());
|
||||
return repairApplyDetailsMapper.insertRepairApplyDetails(repairApplyDetails);
|
||||
try {
|
||||
return repairApplyDetailsMapper.insertRepairApplyDetails(repairApplyDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairApplyDetails(RepairApplyDetails repairApplyDetails)
|
||||
{
|
||||
public int updateRepairApplyDetails(RepairApplyDetails repairApplyDetails) {
|
||||
repairApplyDetails.setUpdateTime(DateUtils.getNowDate());
|
||||
return repairApplyDetailsMapper.updateRepairApplyDetails(repairApplyDetails);
|
||||
try {
|
||||
return repairApplyDetailsMapper.updateRepairApplyDetails(repairApplyDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairApplyDetailsByIds(Long[] ids)
|
||||
{
|
||||
public int deleteRepairApplyDetailsByIds(Long[] ids) {
|
||||
return repairApplyDetailsMapper.deleteRepairApplyDetailsByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class RepairApplyDetailsServiceImpl implements IRepairApplyDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairApplyDetailsById(Long id)
|
||||
{
|
||||
public int deleteRepairApplyDetailsById(Long id) {
|
||||
return repairApplyDetailsMapper.deleteRepairApplyDetailsById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.repair.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.repair.service.IRepairApplyRecordService;
|
|||
* 维修记录Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService
|
||||
{
|
||||
public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService {
|
||||
@Autowired
|
||||
private RepairApplyRecordMapper repairApplyRecordMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService
|
|||
* @return 维修记录
|
||||
*/
|
||||
@Override
|
||||
public RepairApplyRecord selectRepairApplyRecordById(Long id)
|
||||
{
|
||||
public RepairApplyRecord selectRepairApplyRecordById(Long id) {
|
||||
return repairApplyRecordMapper.selectRepairApplyRecordById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService
|
|||
* @return 维修记录
|
||||
*/
|
||||
@Override
|
||||
public List<RepairApplyRecord> selectRepairApplyRecordList(RepairApplyRecord repairApplyRecord)
|
||||
{
|
||||
public List<RepairApplyRecord> selectRepairApplyRecordList(RepairApplyRecord repairApplyRecord) {
|
||||
return repairApplyRecordMapper.selectRepairApplyRecordList(repairApplyRecord);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairApplyRecord(RepairApplyRecord repairApplyRecord)
|
||||
{
|
||||
public int insertRepairApplyRecord(RepairApplyRecord repairApplyRecord) {
|
||||
repairApplyRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return repairApplyRecordMapper.insertRepairApplyRecord(repairApplyRecord);
|
||||
try {
|
||||
return repairApplyRecordMapper.insertRepairApplyRecord(repairApplyRecord);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairApplyRecord(RepairApplyRecord repairApplyRecord)
|
||||
{
|
||||
public int updateRepairApplyRecord(RepairApplyRecord repairApplyRecord) {
|
||||
repairApplyRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return repairApplyRecordMapper.updateRepairApplyRecord(repairApplyRecord);
|
||||
try {
|
||||
return repairApplyRecordMapper.updateRepairApplyRecord(repairApplyRecord);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairApplyRecordByIds(Long[] ids)
|
||||
{
|
||||
public int deleteRepairApplyRecordByIds(Long[] ids) {
|
||||
return repairApplyRecordMapper.deleteRepairApplyRecordByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class RepairApplyRecordServiceImpl implements IRepairApplyRecordService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairApplyRecordById(Long id)
|
||||
{
|
||||
public int deleteRepairApplyRecordById(Long id) {
|
||||
return repairApplyRecordMapper.deleteRepairApplyRecordById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.repair.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.repair.service.IRepairAuditDetailsService;
|
|||
* 修试审核详细Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
||||
{
|
||||
public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService {
|
||||
@Autowired
|
||||
private RepairAuditDetailsMapper repairAuditDetailsMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
* @return 修试审核详细
|
||||
*/
|
||||
@Override
|
||||
public RepairAuditDetails selectRepairAuditDetailsById(Long id)
|
||||
{
|
||||
public RepairAuditDetails selectRepairAuditDetailsById(Long id) {
|
||||
return repairAuditDetailsMapper.selectRepairAuditDetailsById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
* @return 修试审核详细
|
||||
*/
|
||||
@Override
|
||||
public List<RepairAuditDetails> selectRepairAuditDetailsList(RepairAuditDetails repairAuditDetails)
|
||||
{
|
||||
public List<RepairAuditDetails> selectRepairAuditDetailsList(RepairAuditDetails repairAuditDetails) {
|
||||
return repairAuditDetailsMapper.selectRepairAuditDetailsList(repairAuditDetails);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairAuditDetails(RepairAuditDetails repairAuditDetails)
|
||||
{
|
||||
public int insertRepairAuditDetails(RepairAuditDetails repairAuditDetails) {
|
||||
repairAuditDetails.setCreateTime(DateUtils.getNowDate());
|
||||
return repairAuditDetailsMapper.insertRepairAuditDetails(repairAuditDetails);
|
||||
try {
|
||||
return repairAuditDetailsMapper.insertRepairAuditDetails(repairAuditDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairAuditDetails(RepairAuditDetails repairAuditDetails)
|
||||
{
|
||||
public int updateRepairAuditDetails(RepairAuditDetails repairAuditDetails) {
|
||||
repairAuditDetails.setUpdateTime(DateUtils.getNowDate());
|
||||
return repairAuditDetailsMapper.updateRepairAuditDetails(repairAuditDetails);
|
||||
try {
|
||||
return repairAuditDetailsMapper.updateRepairAuditDetails(repairAuditDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairAuditDetailsByIds(Long[] ids)
|
||||
{
|
||||
public int deleteRepairAuditDetailsByIds(Long[] ids) {
|
||||
return repairAuditDetailsMapper.deleteRepairAuditDetailsByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairAuditDetailsById(Long id)
|
||||
{
|
||||
public int deleteRepairAuditDetailsById(Long id) {
|
||||
return repairAuditDetailsMapper.deleteRepairAuditDetailsById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.repair.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.material.repair.mapper.RepairCostMapper;
|
||||
|
|
@ -11,11 +12,10 @@ import com.bonus.material.repair.service.IRepairCostService;
|
|||
* 维修详细Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class RepairCostServiceImpl implements IRepairCostService
|
||||
{
|
||||
public class RepairCostServiceImpl implements IRepairCostService {
|
||||
@Autowired
|
||||
private RepairCostMapper repairCostMapper;
|
||||
|
||||
|
|
@ -26,8 +26,7 @@ public class RepairCostServiceImpl implements IRepairCostService
|
|||
* @return 维修详细
|
||||
*/
|
||||
@Override
|
||||
public RepairCost selectRepairCostById(Long id)
|
||||
{
|
||||
public RepairCost selectRepairCostById(Long id) {
|
||||
return repairCostMapper.selectRepairCostById(id);
|
||||
}
|
||||
|
||||
|
|
@ -38,8 +37,7 @@ public class RepairCostServiceImpl implements IRepairCostService
|
|||
* @return 维修详细
|
||||
*/
|
||||
@Override
|
||||
public List<RepairCost> selectRepairCostList(RepairCost repairCost)
|
||||
{
|
||||
public List<RepairCost> selectRepairCostList(RepairCost repairCost) {
|
||||
return repairCostMapper.selectRepairCostList(repairCost);
|
||||
}
|
||||
|
||||
|
|
@ -50,9 +48,12 @@ public class RepairCostServiceImpl implements IRepairCostService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairCost(RepairCost repairCost)
|
||||
{
|
||||
return repairCostMapper.insertRepairCost(repairCost);
|
||||
public int insertRepairCost(RepairCost repairCost) {
|
||||
try {
|
||||
return repairCostMapper.insertRepairCost(repairCost);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -62,9 +63,12 @@ public class RepairCostServiceImpl implements IRepairCostService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairCost(RepairCost repairCost)
|
||||
{
|
||||
return repairCostMapper.updateRepairCost(repairCost);
|
||||
public int updateRepairCost(RepairCost repairCost) {
|
||||
try {
|
||||
return repairCostMapper.updateRepairCost(repairCost);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -74,8 +78,7 @@ public class RepairCostServiceImpl implements IRepairCostService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairCostByIds(Long[] ids)
|
||||
{
|
||||
public int deleteRepairCostByIds(Long[] ids) {
|
||||
return repairCostMapper.deleteRepairCostByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -86,8 +89,7 @@ public class RepairCostServiceImpl implements IRepairCostService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairCostById(Long id)
|
||||
{
|
||||
public int deleteRepairCostById(Long id) {
|
||||
return repairCostMapper.deleteRepairCostById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.repair.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.repair.service.IRepairInputDetailsService;
|
|||
* 修试后入库Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService
|
||||
{
|
||||
public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService {
|
||||
@Autowired
|
||||
private RepairInputDetailsMapper repairInputDetailsMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService
|
|||
* @return 修试后入库
|
||||
*/
|
||||
@Override
|
||||
public RepairInputDetails selectRepairInputDetailsById(Long id)
|
||||
{
|
||||
public RepairInputDetails selectRepairInputDetailsById(Long id) {
|
||||
return repairInputDetailsMapper.selectRepairInputDetailsById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService
|
|||
* @return 修试后入库
|
||||
*/
|
||||
@Override
|
||||
public List<RepairInputDetails> selectRepairInputDetailsList(RepairInputDetails repairInputDetails)
|
||||
{
|
||||
public List<RepairInputDetails> selectRepairInputDetailsList(RepairInputDetails repairInputDetails) {
|
||||
return repairInputDetailsMapper.selectRepairInputDetailsList(repairInputDetails);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairInputDetails(RepairInputDetails repairInputDetails)
|
||||
{
|
||||
public int insertRepairInputDetails(RepairInputDetails repairInputDetails) {
|
||||
repairInputDetails.setCreateTime(DateUtils.getNowDate());
|
||||
return repairInputDetailsMapper.insertRepairInputDetails(repairInputDetails);
|
||||
try {
|
||||
return repairInputDetailsMapper.insertRepairInputDetails(repairInputDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairInputDetails(RepairInputDetails repairInputDetails)
|
||||
{
|
||||
public int updateRepairInputDetails(RepairInputDetails repairInputDetails) {
|
||||
repairInputDetails.setUpdateTime(DateUtils.getNowDate());
|
||||
return repairInputDetailsMapper.updateRepairInputDetails(repairInputDetails);
|
||||
try {
|
||||
return repairInputDetailsMapper.updateRepairInputDetails(repairInputDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairInputDetailsByIds(Long[] ids)
|
||||
{
|
||||
public int deleteRepairInputDetailsByIds(Long[] ids) {
|
||||
return repairInputDetailsMapper.deleteRepairInputDetailsByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class RepairInputDetailsServiceImpl implements IRepairInputDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairInputDetailsById(Long id)
|
||||
{
|
||||
public int deleteRepairInputDetailsById(Long id) {
|
||||
return repairInputDetailsMapper.deleteRepairInputDetailsById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.repair.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.repair.service.IRepairPartDetailsService;
|
|||
* 维修配件详细Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService
|
||||
{
|
||||
public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService {
|
||||
@Autowired
|
||||
private RepairPartDetailsMapper repairPartDetailsMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService
|
|||
* @return 维修配件详细
|
||||
*/
|
||||
@Override
|
||||
public RepairPartDetails selectRepairPartDetailsById(Long id)
|
||||
{
|
||||
public RepairPartDetails selectRepairPartDetailsById(Long id) {
|
||||
return repairPartDetailsMapper.selectRepairPartDetailsById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService
|
|||
* @return 维修配件详细
|
||||
*/
|
||||
@Override
|
||||
public List<RepairPartDetails> selectRepairPartDetailsList(RepairPartDetails repairPartDetails)
|
||||
{
|
||||
public List<RepairPartDetails> selectRepairPartDetailsList(RepairPartDetails repairPartDetails) {
|
||||
return repairPartDetailsMapper.selectRepairPartDetailsList(repairPartDetails);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairPartDetails(RepairPartDetails repairPartDetails)
|
||||
{
|
||||
public int insertRepairPartDetails(RepairPartDetails repairPartDetails) {
|
||||
repairPartDetails.setCreateTime(DateUtils.getNowDate());
|
||||
return repairPartDetailsMapper.insertRepairPartDetails(repairPartDetails);
|
||||
try {
|
||||
return repairPartDetailsMapper.insertRepairPartDetails(repairPartDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairPartDetails(RepairPartDetails repairPartDetails)
|
||||
{
|
||||
public int updateRepairPartDetails(RepairPartDetails repairPartDetails) {
|
||||
repairPartDetails.setUpdateTime(DateUtils.getNowDate());
|
||||
return repairPartDetailsMapper.updateRepairPartDetails(repairPartDetails);
|
||||
try {
|
||||
return repairPartDetailsMapper.updateRepairPartDetails(repairPartDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairPartDetailsByIds(Long[] ids)
|
||||
{
|
||||
public int deleteRepairPartDetailsByIds(Long[] ids) {
|
||||
return repairPartDetailsMapper.deleteRepairPartDetailsByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class RepairPartDetailsServiceImpl implements IRepairPartDetailsService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairPartDetailsById(Long id)
|
||||
{
|
||||
public int deleteRepairPartDetailsById(Long id) {
|
||||
return repairPartDetailsMapper.deleteRepairPartDetailsById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue