| | |
| | | <id property="code" column="code"/> |
| | | <result property="id" column="id"/> |
| | | <result property="samplename" column="samplename"/> |
| | | <result property="inspectionStatus" column="inspectionStatus"/> |
| | | <result property="testState" column="inspectionStatus"/> |
| | | <result property="startTime" column="startTime"/> |
| | | <result property="endTime" column="endTime"/> |
| | | <collection property="children" resultMap="selectAllPlanMapTowsMap" javaType="List"/> |
| | |
| | | <result property="internal" column="internal"/> |
| | | <result property="testValue" column="testValue"/> |
| | | <result property="testState" column="testState"/> |
| | | <result property="uId" column="uId"/> |
| | | <result property="checker" column="checker"/> |
| | | <result property="isuId" column="isuId"/> |
| | | <result property="instrumentname" column="instrumentname"/> |
| | | <result property="classId" column="classId"/> |
| | | </resultMap> |
| | | <!--查询检验计划--> |
| | | <select id="selectAllPlan" resultMap="selectAllPlanMap"> |
| | |
| | | internal, |
| | | test_value testValue, |
| | | test_state testState, |
| | | u.id uId, |
| | | u.name checker, |
| | | isu.id isuId, |
| | | isu.classify_id classId, |
| | | equipment_name instrumentname |
| | | from lims_laboratory.inspection_product ip |
| | | left join lims_laboratory.inspection_material im on ip.inspection_material_id = im.id |
| | |
| | | <if test="beginTime != null and endTime != null"> |
| | | and i.start_time between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="isLookMe != false and id != null"> |
| | | and ip.user_id=#{id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |