@@ -42,20 +42,26 @@ public interface PicMapper extends BaseMapper {
@Select("<script>"+
"select id,unid,create_time as createTime,name,storage_id as storageId,pack_id as packId,person_unid as personUnid,status from d_pic where pack_id=#{packId} and person_unid in "+
"(select person_unid from d_pic where pack_id=#{packId}"+
" <if test = 'status != null'> and status=#{status}</if> group by person_unid having count(*) > 1 order by person_unid <if test='offset != null'> offset #{offset} limit #{limit}</if>) "+
" <if test = 'status != null'> and status=#{status}</if> group by person_unid "+
// " having count(*) > 1 " +
" order by person_unid <if test='offset != null'> offset #{offset} limit #{limit}</if>) "+
"(select person_unid from d_pic where pack_id=#{packId}"+
" <if test = 'status != null'> and status=#{status}</if> group by person_unid having count(*) > 1) as t "+
" <if test = 'status != null'> and status=#{status}</if> group by person_unid "+
// " having count(*) > 1 " +
") as t "+
"</script>")
intcountPeople(LongpackId,Integerstatus);
@Select("<script>"+
"select id,unid,create_time as createTime,name,storage_id as storageId,pack_id as packId,person_unid as personUnid,status from d_pic where pack_id=#{packId} and person_unid="+
"(select person_unid from d_pic where pack_id=#{packId} <if test = 'status != null'> and status=#{status}</if> and person_unid ${type} #{personUnid} group by person_unid having count(*) > 1 order by person_unid ${sort} limit 1) order by id"+
"(select person_unid from d_pic where pack_id=#{packId} <if test = 'status != null'> and status=#{status}</if> and person_unid ${type} #{personUnid} group by person_unid "+
// " having count(*) > 1 " +
" order by person_unid ${sort} limit 1) order by id"+