mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 01:19:19 +08:00
fix: 统一盈亏字段精度为 2 位小数;修复 sub_plan_pricing.status 拼写错误
- CompanyOverviewServiceImpl / CategoryExportExcelServiceImpl / ExportServiceImpl / ShopOverviewStatisticsServiceImpl / ProductOverviewServiceImpl:所有 profitAfterTax / netProfit 等盈亏字段统一 setScale(2, RoundingMode.HALF_UP),避免 JSON 序列化时出现过多小数位 - sub_design.sql:stauts → status 拼写修正 - 前端:品类/商品排行榜/概览卡片等表格 feeRatio / roi 等数值精度统一展示处理
This commit is contained in:
@@ -35,7 +35,7 @@ CREATE TABLE `sub_plan_pricing` (
|
||||
`plan_id` bigint UNSIGNED NOT NULL COMMENT '对应套餐ID',
|
||||
`price` decimal(10, 2) NOT NULL COMMENT '价格(元)',
|
||||
`duration_months` int NOT NULL DEFAULT 1 COMMENT '订阅时长(月)',
|
||||
`stauts` tinyint NOT NULL DEFAULT 1 COMMENT '是否启用当前价格(1-启用,0-禁用)',
|
||||
`status` tinyint NOT NULL DEFAULT 1 COMMENT '状态(1-启用,0-禁用)',
|
||||
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`create_by` bigint UNSIGNED NULL DEFAULT NULL COMMENT '创建人 id',
|
||||
|
||||
Reference in New Issue
Block a user