sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Package @{.varName | ToLower}
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) @{NowYear} LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version @{.xiuVersion}
|
||||
//
|
||||
@@ -10,8 +10,8 @@ package v1 //@{.varName | ToLower}
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"@{.importInput}"
|
||||
"iotlcm/internal/model/response"
|
||||
@{ if eq .options.Step.IsTreeTable true }"iotlcm/utility/tree"@{end}
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/response"
|
||||
@{ if eq .options.Step.IsTreeTable true }"git.5iot.com/iotlcm-public/iotlcm-admin-svr/utility/tree"@{end}
|
||||
)
|
||||
|
||||
// ListReq 查询@{.tableComment}列表
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Package @{.templateGroup}
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) @{NowYear} LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version @{.xiuVersion}
|
||||
//
|
||||
@@ -10,7 +10,7 @@ package @{.templateGroup}
|
||||
import (
|
||||
"context"
|
||||
v1 "@{.importApi}"
|
||||
"iotlcm/internal/model/input/form"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/input/form"
|
||||
"@{.importInput}"
|
||||
"@{.importService}"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Package @{.templateGroup}in
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) @{NowYear} LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version @{.xiuVersion}
|
||||
//
|
||||
@@ -15,12 +15,12 @@ import (
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"iotlcm/internal/consts"
|
||||
"iotlcm/internal/model/entity"
|
||||
"iotlcm/internal/model/request"
|
||||
"iotlcm/utility/validate"
|
||||
@{ if eq .options.Step.HasHookMemberSummary true }"iotlcm/internal/library/xgorm/hook"@{end}
|
||||
@{ if eq .options.Step.IsTreeTable true }"iotlcm/utility/tree"@{end}
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/consts"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/entity"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/utility/validate"
|
||||
@{ if eq .options.Step.HasHookMemberSummary true }"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/library/xgorm/hook"@{end}
|
||||
@{ if eq .options.Step.IsTreeTable true }"git.5iot.com/iotlcm-public/iotlcm-admin-svr/utility/tree"@{end}
|
||||
)
|
||||
@{ if eq .options.Step.HasEdit true }
|
||||
// @{.varName}UpdateFields 修改@{.tableComment}字段过滤
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Package @{.templateGroup}
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) @{NowYear} LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version @{.xiuVersion}
|
||||
//
|
||||
@@ -16,21 +16,21 @@ import (
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/gogf/gf/v2/util/gconv"
|
||||
"iotlcm/internal/dao"
|
||||
"iotlcm/internal/consts"
|
||||
"iotlcm/internal/library/contexts"
|
||||
"iotlcm/internal/library/xgorm"
|
||||
"iotlcm/internal/library/xgorm/handler"
|
||||
"iotlcm/internal/library/xgorm/hook"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/dao"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/consts"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/library/contexts"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/library/xgorm"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/library/xgorm/handler"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/library/xgorm/hook"
|
||||
"@{.importInput}"
|
||||
"@{.importService}"
|
||||
"iotlcm/utility/convert"
|
||||
"iotlcm/utility/excel"
|
||||
"iotlcm/utility/validate"
|
||||
@{ if eq .options.Step.IsAddon true }isc "iotlcm/internal/service"@{end}
|
||||
@{ if eq .options.Step.IsTreeTable true }"iotlcm/utility/tree"@{end}
|
||||
@{ if eq .options.Step.HasFuncDict true }"iotlcm/internal/library/dict"@{end}
|
||||
@{ if eq .options.Step.HasFuncDict true }"iotlcm/internal/model"@{end}
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/utility/convert"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/utility/excel"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/utility/validate"
|
||||
@{ if eq .options.Step.IsAddon true }isc "git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/service"@{end}
|
||||
@{ if eq .options.Step.IsTreeTable true }"git.5iot.com/iotlcm-public/iotlcm-admin-svr/utility/tree"@{end}
|
||||
@{ if eq .options.Step.HasFuncDict true }"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/library/dict"@{end}
|
||||
@{ if eq .options.Step.HasFuncDict true }"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"@{end}
|
||||
)
|
||||
|
||||
type s@{.servFunName} struct{}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Package genrouter
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) @{NowYear} LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version @{.xiuVersion}
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-- card_channel_assoc.channel_id historically mixed primary IDs and numeric channel keys.
|
||||
-- Store the actual t_sim_channels.chan_key so every environment resolves associations identically.
|
||||
ALTER TABLE `card_channel_assoc`
|
||||
MODIFY COLUMN `channel_id` VARCHAR(64) NOT NULL COMMENT '通道编号';
|
||||
MODIFY COLUMN `channel_id` VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '通道编号';
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
-- 套餐到期提醒:独立月度任务;不修改、启用或复用旧 ScanSimExpireCandidateWarning。
|
||||
-- sys_job.job_id 为 AUTO_INCREMENT,由数据库生成;本脚本仅提供部署使用,本次不执行。
|
||||
-- 默认暂停:核实实际短信参数、部署配置并确认调度时间后,再在任务管理页启用。
|
||||
-- 启用/修改任务需通过管理页刷新进程内调度,直接改库不刷新调度。
|
||||
-- cron 以 Asia/Shanghai 每月15日09:00 执行;站内通知与短信独立,短信需要审核模板参数。
|
||||
INSERT INTO sys_job (job_name, job_params, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, remark, created_at, updated_at)
|
||||
SELECT '套餐到期提醒(企业月度汇总)', '', '3', 'NotifyMonthlyPackageExpiry',
|
||||
'CRON_TZ=Asia/Shanghai 0 0 9 15 * *', 1, 1, '1', '独立月度到期通知任务;默认暂停', NOW(), NOW()
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM sys_job WHERE invoke_target = 'NotifyMonthlyPackageExpiry'
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
-- 补齐异步导出执行日志元数据及运行结果。
|
||||
-- batch_type=14 仅由 Web 控制台导出中心创建;此类导出按批量操作展示。
|
||||
-- 运行结果跟随既有异步状态映射:0/1 -> 待运行,2 -> 运行中,3 -> 成功,4 -> 失败,5 -> 部分成功,6 -> 待核查。
|
||||
-- 仅更新导出类型,不影响其他批次。可重复执行。
|
||||
UPDATE batch_main
|
||||
SET source_channel = 'console',
|
||||
execution_mode = 2,
|
||||
run_result = CASE batch_async_status
|
||||
WHEN 2 THEN 1
|
||||
WHEN 3 THEN 2
|
||||
WHEN 4 THEN 3
|
||||
WHEN 5 THEN 4
|
||||
WHEN 6 THEN 5
|
||||
ELSE 0
|
||||
END
|
||||
WHERE batch_type = 14;
|
||||
@@ -0,0 +1,17 @@
|
||||
-- 明细状态 5=未执行:本卡校验通过,但整批因其他卡校验失败而未执行。
|
||||
-- 部署前备份并核对目标租户的 detail_status 字典;此脚本只补默认租户且不覆盖已有标签。
|
||||
INSERT INTO `sys_dict_data` (
|
||||
`tenant_id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`,
|
||||
`is_default`, `created_dept`, `created_by`, `created_at`, `remark`
|
||||
)
|
||||
SELECT '000000', 5, '未执行', '5', 'detail_status', '', 'warning',
|
||||
'N', 100, 1, NOW(), '本卡校验通过,本批存在校验失败卡,整批未执行'
|
||||
FROM `sys_dict_type` AS dict_type
|
||||
WHERE dict_type.`tenant_id` = '000000'
|
||||
AND dict_type.`dict_type` = 'detail_status'
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM `sys_dict_data` AS dict_data
|
||||
WHERE dict_data.`tenant_id` = '000000'
|
||||
AND dict_data.`dict_type` = 'detail_status'
|
||||
AND dict_data.`dict_value` = '5'
|
||||
);
|
||||
Reference in New Issue
Block a user