| | |
| | | |
| | | @ValueTableShow(13) |
| | | @ApiModelProperty(value = "检验项目") |
| | | private Integer insProductItem; |
| | | private String insProductItem; |
| | | } |
| | |
| | | private String laboratoryName; |
| | | |
| | | @ValueTableShow(3) |
| | | @ApiModelProperty(value = "实验室编码") |
| | | @ApiModelProperty(value = "实验室编号") |
| | | private String laboratoryNumber; |
| | | |
| | | @ValueTableShow(3) |
| | | @ApiModelProperty(value = "实验室代号") |
| | | private String laboratoryCode; |
| | | |
| | | @ValueTableShow(4) |
| | | @ApiModelProperty(value = "负责人电话") |
| | | private String phoneNumber; |
| | |
| | | <select id="selectDeviceParameterPage" resultType="com.yuanchu.mom.dto.DeviceDto"> |
| | | select * from( |
| | | SELECT |
| | | d.*, u.name equipmentManagerUser, l.laboratory_name laboratoryName |
| | | d.*, |
| | | GROUP_CONCAT( |
| | | CONCAT_WS(', ', |
| | | TRIM(BOTH '["]' FROM SUBSTRING_INDEX(REPLACE(sample, '[["', ''), '"]]', 1)), |
| | | inspection_item, |
| | | inspection_item_subclass |
| | | ) |
| | | SEPARATOR ';' |
| | | ) AS insProductItem, |
| | | u.name , |
| | | l.laboratory_name |
| | | FROM |
| | | device d |
| | | left join `user` u on u.id = d.equipment_manager |
| | | left join laboratory l on l.id = d.subordinate_departments_id |
| | | LEFT JOIN `user` u ON u.id = d.equipment_manager |
| | | LEFT JOIN laboratory l ON l.id = d.subordinate_departments_id |
| | | LEFT JOIN structure_item_parameter sip ON FIND_IN_SET(sip.id, d.ins_product_ids) |
| | | GROUP BY |
| | | d.id, |
| | | u.name, l.laboratory_name |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | |
| | | select l.id, |
| | | laboratory_name, |
| | | laboratory_number, |
| | | laboratory_code, |
| | | phone_number, |
| | | head, |
| | | l.address, |
| | |
| | | from evaluate_competent ec |
| | | left join evaluate e on ec.evaluate_id = e.id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like concat('%',dl.id,'%') |
| | | left join department_lims dl on FIND_IN_SET(dl.id, depart_lims_id) |
| | | where 1=1 |
| | | <if test="month!=null and month!=''"> |
| | | and e.month=#{month} |
| | |
| | | from evaluate_group eg |
| | | left join evaluate e on eg.evaluate_id = e.id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like concat('%',dl.id,'%') |
| | | left join department_lims dl on FIND_IN_SET(dl.id, depart_lims_id) |
| | | where 1=1 |
| | | <if test="month!=null and month!=''"> |
| | | and e.month=#{month} |
| | |
| | | from evaluate_leader el |
| | | left join evaluate e on el.evaluate_id = e.id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like concat('%',dl.id,'%') |
| | | left join department_lims dl on FIND_IN_SET(dl.id, depart_lims_id) |
| | | where 1=1 |
| | | <if test="month!=null and month!=''"> |
| | | and e.month=#{month} |
| | |
| | | left join evaluate_group eg on e.id = eg.evaluate_id |
| | | left join evaluate_leader el on e.id = el.evaluate_id |
| | | left join user u on e.user_id = u.id |
| | | left join department_lims dl on depart_lims_id like concat('%',dl.id,'%') ) A |
| | | left join department_lims dl on FIND_IN_SET(dl.id, depart_lims_id) ) A |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |