From f1d445b9d51abb020cbcd4a61b4edd36fbe75216 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期六, 26 八月 2023 15:57:38 +0800 Subject: [PATCH] 新增检验修改 --- inspection-server/src/main/resources/mapper/LinkBasicInformationMapper.xml | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) diff --git a/inspection-server/src/main/resources/mapper/LinkBasicInformationMapper.xml b/inspection-server/src/main/resources/mapper/LinkBasicInformationMapper.xml index d17384b..619b044 100644 --- a/inspection-server/src/main/resources/mapper/LinkBasicInformationMapper.xml +++ b/inspection-server/src/main/resources/mapper/LinkBasicInformationMapper.xml @@ -1,10 +1,12 @@ <?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.limslaboratory.mapper.LinkBasicInformationMapper"> - <select id="getLinkBasicPage" resultType="map"> - SELECT l.`id`, l.`entrust_coding`, l.`entrusted`, d.`samples_number`, d.`sample_name`, d.`specifications_models`, - DATE_FORMAT(l.`inspection_time`,'%Y-%m-%d') inspectionTime, l.`completion_deadline`, l.`contacts`, d.`date_survey`, d.`inspection_status` + SELECT l.`id`, l.`entrust_coding`, l.`entrusted`, d.`samples_number`, d.`sample_name`, + d.`specifications_models`, + DATE_FORMAT(l.`inspection_time`,'%Y-%m-%d') inspectionTime, DATE_FORMAT(l.`completion_deadline`,'%Y-%m-%d') + completionDeadline, l.`contacts`, + DATE_FORMAT(d.`date_survey`,'%Y-%m-%d') dateSurvey, d.`inspection_status` FROM link_basic_information l, link_detection d WHERE l.`id` = d.`link_basic_id` AND l.`state` = 1 @@ -15,10 +17,29 @@ AND d.`sample_name` like concat('%', #{sampleName}, '%') </if> <if test="entrusted != null and entrusted != null"> - AND l.`contacts` like concat('%', #{entrusted}, '%') + AND l.`entrusted` like concat('%', #{entrusted}, '%') </if> <if test="inspectionStatus != null and inspectionStatus != null"> AND d.`inspection_status` = #{inspectionStatus} </if> </select> + + <select id="selectLinkAll" resultType="java.util.Map"> + SELECT d.id , + DATE_FORMAT(l.`inspection_time`, '%Y-%m-%d') formTime, + l.`entrusted` supplier, + d.`sample_number` mcode, + d.`sample_name` name, + d.`specifications_models` specifications, + d.`unit`, + d.`samples_number` num, + experiment, + DATE_FORMAT(date_survey, '%Y-%m-%d') startTime, + DATE_FORMAT(completion_deadline, '%Y-%m-%d') endTime + FROM lims_laboratory.link_basic_information l, + lims_laboratory.link_detection d + WHERE l.`id` = d.`link_basic_id` + AND l.`state` = 1 + and inspection_status = 1 + </select> </mapper> -- Gitblit v1.9.3