单独修改remark
This commit is contained in:
@@ -144,6 +144,14 @@ public class SysOaWarehouseTaskController extends BaseController {
|
||||
return toAjax(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 单独修改remark
|
||||
*/
|
||||
@PutMapping("/updateRemark")
|
||||
public R<Void> updateRemark(@RequestParam Long taskId, @RequestParam String remark) {
|
||||
return toAjax(iSysOaWarehouseTaskService.updateRemark(taskId, remark));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除采购计划
|
||||
|
||||
@@ -61,4 +61,9 @@ public interface ISysOaWarehouseTaskService {
|
||||
|
||||
int updateToWare(SysOaWarehouseTaskBo bo);
|
||||
|
||||
/**
|
||||
* 单独修改remark
|
||||
*/
|
||||
Boolean updateRemark(Long taskId, String remark);
|
||||
|
||||
}
|
||||
|
||||
@@ -210,6 +210,15 @@ public class SysOaWarehouseTaskServiceImpl implements ISysOaWarehouseTaskService
|
||||
return baseMapper.updateById(task);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean updateRemark(Long taskId, String remark) {
|
||||
if (taskId == null) return false;
|
||||
SysOaWarehouseTask update = new SysOaWarehouseTask();
|
||||
update.setTaskId(taskId);
|
||||
update.setRemark(remark);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
private int toWareOne(Long masterId, SysOaWarehouseTaskBo bo , SysOaWarehouseDetailBo sysOaWarehouseDetailBo) {
|
||||
// 进行入库操作 (因为存在一种情况是此为全新物料是没有物料id的)
|
||||
SysOaWarehouse sysOaWarehouse = new SysOaWarehouse();
|
||||
|
||||
Reference in New Issue
Block a user