| | |
| | | from mdm_machine m join blade_dict_biz g on m.machine_group_code=g.dict_key and g.code='machine_group' and g.is_deleted=0 |
| | | where m.is_deleted=0 |
| | | <if test="query.machineGroupCode!=null and query.machineGroupCode!=''"> |
| | | and m.machineGroupCode=#{query.keyword,jdbcType=VARCHAR} |
| | | and m.machine_group_code=#{query.machineGroupCode,jdbcType=VARCHAR} |
| | | </if> |
| | | <if test="query.keyword!=null and query.keyword!=''"> |
| | | and (m.code like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%') or m.name like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%')) |