zzw
2023-11-16 0117a966938d2f689e90eee907bd12bc9e123a18
modules/mainPart/src/main/resources/mapper/project/SoftwareTestOrderDao.xml
@@ -18,34 +18,19 @@
        </if>
    </select>
    <select id="getMeasuredDictList" resultType="com.zt.life.modules.project.model.SoftwareTestOrderMeasured">
        SELECT dd.*
    <select id="dictList" resultType="com.zt.core.sys.dto.DictIstance">
        SELECT dd.dict_label as name,
        case when '${dictType}'='product_library_file' then concat(dd.REMARK,'-${projectCode}') else
        '1.0.0' end as identify
        FROM sys_dict_type dt
        JOIN sys_dict_data dd ON dt.ID = dd.DICT_TYPE_ID
        WHERE dt.DICT_TYPE = 'testItem_type';
        <where>
            <if test="whereSql!=null">
                and ${whereSql}
            dd.IS_DELETE = 0
            <if test="dictType != null and dictType != ''">
                and dt.DICT_TYPE = #{dictType}
            </if>
        </where>
        <if test="orderBySql!=null">
            ORDER BY ${orderBySql}
        </if>
    </select>
    <select id="getdeliverableDictList" resultType="com.zt.life.modules.project.model.SoftwareTestOrderDeliverable">
        SELECT dd.*
        FROM sys_dict_type dt
        JOIN sys_dict_data dd ON dt.ID = dd.DICT_TYPE_ID
        WHERE dt.DICT_TYPE = 'product_library_file';
        <where>
            <if test="whereSql!=null">
                and ${whereSql}
            </if>
        </where>
        <if test="orderBySql!=null">
            ORDER BY ${orderBySql}
        </if>
        ORDER BY dd.sort
    </select>
</mapper>