refactor(mill): 优化轧辊备用管理的数据查询和状态更新逻辑
- 修改 MesRollInfoMapper 中条件更新状态方法的参数命名,提升可读性 - 更新 MesRollStandbyMapper 查询接口返回类型为 MesRollStandbyVo - 重构 MesRollStandbyMapper XML 映射文件中的查询语句,增加位置标签字段 - 将清空操作从物理删除改为逻辑删除,保留数据记录 - 在 MesRollStandbyVo 中新增 positionLabel、remark 和 createTime 字段 - 调整控制器注解配置,移除权限校验并简化接口定义
This commit is contained in:
@@ -104,14 +104,12 @@ public class MesRollStandbyController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* 清空指定机架所有备辊,同时回退轧辊状态
|
||||
* 清空指定产线+机架的全部下批轧辊
|
||||
* DELETE /mill/standby/clear?lineId=xxx&standNo=1%23
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mill:standby:remove')")
|
||||
@Log(title = "下批轧辊(待换上)", businessType = BusinessType.DELETE)
|
||||
@Log(title = "下批轧辊", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/clear")
|
||||
public AjaxResult clearByStand(@RequestParam Long lineId, @RequestParam String standNo)
|
||||
{
|
||||
public AjaxResult clear(Long lineId, @RequestParam String standNo) {
|
||||
return toAjax(mesRollStandbyService.clearByStand(lineId, standNo));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user