Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huang.tao
/
jmai-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
67442ea1
authored
Jan 23, 2026
by
zhu.zewen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化专账日结和月结计算
新增专账日结和月结手动触发接口
parent
c8fe83a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
4 deletions
jmai-physic/src/main/java/com/jmai/physic/controller/PhysicBillController.java
jmai-physic/src/main/java/com/jmai/physic/dto/BillSettlementTriggerReq.java
jmai-physic/src/main/java/com/jmai/physic/dto/PhysicDestroyCheckDetailQueryReq.java
jmai-physic/src/main/java/com/jmai/physic/entity/PhysicBill.java
jmai-physic/src/main/java/com/jmai/physic/service/PhysicBillService.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicBillServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/controller/PhysicBillController.java
View file @
67442ea1
...
@@ -49,4 +49,18 @@ public class PhysicBillController {
...
@@ -49,4 +49,18 @@ public class PhysicBillController {
PhysicBill
bill
=
physicBillService
.
sign
(
physicBillSignReq
);
PhysicBill
bill
=
physicBillService
.
sign
(
physicBillSignReq
);
return
ResponseData
.
ok
(
bill
);
return
ResponseData
.
ok
(
bill
);
}
}
@PostMapping
(
"/triggerDailySettlement"
)
@ApiOperation
(
value
=
"手动触发指定日期的日结"
)
public
ResponseData
<
Void
>
triggerDailySettlement
(
@RequestBody
BillSettlementTriggerReq
req
)
{
physicBillService
.
triggerDailySettlement
(
req
.
getDate
());
return
ResponseData
.
ok
();
}
@PostMapping
(
"/triggerMonthlySettlement"
)
@ApiOperation
(
value
=
"手动触发指定月份的月结"
)
public
ResponseData
<
Void
>
triggerMonthlySettlement
(
@RequestBody
BillSettlementTriggerReq
req
)
{
physicBillService
.
triggerMonthlySettlement
(
req
.
getMonth
());
return
ResponseData
.
ok
();
}
}
}
\ No newline at end of file
jmai-physic/src/main/java/com/jmai/physic/dto/BillSettlementTriggerReq.java
0 → 100644
View file @
67442ea1
package
com
.
jmai
.
physic
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
description
=
"触发结算请求"
)
public
class
BillSettlementTriggerReq
{
@ApiModelProperty
(
value
=
"日期,格式:yyyy-MM-dd,用于日结"
)
private
String
date
;
@ApiModelProperty
(
value
=
"月份,格式:yyyy-MM,用于月结"
)
private
String
month
;
}
\ No newline at end of file
jmai-physic/src/main/java/com/jmai/physic/dto/PhysicDestroyCheckDetailQueryReq.java
0 → 100644
View file @
67442ea1
package
com
.
jmai
.
physic
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
public
class
PhysicDestroyCheckDetailQueryReq
{
@ApiModelProperty
(
value
=
"销毁审批ID"
,
required
=
true
)
private
Long
checkId
;
}
\ No newline at end of file
jmai-physic/src/main/java/com/jmai/physic/entity/PhysicBill.java
View file @
67442ea1
...
@@ -6,8 +6,7 @@ import io.swagger.annotations.ApiModel;
...
@@ -6,8 +6,7 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.time.LocalDate
;
import
java.time.YearMonth
;
@Data
@Data
@ApiModel
(
description
=
"药品专账"
)
@ApiModel
(
description
=
"药品专账"
)
...
@@ -44,10 +43,10 @@ public class PhysicBill extends BaseVersionEntity {
...
@@ -44,10 +43,10 @@ public class PhysicBill extends BaseVersionEntity {
private
Integer
expendNum
;
private
Integer
expendNum
;
@ApiModelProperty
(
value
=
"结算日期"
)
@ApiModelProperty
(
value
=
"结算日期"
)
private
LocalDate
settleDate
;
private
String
settleDate
;
@ApiModelProperty
(
value
=
"结算月份(年月)"
)
@ApiModelProperty
(
value
=
"结算月份(年月)"
)
private
YearMonth
settleMonth
;
private
String
settleMonth
;
@ApiModelProperty
(
value
=
"相关申请、入库id"
)
@ApiModelProperty
(
value
=
"相关申请、入库id"
)
private
Long
refId
;
private
Long
refId
;
...
...
jmai-physic/src/main/java/com/jmai/physic/service/PhysicBillService.java
View file @
67442ea1
...
@@ -24,4 +24,8 @@ public interface PhysicBillService {
...
@@ -24,4 +24,8 @@ public interface PhysicBillService {
PhysicBillHandover
handover
(
PhysicBillHandoverCreateReq
req
);
PhysicBillHandover
handover
(
PhysicBillHandoverCreateReq
req
);
PhysicBillHandover
signHandover
(
PhysicBillHandoverSignReq
req
);
PhysicBillHandover
signHandover
(
PhysicBillHandoverSignReq
req
);
void
cancelHandover
(
PhysicBillHandoverCancelReq
req
);
void
cancelHandover
(
PhysicBillHandoverCancelReq
req
);
// 结算功能
void
triggerDailySettlement
(
String
settleDateStr
);
void
triggerMonthlySettlement
(
String
settleMonthStr
);
}
}
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicBillServiceImpl.java
View file @
67442ea1
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment