mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
组织发票抬头信息取organId从外部改为从token取
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ public class InvoiceController {
|
||||
|
||||
@GetMapping("/title/{organId}")
|
||||
@Operation(summary = "获取发票抬头信息")
|
||||
public CommonResult<InvoiceTitleInfo> getInvoiceTitle(@PathVariable("organId") Long organId) {
|
||||
return success(invoiceService.getInvoiceTitle(organId));
|
||||
public CommonResult<InvoiceTitleInfo> getInvoiceTitle() {
|
||||
return success(invoiceService.getInvoiceTitle());
|
||||
}
|
||||
|
||||
@PostMapping("/title")
|
||||
|
||||
+1
-2
@@ -23,9 +23,8 @@ public interface InvoiceService {
|
||||
/**
|
||||
* 获取组织抬头信息
|
||||
*
|
||||
* @param organId
|
||||
*/
|
||||
InvoiceTitleInfo getInvoiceTitle(Long organId);
|
||||
InvoiceTitleInfo getInvoiceTitle();
|
||||
|
||||
/**
|
||||
* 新增/修改抬头信息
|
||||
|
||||
+2
-2
@@ -87,9 +87,9 @@ public class InvoiceServiceImpl implements InvoiceService {
|
||||
private FileApi fileApi;
|
||||
|
||||
@Override
|
||||
public InvoiceTitleInfo getInvoiceTitle(Long organId) {
|
||||
public InvoiceTitleInfo getInvoiceTitle() {
|
||||
InvoiceTitleInfoDO invoiceTitleInfoDO = invoiceTitleInfoMapper.selectOne(new LambdaQueryWrapper<InvoiceTitleInfoDO>()
|
||||
.eq(InvoiceTitleInfoDO::getOrganId, organId));
|
||||
.eq(InvoiceTitleInfoDO::getOrganId, SecurityFrameworkUtils.getUserOrganId()));
|
||||
return BeanUtils.toBean(invoiceTitleInfoDO, InvoiceTitleInfo.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user