|
@ -48,7 +48,7 @@ public class BaseSuggestionService extends BaseJpaService<BaseSuggestionDO, Base
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public MixEnvelop findSuggestionByType(String type, Integer page, Integer pageSize){
|
|
|
public MixEnvelop findSuggestionByType(String type,String senderId, Integer page, Integer pageSize){
|
|
|
String sql = "select a.id as\"id\",a.suggest_id as\"suggestId\",a.suggest_content as\"suggestContent\",a.suggest_img_url as\"suggestImgUrl\"," +
|
|
|
"a.suggest_user_id as\"suggestUserId\",a.user_client as \"userClient\",a.user_type as \"userType\"," +
|
|
|
"a.suggest_user_name as\"suggestUserName\",a.suggest_user_phone as\"suggestUserPhone\",a.create_time as\"createTime\"," +
|
|
@ -57,6 +57,8 @@ public class BaseSuggestionService extends BaseJpaService<BaseSuggestionDO, Base
|
|
|
"base_suggestions_dict b where a.suggest_id = b.id and a.is_del = 1" ;
|
|
|
if(StringUtils.isNoneBlank(type)){
|
|
|
sql+=" and a.suggest_id = '"+type+"'";
|
|
|
}if (StringUtils.isNoneBlank(senderId)){
|
|
|
sql+=" and a.suggest_user_id = '"+senderId+"'";
|
|
|
}
|
|
|
sql+=" order by a.create_time desc";
|
|
|
List<Map<String,Object>> list = hibenateUtils.createSQLQuery(sql,page,pageSize);
|