| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.qms.mapper.InspectionItemMapper"> |
| | | |
| | | |
| | | <select id="queryList" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.item_code itemCode, |
| | | t1.item_name itemName, |
| | | t1.item_category itemCategory, |
| | | t1.qualitative_or_quantitative qualitativeOrQuantitative, |
| | | t1.inspection_tools inspectionTools, |
| | | t1.item_status itemStatus, |
| | | t1.create_time createTime, |
| | | t2.item_text itemCategoryName, |
| | | t3.item_text qualitativeOrQuantitativeName, |
| | | t1.remark |
| | | FROM |
| | | qms_inspection_item t1 |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'item_category' ) t2 ON t2.item_value = t1.item_category |
| | | left join ( SELECT * FROM v_sys_dict WHERE dict_code = 'qualitative_or_quantitative' ) t3 on t3.item_value = t1.qualitative_or_quantitative |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |