修改库房物料是否启用-新增接口
This commit is contained in:
parent
4a8f345968
commit
0e70d6cb35
|
|
@ -165,4 +165,12 @@ public class InvoicingApi {
|
||||||
return Result.OK("操作成功");
|
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("操作成功");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,4 +38,6 @@ public interface IInvoicingApi {
|
||||||
void emptiedQgInfo();
|
void emptiedQgInfo();
|
||||||
|
|
||||||
void voidedCgdMain(CgdMainEntity cgdMainEntity);
|
void voidedCgdMain(CgdMainEntity cgdMainEntity);
|
||||||
|
|
||||||
|
void updateWarehouserEnabled(MaterialInfoEntity materialInfoEntity);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -500,4 +500,12 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
|
||||||
baseMapper.updateById(cgdMain);
|
baseMapper.updateById(cgdMain);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateWarehouserEnabled(MaterialInfoEntity materialInfoEntity) {
|
||||||
|
BlWarehouseMaterialInfo warehouseMaterialInfo = new BlWarehouseMaterialInfo();
|
||||||
|
BeanUtils.copyProperties(materialInfoEntity,warehouseMaterialInfo);
|
||||||
|
mterialInfoMapper.updateById(warehouseMaterialInfo);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue