|
@@ -19,7 +19,8 @@ import java.util.List;
|
|
|
public interface IRenovationPartsDetailMapper extends IBaseMapper<RenovationPartsDetailEntity> {
|
|
|
|
|
|
@Select("<script>" +
|
|
|
- "select id, key_word as keyWord, type, description, img, high_img as highImg, path, name, zh_name as zhName, parts_type_id as partsTypeId, has_toolbag as hasToolbag ,mview_path as " +
|
|
|
+ "select id, key_word as keyWord, type, description, bird_path AS birdPath, img, high_img as highImg, path, name, zh_name as zhName, parts_type_id as partsTypeId, has_toolbag as " +
|
|
|
+ "hasToolbag ,mview_path as " +
|
|
|
"mviewPath , other_file_url as otherFileUrl " +
|
|
|
"from tb_renovation_parts_detail where parts_type_id = #{partsTypeId} and rec_status = 'A' and is_show = 1 and examine = 1 and mview_status in (0,2) " +
|
|
|
"<if test= 'colorId != null'> " +
|
|
@@ -36,7 +37,8 @@ public interface IRenovationPartsDetailMapper extends IBaseMapper<RenovationPart
|
|
|
"#{name} and rec_status = 'A' and is_show = 1 and examine = 1 ")
|
|
|
ResponseRenovationPartsDetail findByName(String name);
|
|
|
|
|
|
- @Select("select id,parts_type_id AS partsTypeId, key_word as keyWord, type, description, img, high_img as highImg, path, name, zh_name as zhName, has_toolbag as hasToolbag ,mview_path as " +
|
|
|
+ @Select("select id,parts_type_id AS partsTypeId, bird_path AS birdPath, key_word as keyWord, type, description, img, high_img as highImg, path, name, zh_name as zhName, has_toolbag as " +
|
|
|
+ "hasToolbag ,mview_path as " +
|
|
|
"mviewPath ,other_file_url as otherFileUrl from " +
|
|
|
"tb_renovation_parts_detail where key_word like CONCAT('%', #{keyWord}, '%') and rec_status = 'A' and is_show = 1 and examine = 1 and mview_status in (0,2) and parts_type_id IN " +
|
|
|
"(SELECT id FROM tb_renovation_parts_type WHERE is_3d_show=1) ")
|