修改库房物料是否启用-新增接口

This commit is contained in:
yangjun 2025-10-27 14:13:35 +08:00
parent 4a8f345968
commit 0e70d6cb35
3 changed files with 18 additions and 0 deletions

View File

@ -165,4 +165,12 @@ public class InvoicingApi {
return Result.OK("操作成功");
}
@ApiOperation(value="修改库房物料是否启用", notes="修改库房物料是否启用")
@AutoLog(value = "修改库房物料是否启用")
@GetMapping(value = "/updateWarehouserEnabled")
public Result<String> updateWarehouserEnabled(MaterialInfoEntity materialInfoEntity, HttpServletRequest req) {
invoicingApi.updateWarehouserEnabled(materialInfoEntity);
return Result.OK("操作成功");
}
}

View File

@ -38,4 +38,6 @@ public interface IInvoicingApi {
void emptiedQgInfo();
void voidedCgdMain(CgdMainEntity cgdMainEntity);
void updateWarehouserEnabled(MaterialInfoEntity materialInfoEntity);
}

View File

@ -500,4 +500,12 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
baseMapper.updateById(cgdMain);
}
@Override
public void updateWarehouserEnabled(MaterialInfoEntity materialInfoEntity) {
BlWarehouseMaterialInfo warehouseMaterialInfo = new BlWarehouseMaterialInfo();
BeanUtils.copyProperties(materialInfoEntity,warehouseMaterialInfo);
mterialInfoMapper.updateById(warehouseMaterialInfo);
}
}