|  |  |  | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getMeasuredDictList" resultType="com.zt.life.modules.project.model.SoftwareTestOrderMeasured"> | 
|---|
|  |  |  | SELECT dd.* | 
|---|
|  |  |  | SELECT dd.dict_label as name,'1.0.0' 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} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | <if test="orderBySql!=null"> | 
|---|
|  |  |  | ORDER BY ${orderBySql} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | WHERE dt.DICT_TYPE = 'testItem_type' | 
|---|
|  |  |  | and IS_DELETE = 0 | 
|---|
|  |  |  | ORDER BY sort | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getdeliverableDictList" resultType="com.zt.life.modules.project.model.SoftwareTestOrderDeliverable"> | 
|---|
|  |  |  | SELECT dd.* | 
|---|
|  |  |  | SELECT dd.dict_label as name,'1.0.0' as identify | 
|---|
|  |  |  | 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> | 
|---|
|  |  |  | WHERE dt.DICT_TYPE = 'product_library_file' | 
|---|
|  |  |  | and IS_DELETE = 0 | 
|---|
|  |  |  | ORDER BY sort | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|