feat(mill): 添加换辊记录管理功能

- 新增换辊记录领域模型 MesRollChange 和 MesRollStandby
- 实现换辊记录服务接口 IMesRollChangeService 和 IMesRollStandbyService
- 添加换辊记录控制器 MesRollChangeController 提供 REST API
- 实现换辊记录数据访问层 MesRollChangeMapper 和映射配置文件
- 添加换辊记录业务逻辑实现类 MesRollChangeServiceImpl
- 实现查询当前在机轧辊和轧辊工作绩效统计功能
- 扩展轧辊信息 Mapper 支持条件更新轧辊状态操作
This commit is contained in:
2026-06-09 14:22:28 +08:00
parent ab2f4a611a
commit b09d0a87ad
16 changed files with 1829 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
package com.ruoyi.mill.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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.mill.domain.MesRollStandby;
import com.ruoyi.mill.service.IMesRollStandbyService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 下批轧辊待换上Controller
*
* @author ruoyi
* @date 2026-06-09
*/
@RestController
@RequestMapping("/mill/standby")
public class MesRollStandbyController extends BaseController
{
@Autowired
private IMesRollStandbyService mesRollStandbyService;
/**
* 查询下批轧辊(待换上)列表
*/
@PreAuthorize("@ss.hasPermi('mill:standby:list')")
@GetMapping("/list")
public TableDataInfo list(MesRollStandby mesRollStandby)
{
startPage();
List<MesRollStandby> list = mesRollStandbyService.selectMesRollStandbyList(mesRollStandby);
return getDataTable(list);
}
/**
* 导出下批轧辊(待换上)列表
*/
@PreAuthorize("@ss.hasPermi('mill:standby:export')")
@Log(title = "下批轧辊(待换上)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MesRollStandby mesRollStandby)
{
List<MesRollStandby> list = mesRollStandbyService.selectMesRollStandbyList(mesRollStandby);
ExcelUtil<MesRollStandby> util = new ExcelUtil<MesRollStandby>(MesRollStandby.class);
util.exportExcel(response, list, "下批轧辊(待换上)数据");
}
/**
* 获取下批轧辊(待换上)详细信息
*/
@PreAuthorize("@ss.hasPermi('mill:standby:query')")
@GetMapping(value = "/{standbyId}")
public AjaxResult getInfo(@PathVariable("standbyId") Long standbyId)
{
return success(mesRollStandbyService.selectMesRollStandbyByStandbyId(standbyId));
}
/**
* 新增下批轧辊(待换上)
*/
@PreAuthorize("@ss.hasPermi('mill:standby:add')")
@Log(title = "下批轧辊(待换上)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MesRollStandby mesRollStandby)
{
return toAjax(mesRollStandbyService.insertMesRollStandby(mesRollStandby));
}
/**
* 修改下批轧辊(待换上)
*/
@PreAuthorize("@ss.hasPermi('mill:standby:edit')")
@Log(title = "下批轧辊(待换上)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MesRollStandby mesRollStandby)
{
return toAjax(mesRollStandbyService.updateMesRollStandby(mesRollStandby));
}
/**
* 删除下批轧辊(待换上)
*/
@PreAuthorize("@ss.hasPermi('mill:standby:remove')")
@Log(title = "下批轧辊(待换上)", businessType = BusinessType.DELETE)
@DeleteMapping("/{standbyIds}")
public AjaxResult remove(@PathVariable Long[] standbyIds)
{
return toAjax(mesRollStandbyService.deleteMesRollStandbyByStandbyIds(standbyIds));
}
}