From bc672038e88a24d9f0f7127cd45c656a15c231a2 Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期三, 09 八月 2023 09:10:49 +0800 Subject: [PATCH] MOM系统-8-9 --- standard-server/src/main/resources/mapper/RawInsProductMapper.xml | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/standard-server/src/main/resources/mapper/RawInsProductMapper.xml b/standard-server/src/main/resources/mapper/RawInsProductMapper.xml new file mode 100644 index 0000000..5f7d431 --- /dev/null +++ b/standard-server/src/main/resources/mapper/RawInsProductMapper.xml @@ -0,0 +1,18 @@ +<?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.yuanchu.mom.mapper.RawInsProductMapper"> + <select id="selectInspectIdAndName" resultType="map"> + SELECT r.`id`, r.`name` + FROM raw_ins_product r + LEFT JOIN device d + ON r.`device_id` = d.`id` + WHERE r.`state` = 1 + AND ((r.`device_id` IS NULL + OR (r.`device_id` IS NOT NULL AND r.`test_state` IS NOT NULL)) + OR (d.`state` = 0 AND r.`device_id` IS NOT NULL)) + </select> + + <select id="selectPageDevice" resultType="map"> + + </select> +</mapper> -- Gitblit v1.9.3