Files
be-process-control-system/business/src/main/resources/mapper/PlanDashboardMapper.xml
Joshi 42c9d12504 feat(business): 同步G30添加发送任务模板功能并扩展计划实体
- 新增 BizSendJob、BizSendJobGroup、BizSendJobItem 实体类用于发送任务管理
- 新增 BizSendTemplate、BizSendTemplateItem 实体类用于发送模板配置
- 实现发送模板的增删改查和批量保存功能
- 添加 DashboardController 提供首页仪表板统计接口
- 实现发送任务查询和执行服务
- 扩展 PdiPlan 相关实体类增加锌层厚度字段
- 优化 OPC 消息发送功能,支持多种数据类型转换
- 更新日志配置,调整错误日志处理策略
2026-01-04 10:30:38 +08:00

35 lines
1.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.fizz.business.mapper.PlanDashboardMapper">
<!-- 当前生产中的计划status = 'PRODUCING',按 producing_time / start_date 倒序取最新一条) -->
<select id="selectCurrentProducingPlan" resultType="java.util.Map">
SELECT
id,
coilid,
planid,
steel_grade AS steelGrade,
entry_weight AS entryWeight,
entry_thick AS entryThick,
entry_width AS entryWidth,
entry_length AS entryLength,
status,
start_date AS startDate,
end_date AS endDate,
producing_time AS producingTime,
unit_code AS unitCode
FROM crm_pdi_plan
WHERE status = 'PRODUCING'
ORDER BY
producing_time DESC,
start_date DESC,
id DESC
LIMIT 1
</select>
</mapper>