新火炬后端单体项目初始化代码
houshuai
2025-07-03 8c945d42c6610abd9ef17bc153114024175bec2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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="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>