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:
-5
@@ -20,11 +20,6 @@ public class InvoiceTitleSaveReqVO {
|
||||
private Long id;
|
||||
|
||||
|
||||
@Schema(description = "组织ID")
|
||||
@NotNull(message = "组织ID不能为空")
|
||||
private Long organId;
|
||||
|
||||
|
||||
@Schema(description = "发票抬头")
|
||||
@NotBlank(message = "发票抬头不能为空")
|
||||
@Size(max = 64, message = "发票抬头长度不能超过64个字符")
|
||||
|
||||
+3
-3
@@ -95,9 +95,9 @@ public class InvoiceServiceImpl implements InvoiceService {
|
||||
|
||||
@Override
|
||||
public void insetInvoiceTitle(InvoiceTitleSaveReqVO reqVO) {
|
||||
|
||||
Long organId = SecurityFrameworkUtils.getUserOrganId();
|
||||
if (reqVO.getId() != null) {
|
||||
validTitleOrg(reqVO.getId(), reqVO.getOrganId());
|
||||
validTitleOrg(reqVO.getId(), organId);
|
||||
// 更新抬头
|
||||
InvoiceTitleInfoDO titleInfoDO = BeanUtils.toBean(reqVO, InvoiceTitleInfoDO.class);
|
||||
invoiceTitleInfoMapper.updateById(titleInfoDO);
|
||||
@@ -106,7 +106,7 @@ public class InvoiceServiceImpl implements InvoiceService {
|
||||
|
||||
// 新增抬头
|
||||
invoiceTitleInfoMapper.insert(InvoiceTitleInfoDO.builder()
|
||||
.organId(reqVO.getOrganId())
|
||||
.organId(organId)
|
||||
.invoiceTitle(reqVO.getInvoiceTitle())
|
||||
.invoiceType(reqVO.getInvoiceType())
|
||||
.issueType(reqVO.getIssueType())
|
||||
|
||||
Reference in New Issue
Block a user