| | |
| | | <mapper namespace="com.zt.life.modules.project.dao.SoftwareTestOrderDao"> |
| | | |
| | | <select id="getList" resultType="com.zt.life.modules.project.model.SoftwareTestOrder"> |
| | | SELECT a.*, p.* |
| | | SELECT a.*, p.software_name,p.software_identity |
| | | FROM software_test_order a |
| | | INNER JOIN project p ON p.id = a.project_id |
| | | JOIN project p ON p.id = a.project_id |
| | | <where> |
| | | a.is_delete = 0 and p.is_delete = 0 |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectOrderId" resultType="java.lang.String"> |
| | | SELECT code |
| | | FROM software_test_order |
| | | <where> |
| | | is_delete = 0 |
| | | <if test="projectId != null and projectId != ''"> |
| | | and project_id = ${projectId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="dictList" resultType="com.zt.core.sys.dto.DictIstance"> |
| | | SET @row_number = 0; |
| | | SELECT concat('${softName}', dd.dict_label) AS name, |
| | | SELECT concat('${softIdentity}', dd.dict_label) AS name, |
| | | (@row_number := @row_number + 1) AS no, |
| | | case when '${dictType}'='product_library_file' then concat(dd.REMARK,'-${projectCode}') else |
| | | '1.0.0' end as identify |