|
@@ -65,12 +65,13 @@ 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, e.device_name " +
|
|
|
+ "d.sample_name, d.sample_model_specification, GROUP_CONCAT(e.device_name SEPARATOR ',') AS deviceName " +
|
|
|
"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 b.shebei_id = e.id " +
|
|
|
- "where a.weituo_id = #{weituoId}")
|
|
|
+ "left join itdm_device e on FIND_IN_SET(e.id, b.shebei_id) " +
|
|
|
+ "where a.weituo_id = #{weituoId}" +
|
|
|
+ "group by a.id")
|
|
|
List<ItdmXMJLQueryListVO> getXMJLFirstList(@Param("weituoId") String weituoId);
|
|
|
|
|
|
|