add(ems/info): 添加日常故障记录表、行李系统UPS电池生命周期表、动力能源部行输科备件领用更换记录表、故障处置记录表
parent
727d034efe
commit
474f3f1fb2
@ -0,0 +1,106 @@
|
||||
package com.os.ems.info.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.os.common.annotation.Log;
|
||||
import com.os.common.core.controller.BaseController;
|
||||
import com.os.common.core.domain.AjaxResult;
|
||||
import com.os.common.enums.BusinessType;
|
||||
import com.os.ems.info.domain.DailyFaultRecord;
|
||||
import com.os.ems.info.service.IDailyFaultRecordService;
|
||||
import com.os.common.utils.poi.ExcelUtil;
|
||||
import com.os.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 日常故障记录Controller
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/info/dailyFaultRecord")
|
||||
public class DailyFaultRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDailyFaultRecordService dailyFaultRecordService;
|
||||
|
||||
/**
|
||||
* 查询日常故障记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:dailyFaultRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DailyFaultRecord dailyFaultRecord)
|
||||
{
|
||||
startPage();
|
||||
List<DailyFaultRecord> list = dailyFaultRecordService.selectDailyFaultRecordList(dailyFaultRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出日常故障记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:dailyFaultRecord:export')")
|
||||
@Log(title = "日常故障记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DailyFaultRecord dailyFaultRecord)
|
||||
{
|
||||
List<DailyFaultRecord> list = dailyFaultRecordService.selectDailyFaultRecordList(dailyFaultRecord);
|
||||
ExcelUtil<DailyFaultRecord> util = new ExcelUtil<DailyFaultRecord>(DailyFaultRecord.class);
|
||||
util.exportExcel(response, list, "日常故障记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取日常故障记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:dailyFaultRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(dailyFaultRecordService.selectDailyFaultRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增日常故障记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:dailyFaultRecord:add')")
|
||||
@Log(title = "日常故障记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DailyFaultRecord dailyFaultRecord)
|
||||
{
|
||||
dailyFaultRecord.setCreateBy(getUsername());
|
||||
return toAjax(dailyFaultRecordService.insertDailyFaultRecord(dailyFaultRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改日常故障记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:dailyFaultRecord:edit')")
|
||||
@Log(title = "日常故障记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DailyFaultRecord dailyFaultRecord)
|
||||
{
|
||||
dailyFaultRecord.setUpdateBy(getUsername());
|
||||
return toAjax(dailyFaultRecordService.updateDailyFaultRecord(dailyFaultRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除日常故障记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:dailyFaultRecord:remove')")
|
||||
@Log(title = "日常故障记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(dailyFaultRecordService.deleteDailyFaultRecordByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.os.ems.info.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.os.common.annotation.Log;
|
||||
import com.os.common.core.controller.BaseController;
|
||||
import com.os.common.core.domain.AjaxResult;
|
||||
import com.os.common.enums.BusinessType;
|
||||
import com.os.ems.info.domain.FaultHandlingRecord;
|
||||
import com.os.ems.info.service.IFaultHandlingRecordService;
|
||||
import com.os.common.utils.poi.ExcelUtil;
|
||||
import com.os.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 故障处置记录Controller
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/info/faultHandlingRecord")
|
||||
public class FaultHandlingRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IFaultHandlingRecordService faultHandlingRecordService;
|
||||
|
||||
/**
|
||||
* 查询故障处置记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:faultHandlingRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(FaultHandlingRecord faultHandlingRecord)
|
||||
{
|
||||
startPage();
|
||||
List<FaultHandlingRecord> list = faultHandlingRecordService.selectFaultHandlingRecordList(faultHandlingRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出故障处置记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:faultHandlingRecord:export')")
|
||||
@Log(title = "故障处置记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, FaultHandlingRecord faultHandlingRecord)
|
||||
{
|
||||
List<FaultHandlingRecord> list = faultHandlingRecordService.selectFaultHandlingRecordList(faultHandlingRecord);
|
||||
ExcelUtil<FaultHandlingRecord> util = new ExcelUtil<FaultHandlingRecord>(FaultHandlingRecord.class);
|
||||
util.exportExcel(response, list, "故障处置记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取故障处置记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:faultHandlingRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(faultHandlingRecordService.selectFaultHandlingRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增故障处置记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:faultHandlingRecord:add')")
|
||||
@Log(title = "故障处置记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody FaultHandlingRecord faultHandlingRecord)
|
||||
{
|
||||
faultHandlingRecord.setCreateBy(getUsername());
|
||||
return toAjax(faultHandlingRecordService.insertFaultHandlingRecord(faultHandlingRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改故障处置记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:faultHandlingRecord:edit')")
|
||||
@Log(title = "故障处置记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody FaultHandlingRecord faultHandlingRecord)
|
||||
{
|
||||
faultHandlingRecord.setUpdateBy(getUsername());
|
||||
return toAjax(faultHandlingRecordService.updateFaultHandlingRecord(faultHandlingRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除故障处置记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:faultHandlingRecord:remove')")
|
||||
@Log(title = "故障处置记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(faultHandlingRecordService.deleteFaultHandlingRecordByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.os.ems.info.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.os.common.annotation.Log;
|
||||
import com.os.common.core.controller.BaseController;
|
||||
import com.os.common.core.domain.AjaxResult;
|
||||
import com.os.common.enums.BusinessType;
|
||||
import com.os.ems.info.domain.SparePartsUsageRecord;
|
||||
import com.os.ems.info.service.ISparePartsUsageRecordService;
|
||||
import com.os.common.utils.poi.ExcelUtil;
|
||||
import com.os.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 动力能源部行输科备件领用更换记录Controller
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/info/SparePartsUsageRecord")
|
||||
public class SparePartsUsageRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISparePartsUsageRecordService sparePartsUsageRecordService;
|
||||
|
||||
/**
|
||||
* 查询动力能源部行输科备件领用更换记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:SparePartsUsageRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SparePartsUsageRecord sparePartsUsageRecord)
|
||||
{
|
||||
startPage();
|
||||
List<SparePartsUsageRecord> list = sparePartsUsageRecordService.selectSparePartsUsageRecordList(sparePartsUsageRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出动力能源部行输科备件领用更换记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:SparePartsUsageRecord:export')")
|
||||
@Log(title = "动力能源部行输科备件领用更换记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SparePartsUsageRecord sparePartsUsageRecord)
|
||||
{
|
||||
List<SparePartsUsageRecord> list = sparePartsUsageRecordService.selectSparePartsUsageRecordList(sparePartsUsageRecord);
|
||||
ExcelUtil<SparePartsUsageRecord> util = new ExcelUtil<SparePartsUsageRecord>(SparePartsUsageRecord.class);
|
||||
util.exportExcel(response, list, "动力能源部行输科备件领用更换记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取动力能源部行输科备件领用更换记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:SparePartsUsageRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(sparePartsUsageRecordService.selectSparePartsUsageRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增动力能源部行输科备件领用更换记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:SparePartsUsageRecord:add')")
|
||||
@Log(title = "动力能源部行输科备件领用更换记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SparePartsUsageRecord sparePartsUsageRecord)
|
||||
{
|
||||
sparePartsUsageRecord.setCreateBy(getUsername());
|
||||
return toAjax(sparePartsUsageRecordService.insertSparePartsUsageRecord(sparePartsUsageRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改动力能源部行输科备件领用更换记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:SparePartsUsageRecord:edit')")
|
||||
@Log(title = "动力能源部行输科备件领用更换记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SparePartsUsageRecord sparePartsUsageRecord)
|
||||
{
|
||||
sparePartsUsageRecord.setUpdateBy(getUsername());
|
||||
return toAjax(sparePartsUsageRecordService.updateSparePartsUsageRecord(sparePartsUsageRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除动力能源部行输科备件领用更换记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:SparePartsUsageRecord:remove')")
|
||||
@Log(title = "动力能源部行输科备件领用更换记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(sparePartsUsageRecordService.deleteSparePartsUsageRecordByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.os.ems.info.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.os.common.annotation.Log;
|
||||
import com.os.common.core.controller.BaseController;
|
||||
import com.os.common.core.domain.AjaxResult;
|
||||
import com.os.common.enums.BusinessType;
|
||||
import com.os.ems.info.domain.UpsBatteryLifecycle;
|
||||
import com.os.ems.info.service.IUpsBatteryLifecycleService;
|
||||
import com.os.common.utils.poi.ExcelUtil;
|
||||
import com.os.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 行李系统UPS电池生命周期Controller
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/info/upsBatteryLifecycle")
|
||||
public class UpsBatteryLifecycleController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IUpsBatteryLifecycleService upsBatteryLifecycleService;
|
||||
|
||||
/**
|
||||
* 查询行李系统UPS电池生命周期列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:upsBatteryLifecycle:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(UpsBatteryLifecycle upsBatteryLifecycle)
|
||||
{
|
||||
startPage();
|
||||
List<UpsBatteryLifecycle> list = upsBatteryLifecycleService.selectUpsBatteryLifecycleList(upsBatteryLifecycle);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出行李系统UPS电池生命周期列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:upsBatteryLifecycle:export')")
|
||||
@Log(title = "行李系统UPS电池生命周期", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, UpsBatteryLifecycle upsBatteryLifecycle)
|
||||
{
|
||||
List<UpsBatteryLifecycle> list = upsBatteryLifecycleService.selectUpsBatteryLifecycleList(upsBatteryLifecycle);
|
||||
ExcelUtil<UpsBatteryLifecycle> util = new ExcelUtil<UpsBatteryLifecycle>(UpsBatteryLifecycle.class);
|
||||
util.exportExcel(response, list, "行李系统UPS电池生命周期数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取行李系统UPS电池生命周期详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:upsBatteryLifecycle:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(upsBatteryLifecycleService.selectUpsBatteryLifecycleById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增行李系统UPS电池生命周期
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:upsBatteryLifecycle:add')")
|
||||
@Log(title = "行李系统UPS电池生命周期", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody UpsBatteryLifecycle upsBatteryLifecycle)
|
||||
{
|
||||
upsBatteryLifecycle.setCreateBy(getUsername());
|
||||
return toAjax(upsBatteryLifecycleService.insertUpsBatteryLifecycle(upsBatteryLifecycle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改行李系统UPS电池生命周期
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:upsBatteryLifecycle:edit')")
|
||||
@Log(title = "行李系统UPS电池生命周期", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody UpsBatteryLifecycle upsBatteryLifecycle)
|
||||
{
|
||||
upsBatteryLifecycle.setUpdateBy(getUsername());
|
||||
return toAjax(upsBatteryLifecycleService.updateUpsBatteryLifecycle(upsBatteryLifecycle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除行李系统UPS电池生命周期
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/info:upsBatteryLifecycle:remove')")
|
||||
@Log(title = "行李系统UPS电池生命周期", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(upsBatteryLifecycleService.deleteUpsBatteryLifecycleByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.DailyFaultRecord;
|
||||
|
||||
/**
|
||||
* 日常故障记录Mapper接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface DailyFaultRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询日常故障记录
|
||||
*
|
||||
* @param id 日常故障记录主键
|
||||
* @return 日常故障记录
|
||||
*/
|
||||
public DailyFaultRecord selectDailyFaultRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询日常故障记录列表
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 日常故障记录集合
|
||||
*/
|
||||
public List<DailyFaultRecord> selectDailyFaultRecordList(DailyFaultRecord dailyFaultRecord);
|
||||
|
||||
/**
|
||||
* 新增日常故障记录
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDailyFaultRecord(DailyFaultRecord dailyFaultRecord);
|
||||
|
||||
/**
|
||||
* 修改日常故障记录
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDailyFaultRecord(DailyFaultRecord dailyFaultRecord);
|
||||
|
||||
/**
|
||||
* 删除日常故障记录
|
||||
*
|
||||
* @param id 日常故障记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDailyFaultRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除日常故障记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDailyFaultRecordByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.FaultHandlingRecord;
|
||||
|
||||
/**
|
||||
* 故障处置记录Mapper接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface FaultHandlingRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询故障处置记录
|
||||
*
|
||||
* @param id 故障处置记录主键
|
||||
* @return 故障处置记录
|
||||
*/
|
||||
public FaultHandlingRecord selectFaultHandlingRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询故障处置记录列表
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 故障处置记录集合
|
||||
*/
|
||||
public List<FaultHandlingRecord> selectFaultHandlingRecordList(FaultHandlingRecord faultHandlingRecord);
|
||||
|
||||
/**
|
||||
* 新增故障处置记录
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFaultHandlingRecord(FaultHandlingRecord faultHandlingRecord);
|
||||
|
||||
/**
|
||||
* 修改故障处置记录
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFaultHandlingRecord(FaultHandlingRecord faultHandlingRecord);
|
||||
|
||||
/**
|
||||
* 删除故障处置记录
|
||||
*
|
||||
* @param id 故障处置记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFaultHandlingRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除故障处置记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFaultHandlingRecordByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.SparePartsUsageRecord;
|
||||
|
||||
/**
|
||||
* 动力能源部行输科备件领用更换记录Mapper接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface SparePartsUsageRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param id 动力能源部行输科备件领用更换记录主键
|
||||
* @return 动力能源部行输科备件领用更换记录
|
||||
*/
|
||||
public SparePartsUsageRecord selectSparePartsUsageRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询动力能源部行输科备件领用更换记录列表
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 动力能源部行输科备件领用更换记录集合
|
||||
*/
|
||||
public List<SparePartsUsageRecord> selectSparePartsUsageRecordList(SparePartsUsageRecord sparePartsUsageRecord);
|
||||
|
||||
/**
|
||||
* 新增动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSparePartsUsageRecord(SparePartsUsageRecord sparePartsUsageRecord);
|
||||
|
||||
/**
|
||||
* 修改动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSparePartsUsageRecord(SparePartsUsageRecord sparePartsUsageRecord);
|
||||
|
||||
/**
|
||||
* 删除动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param id 动力能源部行输科备件领用更换记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSparePartsUsageRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSparePartsUsageRecordByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.UpsBatteryLifecycle;
|
||||
|
||||
/**
|
||||
* 行李系统UPS电池生命周期Mapper接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface UpsBatteryLifecycleMapper
|
||||
{
|
||||
/**
|
||||
* 查询行李系统UPS电池生命周期
|
||||
*
|
||||
* @param id 行李系统UPS电池生命周期主键
|
||||
* @return 行李系统UPS电池生命周期
|
||||
*/
|
||||
public UpsBatteryLifecycle selectUpsBatteryLifecycleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行李系统UPS电池生命周期列表
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 行李系统UPS电池生命周期集合
|
||||
*/
|
||||
public List<UpsBatteryLifecycle> selectUpsBatteryLifecycleList(UpsBatteryLifecycle upsBatteryLifecycle);
|
||||
|
||||
/**
|
||||
* 新增行李系统UPS电池生命周期
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUpsBatteryLifecycle(UpsBatteryLifecycle upsBatteryLifecycle);
|
||||
|
||||
/**
|
||||
* 修改行李系统UPS电池生命周期
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUpsBatteryLifecycle(UpsBatteryLifecycle upsBatteryLifecycle);
|
||||
|
||||
/**
|
||||
* 删除行李系统UPS电池生命周期
|
||||
*
|
||||
* @param id 行李系统UPS电池生命周期主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpsBatteryLifecycleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除行李系统UPS电池生命周期
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpsBatteryLifecycleByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.DailyFaultRecord;
|
||||
|
||||
/**
|
||||
* 日常故障记录Service接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface IDailyFaultRecordService
|
||||
{
|
||||
/**
|
||||
* 查询日常故障记录
|
||||
*
|
||||
* @param id 日常故障记录主键
|
||||
* @return 日常故障记录
|
||||
*/
|
||||
public DailyFaultRecord selectDailyFaultRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询日常故障记录列表
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 日常故障记录集合
|
||||
*/
|
||||
public List<DailyFaultRecord> selectDailyFaultRecordList(DailyFaultRecord dailyFaultRecord);
|
||||
|
||||
/**
|
||||
* 新增日常故障记录
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDailyFaultRecord(DailyFaultRecord dailyFaultRecord);
|
||||
|
||||
/**
|
||||
* 修改日常故障记录
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDailyFaultRecord(DailyFaultRecord dailyFaultRecord);
|
||||
|
||||
/**
|
||||
* 批量删除日常故障记录
|
||||
*
|
||||
* @param ids 需要删除的日常故障记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDailyFaultRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除日常故障记录信息
|
||||
*
|
||||
* @param id 日常故障记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDailyFaultRecordById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.FaultHandlingRecord;
|
||||
|
||||
/**
|
||||
* 故障处置记录Service接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface IFaultHandlingRecordService
|
||||
{
|
||||
/**
|
||||
* 查询故障处置记录
|
||||
*
|
||||
* @param id 故障处置记录主键
|
||||
* @return 故障处置记录
|
||||
*/
|
||||
public FaultHandlingRecord selectFaultHandlingRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询故障处置记录列表
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 故障处置记录集合
|
||||
*/
|
||||
public List<FaultHandlingRecord> selectFaultHandlingRecordList(FaultHandlingRecord faultHandlingRecord);
|
||||
|
||||
/**
|
||||
* 新增故障处置记录
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFaultHandlingRecord(FaultHandlingRecord faultHandlingRecord);
|
||||
|
||||
/**
|
||||
* 修改故障处置记录
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFaultHandlingRecord(FaultHandlingRecord faultHandlingRecord);
|
||||
|
||||
/**
|
||||
* 批量删除故障处置记录
|
||||
*
|
||||
* @param ids 需要删除的故障处置记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFaultHandlingRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除故障处置记录信息
|
||||
*
|
||||
* @param id 故障处置记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFaultHandlingRecordById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.SparePartsUsageRecord;
|
||||
|
||||
/**
|
||||
* 动力能源部行输科备件领用更换记录Service接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface ISparePartsUsageRecordService
|
||||
{
|
||||
/**
|
||||
* 查询动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param id 动力能源部行输科备件领用更换记录主键
|
||||
* @return 动力能源部行输科备件领用更换记录
|
||||
*/
|
||||
public SparePartsUsageRecord selectSparePartsUsageRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询动力能源部行输科备件领用更换记录列表
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 动力能源部行输科备件领用更换记录集合
|
||||
*/
|
||||
public List<SparePartsUsageRecord> selectSparePartsUsageRecordList(SparePartsUsageRecord sparePartsUsageRecord);
|
||||
|
||||
/**
|
||||
* 新增动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSparePartsUsageRecord(SparePartsUsageRecord sparePartsUsageRecord);
|
||||
|
||||
/**
|
||||
* 修改动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSparePartsUsageRecord(SparePartsUsageRecord sparePartsUsageRecord);
|
||||
|
||||
/**
|
||||
* 批量删除动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param ids 需要删除的动力能源部行输科备件领用更换记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSparePartsUsageRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除动力能源部行输科备件领用更换记录信息
|
||||
*
|
||||
* @param id 动力能源部行输科备件领用更换记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSparePartsUsageRecordById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.info.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.info.domain.UpsBatteryLifecycle;
|
||||
|
||||
/**
|
||||
* 行李系统UPS电池生命周期Service接口
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
public interface IUpsBatteryLifecycleService
|
||||
{
|
||||
/**
|
||||
* 查询行李系统UPS电池生命周期
|
||||
*
|
||||
* @param id 行李系统UPS电池生命周期主键
|
||||
* @return 行李系统UPS电池生命周期
|
||||
*/
|
||||
public UpsBatteryLifecycle selectUpsBatteryLifecycleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行李系统UPS电池生命周期列表
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 行李系统UPS电池生命周期集合
|
||||
*/
|
||||
public List<UpsBatteryLifecycle> selectUpsBatteryLifecycleList(UpsBatteryLifecycle upsBatteryLifecycle);
|
||||
|
||||
/**
|
||||
* 新增行李系统UPS电池生命周期
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUpsBatteryLifecycle(UpsBatteryLifecycle upsBatteryLifecycle);
|
||||
|
||||
/**
|
||||
* 修改行李系统UPS电池生命周期
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUpsBatteryLifecycle(UpsBatteryLifecycle upsBatteryLifecycle);
|
||||
|
||||
/**
|
||||
* 批量删除行李系统UPS电池生命周期
|
||||
*
|
||||
* @param ids 需要删除的行李系统UPS电池生命周期主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpsBatteryLifecycleByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除行李系统UPS电池生命周期信息
|
||||
*
|
||||
* @param id 行李系统UPS电池生命周期主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpsBatteryLifecycleById(Long id);
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.os.ems.info.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.os.ems.info.mapper.DailyFaultRecordMapper;
|
||||
import com.os.ems.info.domain.DailyFaultRecord;
|
||||
import com.os.ems.info.service.IDailyFaultRecordService;
|
||||
|
||||
/**
|
||||
* 日常故障记录Service业务层处理
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@Service
|
||||
public class DailyFaultRecordServiceImpl implements IDailyFaultRecordService
|
||||
{
|
||||
@Autowired
|
||||
private DailyFaultRecordMapper dailyFaultRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询日常故障记录
|
||||
*
|
||||
* @param id 日常故障记录主键
|
||||
* @return 日常故障记录
|
||||
*/
|
||||
@Override
|
||||
public DailyFaultRecord selectDailyFaultRecordById(Long id)
|
||||
{
|
||||
return dailyFaultRecordMapper.selectDailyFaultRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询日常故障记录列表
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 日常故障记录
|
||||
*/
|
||||
@Override
|
||||
public List<DailyFaultRecord> selectDailyFaultRecordList(DailyFaultRecord dailyFaultRecord)
|
||||
{
|
||||
return dailyFaultRecordMapper.selectDailyFaultRecordList(dailyFaultRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增日常故障记录
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDailyFaultRecord(DailyFaultRecord dailyFaultRecord)
|
||||
{
|
||||
return dailyFaultRecordMapper.insertDailyFaultRecord(dailyFaultRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改日常故障记录
|
||||
*
|
||||
* @param dailyFaultRecord 日常故障记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDailyFaultRecord(DailyFaultRecord dailyFaultRecord)
|
||||
{
|
||||
return dailyFaultRecordMapper.updateDailyFaultRecord(dailyFaultRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除日常故障记录
|
||||
*
|
||||
* @param ids 需要删除的日常故障记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDailyFaultRecordByIds(Long[] ids)
|
||||
{
|
||||
return dailyFaultRecordMapper.deleteDailyFaultRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除日常故障记录信息
|
||||
*
|
||||
* @param id 日常故障记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDailyFaultRecordById(Long id)
|
||||
{
|
||||
return dailyFaultRecordMapper.deleteDailyFaultRecordById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.os.ems.info.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.os.ems.info.mapper.FaultHandlingRecordMapper;
|
||||
import com.os.ems.info.domain.FaultHandlingRecord;
|
||||
import com.os.ems.info.service.IFaultHandlingRecordService;
|
||||
|
||||
/**
|
||||
* 故障处置记录Service业务层处理
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@Service
|
||||
public class FaultHandlingRecordServiceImpl implements IFaultHandlingRecordService
|
||||
{
|
||||
@Autowired
|
||||
private FaultHandlingRecordMapper faultHandlingRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询故障处置记录
|
||||
*
|
||||
* @param id 故障处置记录主键
|
||||
* @return 故障处置记录
|
||||
*/
|
||||
@Override
|
||||
public FaultHandlingRecord selectFaultHandlingRecordById(Long id)
|
||||
{
|
||||
return faultHandlingRecordMapper.selectFaultHandlingRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询故障处置记录列表
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 故障处置记录
|
||||
*/
|
||||
@Override
|
||||
public List<FaultHandlingRecord> selectFaultHandlingRecordList(FaultHandlingRecord faultHandlingRecord)
|
||||
{
|
||||
return faultHandlingRecordMapper.selectFaultHandlingRecordList(faultHandlingRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增故障处置记录
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertFaultHandlingRecord(FaultHandlingRecord faultHandlingRecord)
|
||||
{
|
||||
return faultHandlingRecordMapper.insertFaultHandlingRecord(faultHandlingRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改故障处置记录
|
||||
*
|
||||
* @param faultHandlingRecord 故障处置记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateFaultHandlingRecord(FaultHandlingRecord faultHandlingRecord)
|
||||
{
|
||||
return faultHandlingRecordMapper.updateFaultHandlingRecord(faultHandlingRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除故障处置记录
|
||||
*
|
||||
* @param ids 需要删除的故障处置记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFaultHandlingRecordByIds(Long[] ids)
|
||||
{
|
||||
return faultHandlingRecordMapper.deleteFaultHandlingRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除故障处置记录信息
|
||||
*
|
||||
* @param id 故障处置记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFaultHandlingRecordById(Long id)
|
||||
{
|
||||
return faultHandlingRecordMapper.deleteFaultHandlingRecordById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.os.ems.info.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.os.ems.info.mapper.SparePartsUsageRecordMapper;
|
||||
import com.os.ems.info.domain.SparePartsUsageRecord;
|
||||
import com.os.ems.info.service.ISparePartsUsageRecordService;
|
||||
|
||||
/**
|
||||
* 动力能源部行输科备件领用更换记录Service业务层处理
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@Service
|
||||
public class SparePartsUsageRecordServiceImpl implements ISparePartsUsageRecordService
|
||||
{
|
||||
@Autowired
|
||||
private SparePartsUsageRecordMapper sparePartsUsageRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param id 动力能源部行输科备件领用更换记录主键
|
||||
* @return 动力能源部行输科备件领用更换记录
|
||||
*/
|
||||
@Override
|
||||
public SparePartsUsageRecord selectSparePartsUsageRecordById(Long id)
|
||||
{
|
||||
return sparePartsUsageRecordMapper.selectSparePartsUsageRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询动力能源部行输科备件领用更换记录列表
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 动力能源部行输科备件领用更换记录
|
||||
*/
|
||||
@Override
|
||||
public List<SparePartsUsageRecord> selectSparePartsUsageRecordList(SparePartsUsageRecord sparePartsUsageRecord)
|
||||
{
|
||||
return sparePartsUsageRecordMapper.selectSparePartsUsageRecordList(sparePartsUsageRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSparePartsUsageRecord(SparePartsUsageRecord sparePartsUsageRecord)
|
||||
{
|
||||
return sparePartsUsageRecordMapper.insertSparePartsUsageRecord(sparePartsUsageRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param sparePartsUsageRecord 动力能源部行输科备件领用更换记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSparePartsUsageRecord(SparePartsUsageRecord sparePartsUsageRecord)
|
||||
{
|
||||
return sparePartsUsageRecordMapper.updateSparePartsUsageRecord(sparePartsUsageRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除动力能源部行输科备件领用更换记录
|
||||
*
|
||||
* @param ids 需要删除的动力能源部行输科备件领用更换记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSparePartsUsageRecordByIds(Long[] ids)
|
||||
{
|
||||
return sparePartsUsageRecordMapper.deleteSparePartsUsageRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除动力能源部行输科备件领用更换记录信息
|
||||
*
|
||||
* @param id 动力能源部行输科备件领用更换记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSparePartsUsageRecordById(Long id)
|
||||
{
|
||||
return sparePartsUsageRecordMapper.deleteSparePartsUsageRecordById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.os.ems.info.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.os.ems.info.mapper.UpsBatteryLifecycleMapper;
|
||||
import com.os.ems.info.domain.UpsBatteryLifecycle;
|
||||
import com.os.ems.info.service.IUpsBatteryLifecycleService;
|
||||
|
||||
/**
|
||||
* 行李系统UPS电池生命周期Service业务层处理
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-06-03
|
||||
*/
|
||||
@Service
|
||||
public class UpsBatteryLifecycleServiceImpl implements IUpsBatteryLifecycleService
|
||||
{
|
||||
@Autowired
|
||||
private UpsBatteryLifecycleMapper upsBatteryLifecycleMapper;
|
||||
|
||||
/**
|
||||
* 查询行李系统UPS电池生命周期
|
||||
*
|
||||
* @param id 行李系统UPS电池生命周期主键
|
||||
* @return 行李系统UPS电池生命周期
|
||||
*/
|
||||
@Override
|
||||
public UpsBatteryLifecycle selectUpsBatteryLifecycleById(Long id)
|
||||
{
|
||||
return upsBatteryLifecycleMapper.selectUpsBatteryLifecycleById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询行李系统UPS电池生命周期列表
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 行李系统UPS电池生命周期
|
||||
*/
|
||||
@Override
|
||||
public List<UpsBatteryLifecycle> selectUpsBatteryLifecycleList(UpsBatteryLifecycle upsBatteryLifecycle)
|
||||
{
|
||||
return upsBatteryLifecycleMapper.selectUpsBatteryLifecycleList(upsBatteryLifecycle);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增行李系统UPS电池生命周期
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertUpsBatteryLifecycle(UpsBatteryLifecycle upsBatteryLifecycle)
|
||||
{
|
||||
return upsBatteryLifecycleMapper.insertUpsBatteryLifecycle(upsBatteryLifecycle);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改行李系统UPS电池生命周期
|
||||
*
|
||||
* @param upsBatteryLifecycle 行李系统UPS电池生命周期
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateUpsBatteryLifecycle(UpsBatteryLifecycle upsBatteryLifecycle)
|
||||
{
|
||||
return upsBatteryLifecycleMapper.updateUpsBatteryLifecycle(upsBatteryLifecycle);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除行李系统UPS电池生命周期
|
||||
*
|
||||
* @param ids 需要删除的行李系统UPS电池生命周期主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUpsBatteryLifecycleByIds(Long[] ids)
|
||||
{
|
||||
return upsBatteryLifecycleMapper.deleteUpsBatteryLifecycleByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除行李系统UPS电池生命周期信息
|
||||
*
|
||||
* @param id 行李系统UPS电池生命周期主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUpsBatteryLifecycleById(Long id)
|
||||
{
|
||||
return upsBatteryLifecycleMapper.deleteUpsBatteryLifecycleById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.os.ems.info.mapper.DailyFaultRecordMapper">
|
||||
|
||||
<resultMap type="DailyFaultRecord" id="DailyFaultRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="date" column="date" />
|
||||
<result property="location" column="location" />
|
||||
<result property="dailyDutySupervisor" column="daily_duty_supervisor" />
|
||||
<result property="tendaDailyDutySupervisor" column="tenda_daily_duty_supervisor" />
|
||||
<result property="faultSituation" column="fault_situation" />
|
||||
<result property="handlingMeasures" column="handling_measures" />
|
||||
<result property="faultType" column="fault_type" />
|
||||
<result property="faultOccurrenceTime" column="fault_occurrence_time" />
|
||||
<result property="handlingCompletionTime" column="handling_completion_time" />
|
||||
<result property="handlingDuration" column="handling_duration" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDailyFaultRecordVo">
|
||||
select id, date, location, daily_duty_supervisor, tenda_daily_duty_supervisor, fault_situation, handling_measures, fault_type, fault_occurrence_time, handling_completion_time, handling_duration from daily_fault_record
|
||||
</sql>
|
||||
|
||||
<select id="selectDailyFaultRecordList" parameterType="DailyFaultRecord" resultMap="DailyFaultRecordResult">
|
||||
<include refid="selectDailyFaultRecordVo"/>
|
||||
<where>
|
||||
<if test="date != null "> and date = #{date}</if>
|
||||
<if test="location != null and location != ''"> and location = #{location}</if>
|
||||
<if test="dailyDutySupervisor != null and dailyDutySupervisor != ''"> and daily_duty_supervisor = #{dailyDutySupervisor}</if>
|
||||
<if test="tendaDailyDutySupervisor != null and tendaDailyDutySupervisor != ''"> and tenda_daily_duty_supervisor = #{tendaDailyDutySupervisor}</if>
|
||||
<if test="faultSituation != null and faultSituation != ''"> and fault_situation = #{faultSituation}</if>
|
||||
<if test="handlingMeasures != null and handlingMeasures != ''"> and handling_measures = #{handlingMeasures}</if>
|
||||
<if test="faultType != null and faultType != ''"> and fault_type = #{faultType}</if>
|
||||
<if test="faultOccurrenceTime != null "> and fault_occurrence_time = #{faultOccurrenceTime}</if>
|
||||
<if test="handlingCompletionTime != null "> and handling_completion_time = #{handlingCompletionTime}</if>
|
||||
<if test="handlingDuration != null "> and handling_duration = #{handlingDuration}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDailyFaultRecordById" parameterType="Long" resultMap="DailyFaultRecordResult">
|
||||
<include refid="selectDailyFaultRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDailyFaultRecord" parameterType="DailyFaultRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into daily_fault_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="date != null">date,</if>
|
||||
<if test="location != null">location,</if>
|
||||
<if test="dailyDutySupervisor != null">daily_duty_supervisor,</if>
|
||||
<if test="tendaDailyDutySupervisor != null">tenda_daily_duty_supervisor,</if>
|
||||
<if test="faultSituation != null">fault_situation,</if>
|
||||
<if test="handlingMeasures != null">handling_measures,</if>
|
||||
<if test="faultType != null">fault_type,</if>
|
||||
<if test="faultOccurrenceTime != null">fault_occurrence_time,</if>
|
||||
<if test="handlingCompletionTime != null">handling_completion_time,</if>
|
||||
<if test="handlingDuration != null">handling_duration,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="date != null">#{date},</if>
|
||||
<if test="location != null">#{location},</if>
|
||||
<if test="dailyDutySupervisor != null">#{dailyDutySupervisor},</if>
|
||||
<if test="tendaDailyDutySupervisor != null">#{tendaDailyDutySupervisor},</if>
|
||||
<if test="faultSituation != null">#{faultSituation},</if>
|
||||
<if test="handlingMeasures != null">#{handlingMeasures},</if>
|
||||
<if test="faultType != null">#{faultType},</if>
|
||||
<if test="faultOccurrenceTime != null">#{faultOccurrenceTime},</if>
|
||||
<if test="handlingCompletionTime != null">#{handlingCompletionTime},</if>
|
||||
<if test="handlingDuration != null">#{handlingDuration},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDailyFaultRecord" parameterType="DailyFaultRecord">
|
||||
update daily_fault_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="date != null">date = #{date},</if>
|
||||
<if test="location != null">location = #{location},</if>
|
||||
<if test="dailyDutySupervisor != null">daily_duty_supervisor = #{dailyDutySupervisor},</if>
|
||||
<if test="tendaDailyDutySupervisor != null">tenda_daily_duty_supervisor = #{tendaDailyDutySupervisor},</if>
|
||||
<if test="faultSituation != null">fault_situation = #{faultSituation},</if>
|
||||
<if test="handlingMeasures != null">handling_measures = #{handlingMeasures},</if>
|
||||
<if test="faultType != null">fault_type = #{faultType},</if>
|
||||
<if test="faultOccurrenceTime != null">fault_occurrence_time = #{faultOccurrenceTime},</if>
|
||||
<if test="handlingCompletionTime != null">handling_completion_time = #{handlingCompletionTime},</if>
|
||||
<if test="handlingDuration != null">handling_duration = #{handlingDuration},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDailyFaultRecordById" parameterType="Long">
|
||||
delete from daily_fault_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDailyFaultRecordByIds" parameterType="String">
|
||||
delete from daily_fault_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.os.ems.info.mapper.FaultHandlingRecordMapper">
|
||||
|
||||
<resultMap type="FaultHandlingRecord" id="FaultHandlingRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="faultDate" column="fault_date" />
|
||||
<result property="faultLocation" column="fault_location" />
|
||||
<result property="handlingPersonnel" column="handling_personnel" />
|
||||
<result property="faultPhenomenonAndCause" column="fault_phenomenon_and_cause" />
|
||||
<result property="faultSituationHandling" column="fault_situation_handling" />
|
||||
<result property="impact" column="impact" />
|
||||
<result property="faultOccurrenceTime" column="fault_occurrence_time" />
|
||||
<result property="handlingDuration" column="handling_duration" />
|
||||
<result property="mainComponentsRepaired" column="main_components_repaired" />
|
||||
<result property="remarks" column="remarks" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectFaultHandlingRecordVo">
|
||||
select id, fault_date, fault_location, handling_personnel, fault_phenomenon_and_cause, fault_situation_handling, impact, fault_occurrence_time, handling_duration, main_components_repaired, remarks from fault_handling_record
|
||||
</sql>
|
||||
|
||||
<select id="selectFaultHandlingRecordList" parameterType="FaultHandlingRecord" resultMap="FaultHandlingRecordResult">
|
||||
<include refid="selectFaultHandlingRecordVo"/>
|
||||
<where>
|
||||
<if test="faultDate != null "> and fault_date = #{faultDate}</if>
|
||||
<if test="faultLocation != null and faultLocation != ''"> and fault_location = #{faultLocation}</if>
|
||||
<if test="handlingPersonnel != null and handlingPersonnel != ''"> and handling_personnel like concat('%', #{handlingPersonnel}, '%')</if>
|
||||
<if test="faultPhenomenonAndCause != null and faultPhenomenonAndCause != ''"> and fault_phenomenon_and_cause = #{faultPhenomenonAndCause}</if>
|
||||
<if test="faultSituationHandling != null and faultSituationHandling != ''"> and fault_situation_handling = #{faultSituationHandling}</if>
|
||||
<if test="impact != null and impact != ''"> and impact = #{impact}</if>
|
||||
<if test="faultOccurrenceTime != null "> and fault_occurrence_time = #{faultOccurrenceTime}</if>
|
||||
<if test="handlingDuration != null "> and handling_duration = #{handlingDuration}</if>
|
||||
<if test="mainComponentsRepaired != null and mainComponentsRepaired != ''"> and main_components_repaired = #{mainComponentsRepaired}</if>
|
||||
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectFaultHandlingRecordById" parameterType="Long" resultMap="FaultHandlingRecordResult">
|
||||
<include refid="selectFaultHandlingRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertFaultHandlingRecord" parameterType="FaultHandlingRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into fault_handling_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="faultDate != null">fault_date,</if>
|
||||
<if test="faultLocation != null">fault_location,</if>
|
||||
<if test="handlingPersonnel != null">handling_personnel,</if>
|
||||
<if test="faultPhenomenonAndCause != null">fault_phenomenon_and_cause,</if>
|
||||
<if test="faultSituationHandling != null">fault_situation_handling,</if>
|
||||
<if test="impact != null">impact,</if>
|
||||
<if test="faultOccurrenceTime != null">fault_occurrence_time,</if>
|
||||
<if test="handlingDuration != null">handling_duration,</if>
|
||||
<if test="mainComponentsRepaired != null">main_components_repaired,</if>
|
||||
<if test="remarks != null">remarks,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="faultDate != null">#{faultDate},</if>
|
||||
<if test="faultLocation != null">#{faultLocation},</if>
|
||||
<if test="handlingPersonnel != null">#{handlingPersonnel},</if>
|
||||
<if test="faultPhenomenonAndCause != null">#{faultPhenomenonAndCause},</if>
|
||||
<if test="faultSituationHandling != null">#{faultSituationHandling},</if>
|
||||
<if test="impact != null">#{impact},</if>
|
||||
<if test="faultOccurrenceTime != null">#{faultOccurrenceTime},</if>
|
||||
<if test="handlingDuration != null">#{handlingDuration},</if>
|
||||
<if test="mainComponentsRepaired != null">#{mainComponentsRepaired},</if>
|
||||
<if test="remarks != null">#{remarks},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateFaultHandlingRecord" parameterType="FaultHandlingRecord">
|
||||
update fault_handling_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="faultDate != null">fault_date = #{faultDate},</if>
|
||||
<if test="faultLocation != null">fault_location = #{faultLocation},</if>
|
||||
<if test="handlingPersonnel != null">handling_personnel = #{handlingPersonnel},</if>
|
||||
<if test="faultPhenomenonAndCause != null">fault_phenomenon_and_cause = #{faultPhenomenonAndCause},</if>
|
||||
<if test="faultSituationHandling != null">fault_situation_handling = #{faultSituationHandling},</if>
|
||||
<if test="impact != null">impact = #{impact},</if>
|
||||
<if test="faultOccurrenceTime != null">fault_occurrence_time = #{faultOccurrenceTime},</if>
|
||||
<if test="handlingDuration != null">handling_duration = #{handlingDuration},</if>
|
||||
<if test="mainComponentsRepaired != null">main_components_repaired = #{mainComponentsRepaired},</if>
|
||||
<if test="remarks != null">remarks = #{remarks},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteFaultHandlingRecordById" parameterType="Long">
|
||||
delete from fault_handling_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteFaultHandlingRecordByIds" parameterType="String">
|
||||
delete from fault_handling_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.os.ems.info.mapper.SparePartsUsageRecordMapper">
|
||||
|
||||
<resultMap type="SparePartsUsageRecord" id="SparePartsUsageRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="date" column="date" />
|
||||
<result property="sparePartName" column="spare_part_name" />
|
||||
<result property="sparePartModel" column="spare_part_model" />
|
||||
<result property="quantityUsed" column="quantity_used" />
|
||||
<result property="remainingQuantity" column="remaining_quantity" />
|
||||
<result property="issuingWarehouse" column="issuing_warehouse" />
|
||||
<result property="replacementLocation" column="replacement_location" />
|
||||
<result property="personReceived" column="person_received" />
|
||||
<result property="warehouseManagerConfirmation" column="warehouse_manager_confirmation" />
|
||||
<result property="inventoryStatus" column="inventory_status" />
|
||||
<result property="departmentWarehouse" column="department_warehouse" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSparePartsUsageRecordVo">
|
||||
select id, date, spare_part_name, spare_part_model, quantity_used, remaining_quantity, issuing_warehouse, replacement_location, person_received, warehouse_manager_confirmation, inventory_status, department_warehouse from spare_parts_usage_record
|
||||
</sql>
|
||||
|
||||
<select id="selectSparePartsUsageRecordList" parameterType="SparePartsUsageRecord" resultMap="SparePartsUsageRecordResult">
|
||||
<include refid="selectSparePartsUsageRecordVo"/>
|
||||
<where>
|
||||
<if test="date != null "> and date = #{date}</if>
|
||||
<if test="sparePartName != null and sparePartName != ''"> and spare_part_name like concat('%', #{sparePartName}, '%')</if>
|
||||
<if test="sparePartModel != null and sparePartModel != ''"> and spare_part_model = #{sparePartModel}</if>
|
||||
<if test="quantityUsed != null "> and quantity_used = #{quantityUsed}</if>
|
||||
<if test="remainingQuantity != null "> and remaining_quantity = #{remainingQuantity}</if>
|
||||
<if test="issuingWarehouse != null and issuingWarehouse != ''"> and issuing_warehouse = #{issuingWarehouse}</if>
|
||||
<if test="replacementLocation != null and replacementLocation != ''"> and replacement_location = #{replacementLocation}</if>
|
||||
<if test="personReceived != null and personReceived != ''"> and person_received = #{personReceived}</if>
|
||||
<if test="warehouseManagerConfirmation != null and warehouseManagerConfirmation != ''"> and warehouse_manager_confirmation = #{warehouseManagerConfirmation}</if>
|
||||
<if test="inventoryStatus != null and inventoryStatus != ''"> and inventory_status = #{inventoryStatus}</if>
|
||||
<if test="departmentWarehouse != null and departmentWarehouse != ''"> and department_warehouse = #{departmentWarehouse}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSparePartsUsageRecordById" parameterType="Long" resultMap="SparePartsUsageRecordResult">
|
||||
<include refid="selectSparePartsUsageRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSparePartsUsageRecord" parameterType="SparePartsUsageRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into spare_parts_usage_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="date != null">date,</if>
|
||||
<if test="sparePartName != null">spare_part_name,</if>
|
||||
<if test="sparePartModel != null">spare_part_model,</if>
|
||||
<if test="quantityUsed != null">quantity_used,</if>
|
||||
<if test="remainingQuantity != null">remaining_quantity,</if>
|
||||
<if test="issuingWarehouse != null">issuing_warehouse,</if>
|
||||
<if test="replacementLocation != null">replacement_location,</if>
|
||||
<if test="personReceived != null">person_received,</if>
|
||||
<if test="warehouseManagerConfirmation != null">warehouse_manager_confirmation,</if>
|
||||
<if test="inventoryStatus != null">inventory_status,</if>
|
||||
<if test="departmentWarehouse != null">department_warehouse,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="date != null">#{date},</if>
|
||||
<if test="sparePartName != null">#{sparePartName},</if>
|
||||
<if test="sparePartModel != null">#{sparePartModel},</if>
|
||||
<if test="quantityUsed != null">#{quantityUsed},</if>
|
||||
<if test="remainingQuantity != null">#{remainingQuantity},</if>
|
||||
<if test="issuingWarehouse != null">#{issuingWarehouse},</if>
|
||||
<if test="replacementLocation != null">#{replacementLocation},</if>
|
||||
<if test="personReceived != null">#{personReceived},</if>
|
||||
<if test="warehouseManagerConfirmation != null">#{warehouseManagerConfirmation},</if>
|
||||
<if test="inventoryStatus != null">#{inventoryStatus},</if>
|
||||
<if test="departmentWarehouse != null">#{departmentWarehouse},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSparePartsUsageRecord" parameterType="SparePartsUsageRecord">
|
||||
update spare_parts_usage_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="date != null">date = #{date},</if>
|
||||
<if test="sparePartName != null">spare_part_name = #{sparePartName},</if>
|
||||
<if test="sparePartModel != null">spare_part_model = #{sparePartModel},</if>
|
||||
<if test="quantityUsed != null">quantity_used = #{quantityUsed},</if>
|
||||
<if test="remainingQuantity != null">remaining_quantity = #{remainingQuantity},</if>
|
||||
<if test="issuingWarehouse != null">issuing_warehouse = #{issuingWarehouse},</if>
|
||||
<if test="replacementLocation != null">replacement_location = #{replacementLocation},</if>
|
||||
<if test="personReceived != null">person_received = #{personReceived},</if>
|
||||
<if test="warehouseManagerConfirmation != null">warehouse_manager_confirmation = #{warehouseManagerConfirmation},</if>
|
||||
<if test="inventoryStatus != null">inventory_status = #{inventoryStatus},</if>
|
||||
<if test="departmentWarehouse != null">department_warehouse = #{departmentWarehouse},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSparePartsUsageRecordById" parameterType="Long">
|
||||
delete from spare_parts_usage_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSparePartsUsageRecordByIds" parameterType="String">
|
||||
delete from spare_parts_usage_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,151 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.os.ems.info.mapper.UpsBatteryLifecycleMapper">
|
||||
|
||||
<resultMap type="UpsBatteryLifecycle" id="UpsBatteryLifecycleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="type" column="type" />
|
||||
<result property="upsInstallationCabinetName" column="ups_installation_cabinet_name" />
|
||||
<result property="referenceLocation" column="reference_location" />
|
||||
<result property="locationDescription" column="location_description" />
|
||||
<result property="currentUps" column="current_ups" />
|
||||
<result property="source" column="source" />
|
||||
<result property="powerSource" column="power_source" />
|
||||
<result property="affectedArea" column="affected_area" />
|
||||
<result property="replacement1" column="replacement_1" />
|
||||
<result property="replacement2" column="replacement_2" />
|
||||
<result property="replacement3" column="replacement_3" />
|
||||
<result property="replacement4" column="replacement_4" />
|
||||
<result property="replacement5" column="replacement_5" />
|
||||
<result property="replacement6" column="replacement_6" />
|
||||
<result property="replacement7" column="replacement_7" />
|
||||
<result property="replacement8" column="replacement_8" />
|
||||
<result property="replacement9" column="replacement_9" />
|
||||
<result property="replacement10" column="replacement_10" />
|
||||
<result property="replacement11" column="replacement_11" />
|
||||
<result property="replacement12" column="replacement_12" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUpsBatteryLifecycleVo">
|
||||
select id, type, ups_installation_cabinet_name, reference_location, location_description, current_ups, source, power_source, affected_area, replacement_1, replacement_2, replacement_3, replacement_4, replacement_5, replacement_6, replacement_7, replacement_8, replacement_9, replacement_10, replacement_11, replacement_12 from ups_battery_lifecycle
|
||||
</sql>
|
||||
|
||||
<select id="selectUpsBatteryLifecycleList" parameterType="UpsBatteryLifecycle" resultMap="UpsBatteryLifecycleResult">
|
||||
<include refid="selectUpsBatteryLifecycleVo"/>
|
||||
<where>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
<if test="upsInstallationCabinetName != null and upsInstallationCabinetName != ''"> and ups_installation_cabinet_name like concat('%', #{upsInstallationCabinetName}, '%')</if>
|
||||
<if test="referenceLocation != null and referenceLocation != ''"> and reference_location = #{referenceLocation}</if>
|
||||
<if test="locationDescription != null and locationDescription != ''"> and location_description = #{locationDescription}</if>
|
||||
<if test="currentUps != null and currentUps != ''"> and current_ups = #{currentUps}</if>
|
||||
<if test="source != null and source != ''"> and source = #{source}</if>
|
||||
<if test="powerSource != null and powerSource != ''"> and power_source = #{powerSource}</if>
|
||||
<if test="affectedArea != null and affectedArea != ''"> and affected_area = #{affectedArea}</if>
|
||||
<if test="replacement1 != null and replacement1 != ''"> and replacement_1 = #{replacement1}</if>
|
||||
<if test="replacement2 != null and replacement2 != ''"> and replacement_2 = #{replacement2}</if>
|
||||
<if test="replacement3 != null and replacement3 != ''"> and replacement_3 = #{replacement3}</if>
|
||||
<if test="replacement4 != null and replacement4 != ''"> and replacement_4 = #{replacement4}</if>
|
||||
<if test="replacement5 != null and replacement5 != ''"> and replacement_5 = #{replacement5}</if>
|
||||
<if test="replacement6 != null and replacement6 != ''"> and replacement_6 = #{replacement6}</if>
|
||||
<if test="replacement7 != null and replacement7 != ''"> and replacement_7 = #{replacement7}</if>
|
||||
<if test="replacement8 != null and replacement8 != ''"> and replacement_8 = #{replacement8}</if>
|
||||
<if test="replacement9 != null and replacement9 != ''"> and replacement_9 = #{replacement9}</if>
|
||||
<if test="replacement10 != null and replacement10 != ''"> and replacement_10 = #{replacement10}</if>
|
||||
<if test="replacement11 != null and replacement11 != ''"> and replacement_11 = #{replacement11}</if>
|
||||
<if test="replacement12 != null and replacement12 != ''"> and replacement_12 = #{replacement12}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUpsBatteryLifecycleById" parameterType="Long" resultMap="UpsBatteryLifecycleResult">
|
||||
<include refid="selectUpsBatteryLifecycleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUpsBatteryLifecycle" parameterType="UpsBatteryLifecycle" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into ups_battery_lifecycle
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="type != null">type,</if>
|
||||
<if test="upsInstallationCabinetName != null">ups_installation_cabinet_name,</if>
|
||||
<if test="referenceLocation != null">reference_location,</if>
|
||||
<if test="locationDescription != null">location_description,</if>
|
||||
<if test="currentUps != null">current_ups,</if>
|
||||
<if test="source != null">source,</if>
|
||||
<if test="powerSource != null">power_source,</if>
|
||||
<if test="affectedArea != null">affected_area,</if>
|
||||
<if test="replacement1 != null">replacement_1,</if>
|
||||
<if test="replacement2 != null">replacement_2,</if>
|
||||
<if test="replacement3 != null">replacement_3,</if>
|
||||
<if test="replacement4 != null">replacement_4,</if>
|
||||
<if test="replacement5 != null">replacement_5,</if>
|
||||
<if test="replacement6 != null">replacement_6,</if>
|
||||
<if test="replacement7 != null">replacement_7,</if>
|
||||
<if test="replacement8 != null">replacement_8,</if>
|
||||
<if test="replacement9 != null">replacement_9,</if>
|
||||
<if test="replacement10 != null">replacement_10,</if>
|
||||
<if test="replacement11 != null">replacement_11,</if>
|
||||
<if test="replacement12 != null">replacement_12,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="upsInstallationCabinetName != null">#{upsInstallationCabinetName},</if>
|
||||
<if test="referenceLocation != null">#{referenceLocation},</if>
|
||||
<if test="locationDescription != null">#{locationDescription},</if>
|
||||
<if test="currentUps != null">#{currentUps},</if>
|
||||
<if test="source != null">#{source},</if>
|
||||
<if test="powerSource != null">#{powerSource},</if>
|
||||
<if test="affectedArea != null">#{affectedArea},</if>
|
||||
<if test="replacement1 != null">#{replacement1},</if>
|
||||
<if test="replacement2 != null">#{replacement2},</if>
|
||||
<if test="replacement3 != null">#{replacement3},</if>
|
||||
<if test="replacement4 != null">#{replacement4},</if>
|
||||
<if test="replacement5 != null">#{replacement5},</if>
|
||||
<if test="replacement6 != null">#{replacement6},</if>
|
||||
<if test="replacement7 != null">#{replacement7},</if>
|
||||
<if test="replacement8 != null">#{replacement8},</if>
|
||||
<if test="replacement9 != null">#{replacement9},</if>
|
||||
<if test="replacement10 != null">#{replacement10},</if>
|
||||
<if test="replacement11 != null">#{replacement11},</if>
|
||||
<if test="replacement12 != null">#{replacement12},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUpsBatteryLifecycle" parameterType="UpsBatteryLifecycle">
|
||||
update ups_battery_lifecycle
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="upsInstallationCabinetName != null">ups_installation_cabinet_name = #{upsInstallationCabinetName},</if>
|
||||
<if test="referenceLocation != null">reference_location = #{referenceLocation},</if>
|
||||
<if test="locationDescription != null">location_description = #{locationDescription},</if>
|
||||
<if test="currentUps != null">current_ups = #{currentUps},</if>
|
||||
<if test="source != null">source = #{source},</if>
|
||||
<if test="powerSource != null">power_source = #{powerSource},</if>
|
||||
<if test="affectedArea != null">affected_area = #{affectedArea},</if>
|
||||
<if test="replacement1 != null">replacement_1 = #{replacement1},</if>
|
||||
<if test="replacement2 != null">replacement_2 = #{replacement2},</if>
|
||||
<if test="replacement3 != null">replacement_3 = #{replacement3},</if>
|
||||
<if test="replacement4 != null">replacement_4 = #{replacement4},</if>
|
||||
<if test="replacement5 != null">replacement_5 = #{replacement5},</if>
|
||||
<if test="replacement6 != null">replacement_6 = #{replacement6},</if>
|
||||
<if test="replacement7 != null">replacement_7 = #{replacement7},</if>
|
||||
<if test="replacement8 != null">replacement_8 = #{replacement8},</if>
|
||||
<if test="replacement9 != null">replacement_9 = #{replacement9},</if>
|
||||
<if test="replacement10 != null">replacement_10 = #{replacement10},</if>
|
||||
<if test="replacement11 != null">replacement_11 = #{replacement11},</if>
|
||||
<if test="replacement12 != null">replacement_12 = #{replacement12},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUpsBatteryLifecycleById" parameterType="Long">
|
||||
delete from ups_battery_lifecycle where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUpsBatteryLifecycleByIds" parameterType="String">
|
||||
delete from ups_battery_lifecycle where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue