|
|
|
|
@ -7,6 +7,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
|
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
|
|
|
|
import cn.iocoder.yudao.module.erp.controller.admin.product.vo.product.ErpProductRespVO;
|
|
|
|
|
import cn.iocoder.yudao.module.iot.framework.mqtt.utils.DateUtils;
|
|
|
|
|
import cn.iocoder.yudao.module.mes.controller.admin.itemrequisition.vo.ItemRequisitionSaveReqVO;
|
|
|
|
|
import cn.iocoder.yudao.module.mes.controller.admin.plan.vo.*;
|
|
|
|
|
import cn.iocoder.yudao.module.mes.dal.dataobject.plan.PlanDO;
|
|
|
|
|
@ -165,5 +166,16 @@ public class PlanController {
|
|
|
|
|
List<PlanRespVO> planRespVOList = planService.buildVOList(proList);
|
|
|
|
|
return success(planRespVOList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/setTop")
|
|
|
|
|
@Operation(summary = "置顶生产计划")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
|
|
public CommonResult<Boolean> setTop(@RequestParam("id") Long id) {
|
|
|
|
|
PlanDO plan = planService.getPlan(id);
|
|
|
|
|
plan.setPriorityNum(DateUtils.getMillsLong());
|
|
|
|
|
planMapper.updateById(plan);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|