Fixiaobai
2023-09-04 dd2554435b9ced61e2a6a06627145fca3bf2685b
inspection-server/src/main/resources/mapper/RawMaterialMapper.xml
@@ -11,11 +11,11 @@
        <if test="materialName != null and materialName != ''">
            AND r.`material_name` LIKE CONCAT('%',#{materialName},'%')
        </if>
        <if test="type != null and type != ''">
        <if test="type != null">
            AND r.`type` = #{type}
        </if>
        <if test="createTime != null and createTime != ''">
            AND DATE_FORMAT(r.`create_time`,'%Y-%m-%d') = #{createTime}
            AND DATE_FORMAT(r.`date_survey`,'%Y-%m-%d') = #{createTime}
        </if>
    </select>
    <select id="selectRawmaAll" resultType="java.util.Map">
@@ -27,11 +27,11 @@
               unit,
               quantity                                 num,
               surveyor,
               type,
               DATE_FORMAT(inspection_date, '%Y-%m-%d') startTime,
               DATE_FORMAT(date_survey, '%Y-%m-%d')     endTime,
               DATE_FORMAT(create_time, '%Y-%m-%d')     formTime
        from lims_laboratory.raw_material
        where state = 1
          and type = 0
    </select>
</mapper>