大屏业务完善

This commit is contained in:
lhx
2025-11-13 17:38:10 +08:00
parent 7834610b3f
commit c6bc11e9b8
38 changed files with 881 additions and 2455 deletions

View File

@@ -4,26 +4,6 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dc.dc_project.mapper.RecordSampleMapper">
<resultMap id="BaseResultMap" type="com.dc.dc_project.model.pojo.RecordSample">
<id property="id" column="id" />
<result property="entrust_id" column="entrust_id" />
<result property="sample_code" column="sample_code" />
<result property="sample_name" column="sample_name" />
<result property="sample_type" column="sample_type" />
<result property="sampling_date" column="sampling_date" />
<result property="sampling_point" column="sampling_point" />
<result property="sampling_position" column="sampling_position" />
<result property="representative_count" column="representative_count" />
<result property="condition_desc" column="condition_desc" />
<result property="storage_location" column="storage_location" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="created_by" column="created_by" />
<result property="updated_by" column="updated_by" />
<result property="created_at" column="created_at" />
<result property="updated_at" column="updated_at" />
<result property="is_deleted" column="is_deleted" />
</resultMap>
<sql id="Base_Column_List">
id,entrust_id,sample_code,sample_name,sample_type,sampling_date,
@@ -31,4 +11,29 @@
status,remark,created_by,updated_by,created_at,
updated_at,is_deleted
</sql>
<select id="getCheckNotCheckedCount" resultType="com.dc.dc_project.model.vo.bigScreen.SystemWarningItemVo">
SELECT sys.id, sys.sample_name, sys.calibration_date data, DATEDIFF(sys.calibration_date, #{nowStr}) AS day FROM sys_record_sample sys
<where>
sys.status != 2
AND sys.is_deleted = 0
AND sys.calibration_date &lt; #{nowStr}
</where>
ORDER BY sys.calibration_date ASC
LIMIT #{page.offset}, #{page.size}
</select>
<select id="getCheckNotChecked" resultType="com.dc.dc_project.model.vo.bigScreen.SystemWarningItemVo">
SELECT
sys.id,
sys.sample_name AS name,
sys.calibration_date AS date,
DATEDIFF(sys.calibration_date, #{nowStr}) AS day
FROM sys_record_sample sys
<where>
sys.status != 2
AND sys.is_deleted = 0
AND sys.calibration_date BETWEEN #{nowStr} AND DATE_ADD(#{nowStr}, INTERVAL 15 DAY)
</where>
ORDER BY sys.calibration_date ASC
LIMIT #{page.offset}, #{page.size}
</select>
</mapper>