feat:设备配置信息、运行状态、设备画像接口
This commit is contained in:
@@ -84,8 +84,14 @@ tms:
|
||||
standard-run-user: ${TMS_INIT_EXECUTOR_STANDARD_RUN_USER:cmep4i}
|
||||
# 标准版 CMSP/CMTP 启动命令。
|
||||
standard-app-start-command: ${TMS_INIT_EXECUTOR_STANDARD_APP_START_COMMAND:/home/tms/bin/start_standard_apps.sh}
|
||||
# 标准版 CMSP/CMTP 停止命令。
|
||||
standard-app-stop-command: ${TMS_INIT_EXECUTOR_STANDARD_APP_STOP_COMMAND:/home/tms/bin/stop_standard_apps.sh}
|
||||
# 标准版 nginx 启动命令。
|
||||
standard-nginx-start-command: ${TMS_INIT_EXECUTOR_STANDARD_NGINX_START_COMMAND:/home/tms/bin/start_standard_nginx.sh}
|
||||
# 标准版 nginx 停止命令。
|
||||
standard-nginx-stop-command: ${TMS_INIT_EXECUTOR_STANDARD_NGINX_STOP_COMMAND:/home/tms/bin/stop_standard_nginx.sh}
|
||||
# 标准版 RabbitMQ 停止命令。
|
||||
standard-rabbit-stop-command: ${TMS_INIT_EXECUTOR_STANDARD_RABBIT_STOP_COMMAND:/home/tms/bin/stop_standard_rabbitmq.sh}
|
||||
# 标准版启动后检查命令。
|
||||
standard-post-check-command: ${TMS_INIT_EXECUTOR_STANDARD_POST_CHECK_COMMAND:/home/tms/bin/check_standard_runtime.sh}
|
||||
# 直参版 cpconfig 文件名(按 upload-base-dir/<cfgZipFileId>/<fileName> 解析)。
|
||||
@@ -149,6 +155,18 @@ tms:
|
||||
version: ${TMS_CISD_PRESET_VERSION:V1.0.0}
|
||||
# 预制信息来源标识(CONFIG/DB 等自定义值)。
|
||||
source: ${TMS_CISD_PRESET_SOURCE:CONFIG}
|
||||
device:
|
||||
profile:
|
||||
# 设备型号展示值。
|
||||
model: ${TMS_DEVICE_PROFILE_MODEL:SYD7108}
|
||||
# 设备名称展示值。
|
||||
name: ${TMS_DEVICE_PROFILE_NAME:跨境支付终端一体机}
|
||||
# CPU 型号默认展示值;命令读取失败或为空时回退。
|
||||
cpu-model-default: ${TMS_DEVICE_PROFILE_CPU_MODEL_DEFAULT:Hygon C86-3G (OPN:3350)}
|
||||
# 内存总量默认展示值;命令读取失败或为空时回退。
|
||||
memory-total-default: ${TMS_DEVICE_PROFILE_MEMORY_TOTAL_DEFAULT:16GB}
|
||||
# 磁盘总量默认展示值;命令读取失败或为空时回退。
|
||||
disk-total-default: ${TMS_DEVICE_PROFILE_DISK_TOTAL_DEFAULT:256G}
|
||||
security:
|
||||
# 内部接口鉴权 token(前后端内部调用需一致)。
|
||||
internal-token: ${TMS_INTERNAL_TOKEN:change-me-internal-token}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<resultMap id="InitTaskResultMap" type="com.cisd.tms.modules.init.entity.InitTaskEntity">
|
||||
<id property="id" column="id"/>
|
||||
<result property="taskId" column="task_id"/>
|
||||
<result property="taskType" column="task_type"/>
|
||||
<result property="version" column="version"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="productType" column="product_type"/>
|
||||
@@ -19,10 +20,34 @@
|
||||
</resultMap>
|
||||
|
||||
<select id="selectByTaskId" parameterType="string" resultMap="InitTaskResultMap">
|
||||
SELECT id, task_id, version, status, product_type, org_code, mq_type, deploy_mode, init_plan_json, create_time, update_time
|
||||
SELECT id, task_id, task_type, version, status, product_type, org_code, mq_type, deploy_mode, init_plan_json, create_time, update_time
|
||||
FROM tms_init_task
|
||||
WHERE task_id = #{taskId}
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="selectLatest" resultMap="InitTaskResultMap">
|
||||
SELECT id, task_id, task_type, version, status, product_type, org_code, mq_type, deploy_mode, init_plan_json, create_time, update_time
|
||||
FROM tms_init_task
|
||||
ORDER BY create_time DESC, id DESC
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="selectLatestByStatus" parameterType="string" resultMap="InitTaskResultMap">
|
||||
SELECT id, task_id, task_type, version, status, product_type, org_code, mq_type, deploy_mode, init_plan_json, create_time, update_time
|
||||
FROM tms_init_task
|
||||
WHERE status = #{status}
|
||||
ORDER BY create_time DESC, id DESC
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="selectLatestByTaskTypeAndStatus" resultMap="InitTaskResultMap">
|
||||
SELECT id, task_id, task_type, version, status, product_type, org_code, mq_type, deploy_mode, init_plan_json, create_time, update_time
|
||||
FROM tms_init_task
|
||||
WHERE task_type = #{taskType}
|
||||
AND status = #{status}
|
||||
ORDER BY create_time DESC, id DESC
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user