添加删除请购信息接口
This commit is contained in:
parent
4bbbc0692d
commit
dcbfb2e468
|
|
@ -125,5 +125,21 @@ public class InvoicingApi {
|
||||||
return Result.OK(info);
|
return Result.OK(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@AutoLog(value = "通过id删除请购信息")
|
||||||
|
@ApiOperation(value="通过id删除请购信息", notes="通过id删除请购信息")
|
||||||
|
@DeleteMapping(value = "/deleteQgInfoById")
|
||||||
|
public Result<String> deleteQgInfoById(@RequestParam(name="id",required=true) String id) {
|
||||||
|
invoicingApi.deleteQgInfoById(id);
|
||||||
|
return Result.OK("删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
@AutoLog(value = "清空全部请购信息")
|
||||||
|
@ApiOperation(value="清空全部请购信息", notes="清空全部请购信息")
|
||||||
|
@DeleteMapping(value = "/emptiedQgInfo")
|
||||||
|
public Result<String> emptiedQgInfo() {
|
||||||
|
invoicingApi.emptiedQgInfo();
|
||||||
|
return Result.OK("清空成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,8 @@ public interface IInvoicingApi {
|
||||||
List<CgdMainEntity> generatedPurchaserder(List<CgdMainEntity> cgdMainList);
|
List<CgdMainEntity> generatedPurchaserder(List<CgdMainEntity> cgdMainList);
|
||||||
|
|
||||||
MaterialInfoEntity queryWlInfoByWlId(MaterialInfoEntity materialInfoEntity);
|
MaterialInfoEntity queryWlInfoByWlId(MaterialInfoEntity materialInfoEntity);
|
||||||
|
|
||||||
|
void deleteQgInfoById(String id);
|
||||||
|
|
||||||
|
void emptiedQgInfo();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -416,4 +416,14 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
|
||||||
BeanUtils.copyProperties(wlInfo,materialInfoEntity);
|
BeanUtils.copyProperties(wlInfo,materialInfoEntity);
|
||||||
return materialInfoEntity;
|
return materialInfoEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteQgInfoById(String id) {
|
||||||
|
qgdInfoMapper.deleteById( id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void emptiedQgInfo() {
|
||||||
|
qgdInfoMapper.delete(new QueryWrapper<QgdInfo>());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue