|
@@ -15,15 +15,18 @@ public interface ItdmJCXMSHJHMapper {
|
|
|
/**
|
|
|
* 项目经理查询列表——二级列表——通过登录用户查询
|
|
|
*/
|
|
|
- @Select("select a.weituo_id, a.yangpin_id, a.id as testItemsId, a.test_items, " +
|
|
|
- "b.id as testPlanId, b.shebei_id, b.pm, m.start_date as jihuaStartDate, m.end_date as jihuaEndDate, b.status, b.report_no, b.chuanganqi, " +
|
|
|
+ @Select("select a.weituo_id, m.weituo_yangpin_id, m.test_items_id, a.test_items, " +
|
|
|
+ "m.jihua_shiyan_id, b.pm, " +
|
|
|
+ "m.shebei_id, m.start_date as jihuaStartDate, m.end_date as jihuaEndDate, " +
|
|
|
+ "b.status, b.report_no, m.chuanganqi, " +
|
|
|
"d.sample_name, d.sample_model_specification, e.device_name, " +
|
|
|
- "m.jihua_shiyan_id as parent, m.shiiyan_type, m.worker, m.yangpin_count, m.neirong, m.shiji_start_date,m.id " +
|
|
|
+ "m.jihua_shiyan_id as parent, " +
|
|
|
+ "m.shiiyan_type, m.worker, m.yangpin_count, m.neirong, m.shiji_start_date,m.id " +
|
|
|
"from itdm_gongdan_master m " +
|
|
|
"left join itdm_test_plan b on m.jihua_shiyan_id = b.id " +
|
|
|
"left join itdm_weituo_yangpin_extend a on m.test_items_id = a.id " +
|
|
|
"left join itdm_weituo_yangpin d on m.weituo_yangpin_id = d.id " +
|
|
|
- "left join itdm_device e on b.shebei_id = e.id " +
|
|
|
+ "left join itdm_device e on m.shebei_id = e.id " +
|
|
|
"where a.weituo_id = #{weituoId} and m.jihua_shiyan_id " +
|
|
|
"in (select b.id from itdm_test_plan b " +
|
|
|
"left join itdm_weituo_info f on b.weituo_id = f.id " +
|
|
@@ -50,7 +53,8 @@ public interface ItdmJCXMSHJHMapper {
|
|
|
"m.jihua_shiyan_id, b.pm, " +
|
|
|
"m.shebei_id, m.start_date as jihuaStartDate, m.end_date as jihuaEndDate, " +
|
|
|
"b.status, b.report_no, m.chuanganqi, " +
|
|
|
- "d.sample_name, d.sample_model_specification, e.device_name, m.jihua_shiyan_id as parent, " +
|
|
|
+ "d.sample_name, d.sample_model_specification, e.device_name, " +
|
|
|
+ "m.jihua_shiyan_id as parent, " +
|
|
|
"m.shiiyan_type, m.worker, m.yangpin_count, m.neirong, m.shiji_start_date,m.id " +
|
|
|
"from itdm_gongdan_master m " +
|
|
|
"left join itdm_test_plan b on m.jihua_shiyan_id = b.id " +
|
|
@@ -65,13 +69,12 @@ public interface ItdmJCXMSHJHMapper {
|
|
|
*/
|
|
|
@Select("select a.weituo_id, a.yangpin_id, a.id as testItemsId, a.test_items, " +
|
|
|
"b.id as testPlanId, b.shebei_id, b.pm, b.jihua_start_date, b.jihua_end_date, b.status, b.report_no, b.chuanganqi, " +
|
|
|
- "d.sample_name, d.sample_model_specification, GROUP_CONCAT(e.device_name SEPARATOR ',') AS deviceName " +
|
|
|
+ "d.sample_name, d.sample_model_specification, e.device_name " +
|
|
|
"from itdm_weituo_yangpin_extend a " +
|
|
|
"left join itdm_test_plan b on a.id = b.test_items_id " +
|
|
|
"left join itdm_weituo_yangpin d on a.yangpin_id = d.id " +
|
|
|
- "left join itdm_device e on FIND_IN_SET(e.id, b.shebei_id) " +
|
|
|
- "where a.weituo_id = #{weituoId}" +
|
|
|
- "group by a.id")
|
|
|
+ "left join itdm_device e on b.shebei_id = e.id " +
|
|
|
+ "where a.weituo_id = #{weituoId}")
|
|
|
List<ItdmXMJLQueryListVO> getXMJLFirstList(@Param("weituoId") String weituoId);
|
|
|
|
|
|
|
|
@@ -80,13 +83,12 @@ public interface ItdmJCXMSHJHMapper {
|
|
|
*/
|
|
|
@Select("select a.weituo_id, a.yangpin_id, a.id as testItemsId, a.test_items, " +
|
|
|
"b.id as testPlanId, b.shebei_id, b.pm, b.jihua_start_date, b.jihua_end_date, b.status, b.report_no, b.chuanganqi, " +
|
|
|
- "d.sample_name, d.sample_model_specification, GROUP_CONCAT(e.device_name SEPARATOR ',') AS deviceName " +
|
|
|
+ "d.sample_name, d.sample_model_specification, e.device_name " +
|
|
|
"from itdm_weituo_yangpin_extend a " +
|
|
|
"left join itdm_test_plan b on a.id = b.test_items_id " +
|
|
|
"left join itdm_weituo_yangpin d on a.yangpin_id = d.id " +
|
|
|
- "left join itdm_device e on FIND_IN_SET(e.id, b.shebei_id) " +
|
|
|
- "where a.weituo_id = #{weituoId} " +
|
|
|
- "group by a.id")
|
|
|
+ "left join itdm_device e on b.shebei_id = e.id " +
|
|
|
+ "where a.weituo_id = #{weituoId}")
|
|
|
List<ItdmJHYQueryListVO> getAll3(@Param("weituoId") String weituoId);
|
|
|
|
|
|
/**
|
|
@@ -96,16 +98,14 @@ public interface ItdmJCXMSHJHMapper {
|
|
|
*/
|
|
|
@Select("select a.weituo_id, a.yangpin_id, a.id as testItemsId, a.test_items, " +
|
|
|
"b.id as testPlanId, b.shebei_id, b.pm, b.jihua_start_date, b.jihua_end_date, b.status, b.report_no, b.chuanganqi, " +
|
|
|
- "d.sample_name, d.sample_model_specification, GROUP_CONCAT(e.device_name SEPARATOR ',') AS deviceName, " +
|
|
|
+ "d.sample_name, d.sample_model_specification, " +
|
|
|
"i.shenhe_status " +
|
|
|
"from itdm_weituo_yangpin_extend a " +
|
|
|
"left join itdm_test_plan b on a.id = b.test_items_id " +
|
|
|
"left join itdm_weituo_yangpin d on a.yangpin_id = d.id " +
|
|
|
- "left join itdm_device e on FIND_IN_SET(e.id, b.shebei_id) " +
|
|
|
"left join itdm_weituo_info i on a.weituo_id = i.id " +
|
|
|
"where a.weituo_id in (select id from itdm_weituo_info where itdm_weituo_info.complete_status = 0 " +
|
|
|
- "and itdm_weituo_info.shenhe_status = '1' )" +
|
|
|
- "group by a.id")
|
|
|
+ "and itdm_weituo_info.shenhe_status = '1' )")
|
|
|
List<ItdmJHYQueryListVO> getAllWithoutWeituoId();
|
|
|
|
|
|
/**
|